KDirStat – a graphical disk usage utility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

kstdcleanup.h 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * File name: kstdcleanup.h
  3. * Summary: Support classes for KDirStat
  4. * License: LGPL - See file COPYING.LIB for details.
  5. * Author: Stefan Hundhammer <sh@suse.de>
  6. *
  7. * Updated: 2003-01-07
  8. */
  9. #ifndef KStdCleanup_h
  10. #define KStdCleanup_h
  11. #ifdef HAVE_CONFIG_H
  12. # include <config.h>
  13. #endif
  14. // Forward declarations
  15. class TDEActionCollection;
  16. namespace KDirStat
  17. {
  18. // Forward declarations
  19. class KCleanup;
  20. /**
  21. * Predefined standard @ref KCleanup actions to be performed on
  22. * @ref KDirTree items.
  23. *
  24. * This class is not meant to be ever instantiated - use the static methods
  25. * only.
  26. *
  27. * For details about what each individual method does, refer to the help
  28. * file. Use the old (KDirStat 0.86) help file in case the current help
  29. * file isn't available yet.
  30. *
  31. * @short KDirStat standard cleanup actions
  32. **/
  33. class KStdCleanup
  34. {
  35. public:
  36. static KCleanup *openInKonqueror ( TDEActionCollection *parent = 0 );
  37. static KCleanup *openInTerminal ( TDEActionCollection *parent = 0 );
  38. static KCleanup *compressSubtree ( TDEActionCollection *parent = 0 );
  39. static KCleanup *makeClean ( TDEActionCollection *parent = 0 );
  40. static KCleanup *deleteTrash ( TDEActionCollection *parent = 0 );
  41. static KCleanup *moveToTrashBin ( TDEActionCollection *parent = 0 );
  42. static KCleanup *hardDelete ( TDEActionCollection *parent = 0 );
  43. private:
  44. /**
  45. * Prevent instances of this class - private constructor / destructor.
  46. **/
  47. KStdCleanup() {}
  48. ~KStdCleanup() {}
  49. };
  50. } // namespace KDirStat
  51. #endif // ifndef KStdCleanup_h
  52. // EOF