Debian Codegraph @

src/librssguard/services/abstract/gui/formfeeddetails.h

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/services/abstract/gui/formfeeddetails.h`/
2
3 #ifndef FORMFEEDDETAILS_H
4 #define FORMFEEDDETAILS_Hcxx . . $ `src/librssguard/services/abstract/gui/formfeeddetails.h:4:9`!
5
6 #include "3rd-party/boolinq/boolinq.h"cxx . . $ `<file>/src/librssguard/3rd-party/boolinq/boolinq.h`/
7 #include "definitions/definitions.h"cxx . . $ `<file>/src/librssguard/definitions/definitions.h`/
8
9 #include <QDialog>
10
11 namespace Uicxx . . $ Ui/ {
12 class FormFeedDetailscxx . . $ Ui/FormFeedDetails#;
13 }
14
15 class ServiceRootcxx . . $ ServiceRoot#;
16 class Feedcxx . . $ Feed#;
17 class Categorycxx . . $ Category#;
18 class RootItemcxx . . $ RootItem#;
19 class QDialogButtonBoxcxx . . $ QDialogButtonBox#;
20 class MultiFeedEditCheckBoxcxx . . $ MultiFeedEditCheckBox#;
21
22 class RSSGUARD_DLLSPECcxx . . $ `<built-in>:525:9`! FormFeedDetailscxx . . $ FormFeedDetails# : public QDialogcxx . . $ QDialog# {
23 Q_OBJECTcxx . . $ QMetaObject#Call#
24
25 public:
26 explicit FormFeedDetailscxx . . $ FormFeedDetails#FormFeedDetails(ba9ac1e557cf8c10).(ServiceRootcxx . . $ ServiceRoot#* service_root, QWidgetcxx . . $ QWidget#* parent = nullptr);
27 virtual ~cxx . . $ FormFeedDetails#`~FormFeedDetails`(ced63f7c635d850d).FormFeedDetailscxx . . $ FormFeedDetails#();
28
29 template <class T>
30 QListcxx . . $ QList#<T*> addEditFeedcxx . . $ FormFeedDetails#addEditFeed(d5610567e60eb8ad).(const QListcxx . . $ QList#<Feedcxx . . $ Feed#*>& feeds_to_edit =cxx . . $ QList#QList(ced63f7c635d850d). {});
31
32 // Returns first feed.
33 template <class T>
34 T* feedcxx . . $ FormFeedDetails#feed(5a2a78a048fb49a8).() const;
35
36 // Returns all feeds.
37 template <class T>
38 QListcxx . . $ QList#<T*> feedscxx . . $ FormFeedDetails#feeds(1e5d3d3cd083a237).() const;
39
40 protected slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!:
41 void activateTabcxx . . $ FormFeedDetails#activateTab(d4f767463ce0a6b3).(int index);
42 void clearTabscxx . . $ FormFeedDetails#clearTabs(49f6e7a06ebc5aa8).();
43
44 // Applies changes.
45 // NOTE: This must be reimplemented in subclasses. Also this
46 // base implementation must be called first.
47 virtual void applycxx . . $ FormFeedDetails#apply(49f6e7a06ebc5aa8).();
48
49 protected:
50 QDialogButtonBoxcxx . . $ QDialogButtonBox#* buttonBoxcxx . . $ FormFeedDetails#buttonBox(fa45d254eb75afb5).() const;
51
52 bool isChangeAllowedcxx . . $ FormFeedDetails#isChangeAllowed(a022fe814984cdb0).(MultiFeedEditCheckBoxcxx . . $ MultiFeedEditCheckBox#* mcb) const;
53
54 // Inserts custom tab made by plugin into its editing form. When index is less
55 // than zero, tab is inserted to the last position.
56 void insertCustomTabcxx . . $ FormFeedDetails#insertCustomTab(a25eb5ec3aa77d95).(QWidgetcxx . . $ QWidget#* custom_tab, const QStringcxx . . $ QString#& title, int index = -1);
57
58 // Sets the feed which will be edited.
59 // NOTE: This must be reimplemented in subclasses. Also this
60 // base implementation must be called first.
61 virtual void loadFeedDatacxx . . $ FormFeedDetails#loadFeedData(49f6e7a06ebc5aa8).();
62
63 private slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!:
64 void acceptIfPossiblecxx . . $ FormFeedDetails#acceptIfPossible(49f6e7a06ebc5aa8).();
65 void onAutoUpdateTypeChangedcxx . . $ FormFeedDetails#onAutoUpdateTypeChanged(d4f767463ce0a6b3).(int new_index);
66
67 private:
68 void createConnectionscxx . . $ FormFeedDetails#createConnections(49f6e7a06ebc5aa8).();
69 void initializecxx . . $ FormFeedDetails#initialize(49f6e7a06ebc5aa8).();
70
71 protected:
72 QScopedPointercxx . . $ QScopedPointer#<Uicxx . . $ Ui/::FormFeedDetailscxx . . $ Ui/FormFeedDetails#> m_uicxx . . $ FormFeedDetails#m_ui.;
73 QListcxx . . $ QList#<Feedcxx . . $ Feed#*> m_feedscxx . . $ FormFeedDetails#m_feeds.;
74 ServiceRootcxx . . $ ServiceRoot#* m_serviceRootcxx . . $ FormFeedDetails#m_serviceRoot.;
75 bool m_creatingNewcxx . . $ FormFeedDetails#m_creatingNew.;
76 bool m_isBatchEditcxx . . $ FormFeedDetails#m_isBatchEdit.;
77 };
78
79 template <class T>
80 inline QListcxx . . $ QList#<T*> FormFeedDetailscxx . . $ FormFeedDetails#::addEditFeedcxx . . $ FormFeedDetails#addEditFeed(d5610567e60eb8ad).(const QListcxx . . $ QList#<Feedcxx . . $ Feed#*>& feeds_to_edit) {
81 m_creatingNewcxx . . $ FormFeedDetails#m_creatingNew. = feeds_to_edit.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).();
82 m_isBatchEditcxx . . $ FormFeedDetails#m_isBatchEdit. = feeds_to_edit.sizecxx . . $ QList#size(6b0412d51016192f).() > 1;
83
84 if (m_creatingNewcxx . . $ FormFeedDetails#m_creatingNew.) {
85 m_feedscxx . . $ FormFeedDetails#m_feeds..appendcxx . . $ QList#append(3d2301cfd89f773a).(new T());
86 }
87 else {
88 m_feedscxx . . $ FormFeedDetails#m_feeds..appendcxx . . $ QList#append(3d2301cfd89f773a).(feeds_to_edit);
89 }
90
91 loadFeedDatacxx . . $ FormFeedDetails#loadFeedData(49f6e7a06ebc5aa8).();
92
93 if (execcxx . . $ QDialog#exec(b126dc7c1de90089).() == QDialogcxx . . $ QDialog#::DialogCodecxx . . $ QDialog#DialogCode#::Acceptedcxx . . $ QDialog#Accepted.) {
94 return feedscxx . . $ FormFeedDetails#feeds(1e5d3d3cd083a237).<T>();
95 }
96 else {
97 return {};
98 }
99 }
100
101 template <class T>
102 inline T* FormFeedDetailscxx . . $ FormFeedDetails#::feedcxx . . $ FormFeedDetails#feed(5a2a78a048fb49a8).() const {
103 return qobject_castcxx . . $ qobject_cast(5706488a1eb40c4c).<T*>(m_feedscxx . . $ FormFeedDetails#m_feeds..firstcxx . . $ QList#first(2042464fc1fea03e).());
104 }
105
106 template <class T>
107 inline QListcxx . . $ QList#<T*> FormFeedDetailscxx . . $ FormFeedDetails#::feedscxx . . $ FormFeedDetails#feeds(1e5d3d3cd083a237).() const {
108 stdcxx . . $ std/::listcxx . . $ std/__cxx11/list#<T*> std_fds = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(m_feedscxx . . $ FormFeedDetails#m_feeds.)
109 .selectcxx . . $ boolinq/Linq#select(78964af89971dd9b).([](Feedcxx . . $ Feed#* fd) {
110 return qobject_castcxx . . $ qobject_cast(c988cfc0ca08742e).<T*>(fd);
111 })
112 .toStdList();
113
114 return FROM_STD_LISTcxx . . $ `src/librssguard/definitions/definitions.h:405:9`!(QList<T*>, std_fds);
115 }
116
117 #endif // FORMFEEDDETAILS_H