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/rootitem.h" 7 8 #include "services/abstract/label.h" 9 10 class LabelsNode : public RootItem { 11 Q_OBJECT 12 13 public: 14 explicit LabelsNode(RootItem* parent_item = nullptr); 15 16 QList<Label*> labels() const; 17 void loadLabels(const QList<Label*>& labels); 18 19 virtual QList<Message> undeletedMessages() const; 20 virtual QList<QAction*> contextMenuFeedsList(); 21 22 public slots: 23 void createLabel(); 24 25 private: 26 QAction* m_actLabelNew; 27 }; 28 29 #endif // LABELSNODE_H 30