summaryrefslogtreecommitdiffstats
path: root/kdirstat/kstdcleanup.h
blob: c5114d4b7a3629440751845f32321f87d9b02b30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
 *   File name:	kstdcleanup.h
 *   Summary:	Support classes for KDirStat
 *   License:	LGPL - See file COPYING.LIB for details.
 *   Author:	Stefan Hundhammer <sh@suse.de>
 *
 *   Updated:	2003-01-07
 */


#ifndef KStdCleanup_h
#define KStdCleanup_h


#ifdef HAVE_CONFIG_H
#   include <config.h>
#endif

// Forward declarations
class TDEActionCollection;
class KDirStat::KCleanup;


namespace KDirStat
{
    /**
     * Predefined standard @ref KCleanup actions to be performed on
     * @ref KDirTree items.
     *
     * This class is not meant to be ever instantiated - use the static methods
     * only.
     * 
     * For details about what each individual method does, refer to the help
     * file. Use the old (KDirStat 0.86) help file in case the current help
     * file isn't available yet.
     *
     * @short KDirStat standard cleanup actions
     **/
    
    class KStdCleanup
    {
    public:
	static KCleanup *openInKonqueror	( TDEActionCollection *parent = 0 );
	static KCleanup *openInTerminal		( TDEActionCollection *parent = 0 );
	static KCleanup *compressSubtree	( TDEActionCollection *parent = 0 );
	static KCleanup *makeClean		( TDEActionCollection *parent = 0 );
	static KCleanup *deleteTrash		( TDEActionCollection *parent = 0 );
	static KCleanup *moveToTrashBin		( TDEActionCollection *parent = 0 );
	static KCleanup *hardDelete		( TDEActionCollection *parent = 0 );
	
    private:
	/**
	 * Prevent instances of this class - private constructor / destructor.
	 **/
	KStdCleanup()	{}
	~KStdCleanup()	{}
    };

}	// namespace KDirStat


#endif // ifndef KStdCleanup_h


// EOF