| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef LABELSNODE_H |
| 4 | #define LABELSNODE_H |
| 5 | |
| 6 | #include "services/abstract/label.h" |
| 7 | #include "services/abstract/rootitem.h" |
| 8 | |
| 9 | class RSSGUARD_DLLSPEC LabelsNode : public RootItem { |
| 10 | Q_OBJECT |
| 11 | |
| 12 | public: |
| 13 | explicit LabelsNode(RootItem* parent_item = nullptr); |
| 14 | |
| 15 | QList<Label*> labels() const; |
| 16 | void loadLabels(const QList<Label*>& labels); |
| 17 | |
| 18 | virtual QList<Message> undeletedMessages() const; |
| 19 | virtual QList<QAction*> contextMenuFeedsList(); |
| 20 | virtual void updateCounts(bool including_total_count); |
| 21 | |
| 22 | Label* labelById(const QString& custom_id); |
| 23 | |
| 24 | public slots: |
| 25 | void createLabel(); |
| 26 | |
| 27 | private: |
| 28 | QAction* m_actLabelNew; |
| 29 | }; |
| 30 | |
| 31 | #endif // LABELSNODE_H |