| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef SEARCHSNODE_H |
| 4 | #define SEARCHSNODE_H |
| 5 | |
| 6 | #include "services/abstract/rootitem.h" |
| 7 | #include "services/abstract/search.h" |
| 8 | |
| 9 | class RSSGUARD_DLLSPEC SearchsNode : public RootItem { |
| 10 | Q_OBJECT |
| 11 | |
| 12 | public: |
| 13 | explicit SearchsNode(RootItem* parent_item = nullptr); |
| 14 | |
| 15 | QList<Search*> probes() const; |
| 16 | void loadProbes(const QList<Search*>& probes); |
| 17 | |
| 18 | virtual QList<Message> undeletedMessages() const; |
| 19 | virtual QList<QAction*> contextMenuFeedsList(); |
| 20 | |
| 21 | virtual int countOfUnreadMessages() const; |
| 22 | virtual int countOfAllMessages() const; |
| 23 | |
| 24 | Search* probeById(const QString& custom_id); |
| 25 | |
| 26 | public slots: |
| 27 | void createProbe(); |
| 28 | |
| 29 | private: |
| 30 | QAction* m_actProbeNew; |
| 31 | }; |
| 32 | |
| 33 | #endif // SEARCHSNODE_H |