]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/trash/dolphintrash.h
DolphinView: Remove -1 interval, add setAutoActivationEnabled
[dolphin.git] / src / trash / dolphintrash.h
index 2120059efe1f17824bfaaa4cd64528bfb860a2ad..388bc82ab4b775b452b70c4fab247e7ce5a1c3d3 100644 (file)
 
 #include <QWidget>
 
+#include <KDirLister>
 #include <KIO/EmptyTrashJob>
-#include <KIOWidgets/KDirLister>
 
-class Trash: public QObject
+class Trash : public QObject
 {
     Q_OBJECT
 
 public:
     // delete copy and move constructors and assign operators
-    Trash(Trash const&) = delete;
-    Trash(Trash&&) = delete;
-    Trash& operator=(Trash const&) = delete;
-    Trashoperator=(Trash &&) = delete;
+    Trash(Trash const &) = delete;
+    Trash(Trash &&) = delete;
+    Trash &operator=(Trash const &) = delete;
+    Trash &operator=(Trash &&) = delete;
 
-    static Trashinstance();
-    static KIO::Job* empty(QWidget *window);
+    static Trash &instance();
+    static void empty(QWidget *window);
     static bool isEmpty();
 
-signals:
+Q_SIGNALS:
     void emptinessChanged(bool isEmpty);
 
 private:
     KDirLister *m_trashDirLister;
 
     Trash();
-    ~Trash();
+    ~Trash() override;
 };
 
 #endif // DOLPHINTRASH_H