| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef RECYCLEBIN_H |
| 4 | #define RECYCLEBIN_H |
| 5 | |
| 6 | #include "services/abstract/rootitem.h" |
| 7 | |
| 8 | class RSSGUARD_DLLSPEC RecycleBin : public RootItem { |
| 9 | Q_OBJECT |
| 10 | |
| 11 | public: |
| 12 | explicit RecycleBin(RootItem* parent_item = nullptr); |
| 13 | virtual ~RecycleBin() = default; |
| 14 | |
| 15 | virtual QString additionalTooltip() const; |
| 16 | virtual QList<QAction*> contextMenuFeedsList(); |
| 17 | virtual QList<Message> undeletedMessages() const; |
| 18 | virtual bool markAsReadUnread(ReadStatus status); |
| 19 | virtual bool cleanMessages(bool clear_only_read); |
| 20 | virtual int countOfUnreadMessages() const; |
| 21 | virtual int countOfAllMessages() const; |
| 22 | virtual void updateCounts(bool update_total_count); |
| 23 | |
| 24 | public slots: |
| 25 | virtual bool empty(); |
| 26 | virtual bool restore(); |
| 27 | |
| 28 | private: |
| 29 | int m_totalCount; |
| 30 | int m_unreadCount; |
| 31 | QList<QAction*> m_contextMenu; |
| 32 | }; |
| 33 | |
| 34 | #endif // RECYCLEBIN_H |