Debian Codegraph @

src/librssguard/gui/reusable/articleamountcontrol.h

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.
2
3 #ifndef ARTICLEAMOUNTCONTROL_H
4 #define ARTICLEAMOUNTCONTROL_H
5
6 #include "services/abstract/feed.h"
7
8 #include "ui_articleamountcontrol.h"
9
10 #include <QWidget>
11
12 class ArticleAmountControl : public QWidget {
13 Q_OBJECT
14
15 friend class FormFeedDetails;
16
17 public:
18 explicit ArticleAmountControl(QWidget* parent = nullptr);
19
20 void setForAppWideFeatures(bool app_wide, bool batch_edit);
21
22 void load(const Feed::ArticleIgnoreLimit& setup, bool always_avoid = false);
23 Feed::ArticleIgnoreLimit save() const;
24
25 void saveFeed(Feed* fd, bool batch_edit) const;
26
27 private slots:
28 void updateArticleCountSuffix(int count);
29
30 private:
31 Ui::ArticleAmountControl m_ui;
32
33 signals:
34 void changed();
35 };
36
37 #endif // ARTICLEAMOUNTCONTROL_H