X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/67ebd66f94356b4e66005b1072919cb7b5e858bb..a1c9bc5595a21299dab9260c6a77c0561c95c8ba:/src/trash/dolphintrash.h diff --git a/src/trash/dolphintrash.h b/src/trash/dolphintrash.h index 2120059ef..388bc82ab 100644 --- a/src/trash/dolphintrash.h +++ b/src/trash/dolphintrash.h @@ -10,32 +10,32 @@ #include +#include #include -#include -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; - Trash& operator=(Trash &&) = delete; + Trash(Trash const &) = delete; + Trash(Trash &&) = delete; + Trash &operator=(Trash const &) = delete; + Trash &operator=(Trash &&) = delete; - static Trash& instance(); - 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