| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef IMPORTANTNODE_H |
| 4 | #define IMPORTANTNODE_H |
| 5 | |
| 6 | #include "services/abstract/rootitem.h" |
| 7 | |
| 8 | class RSSGUARD_DLLSPEC ImportantNode : public RootItem { |
| 9 | Q_OBJECT |
| 10 | |
| 11 | public: |
| 12 | explicit ImportantNode(RootItem* parent_item = nullptr); |
| 13 | |
| 14 | virtual QList<Message> undeletedMessages() const; |
| 15 | virtual bool cleanMessages(bool clean_read_only); |
| 16 | virtual void updateCounts(bool including_total_count); |
| 17 | virtual bool markAsReadUnread(ReadStatus status); |
| 18 | virtual int countOfUnreadMessages() const; |
| 19 | virtual int countOfAllMessages() const; |
| 20 | |
| 21 | private: |
| 22 | int m_totalCount{}; |
| 23 | int m_unreadCount{}; |
| 24 | }; |
| 25 | |
| 26 | #endif // IMPORTANTNODE_H |