Debian Codegraph @

src/librssguard/services/abstract/accountcheckmodel.h

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/services/abstract/accountcheckmodel.h`/
2
3 #ifndef ACCOUNTCHECKMODEL_H
4 #define ACCOUNTCHECKMODEL_Hcxx . . $ `src/librssguard/services/abstract/accountcheckmodel.h:4:9`!
5
6 #include "services/abstract/rootitem.h"cxx . . $ `<file>/src/librssguard/services/abstract/rootitem.h`/
7
8 #include <QAbstractItemModel>
9 #include <QSortFilterProxyModel>
10
11 // This is common model which displays only categories/feeds
12 // and allows user to place checkmarks.
13 class RSSGUARD_DLLSPECcxx . . $ `<built-in>:525:9`! AccountCheckModelcxx . . $ AccountCheckModel# : public QAbstractItemModelcxx . . $ QAbstractItemModel# {
14 Q_OBJECTcxx . . $ AccountCheckModel#qt_staticMetaObjectRelocatingContent.
15
16 public:
17 explicit AccountCheckModelcxx . . $ AccountCheckModel#AccountCheckModel(749de1b6ae65bddd).(QObjectcxx . . $ QObject#* parent = nullptr);
18 virtual ~cxx . . $ AccountCheckModel#`~AccountCheckModel`(ced63f7c635d850d).AccountCheckModelcxx . . $ AccountCheckModel#() = default;
19
20 virtual QModelIndexcxx . . $ QModelIndex# indexcxx . . $ AccountCheckModel#index(37dbccf64c4e392).(int row, int column, const QModelIndexcxx . . $ QModelIndex#& parent) const;
21 virtual QModelIndexcxx . . $ QModelIndex# parentcxx . . $ AccountCheckModel#parent(f800c6f2fa4cbe57).(const QModelIndexcxx . . $ QModelIndex#& child) const;
22 virtual int rowCountcxx . . $ AccountCheckModel#rowCount(e3878d4d6cd9529c).(const QModelIndexcxx . . $ QModelIndex#& parent) const;
23 virtual int columnCountcxx . . $ AccountCheckModel#columnCount(e3878d4d6cd9529c).(const QModelIndexcxx . . $ QModelIndex#& parent) const;
24 virtual QVariantcxx . . $ QVariant# datacxx . . $ AccountCheckModel#data(69b5b18a001c0029).(const QModelIndexcxx . . $ QModelIndex#& index, int role) const;
25 virtual bool setDatacxx . . $ AccountCheckModel#setData(6d1d8401440d0a2c).(const QModelIndexcxx . . $ QModelIndex#& index, const QVariantcxx . . $ QVariant#& value, int role);
26 virtual Qtcxx . . $ Qt/::ItemFlagscxx . . $ Qt/ItemFlags# flagscxx . . $ AccountCheckModel#flags(36b38c1b3d3f7b45).(const QModelIndexcxx . . $ QModelIndex#& index) const;
27
28 QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> checkedItemscxx . . $ AccountCheckModel#checkedItems(8f33d497292471a8).() const;
29
30 bool isItemCheckedcxx . . $ AccountCheckModel#isItemChecked(adff9bc3a348c0ca).(RootItemcxx . . $ RootItem#* item) const;
31 bool setItemCheckedcxx . . $ AccountCheckModel#setItemChecked(92a4bcd4aac93bc1).(RootItemcxx . . $ RootItem#* item, Qtcxx . . $ Qt/::CheckStatecxx . . $ Qt/CheckState# check);
32
33 // Returns feed/category which lies at the specified index or
34 // root item if index is invalid.
35 RootItemcxx . . $ RootItem#* itemForIndexcxx . . $ AccountCheckModel#itemForIndex(8787ab140507818d).(const QModelIndexcxx . . $ QModelIndex#& index) const;
36
37 // Returns source QModelIndex on which lies given item.
38 QModelIndexcxx . . $ QModelIndex# indexForItemcxx . . $ AccountCheckModel#indexForItem(12881790cc0639ef).(RootItemcxx . . $ RootItem#* item) const;
39
40 // Root item manipulators.
41 RootItemcxx . . $ RootItem#* rootItemcxx . . $ AccountCheckModel#rootItem(e4f4b13bf6686a09).() const;
42 void setRootItemcxx . . $ AccountCheckModel#setRootItem(1ce4f84de393a7b0).(RootItemcxx . . $ RootItem#* root_item, bool delete_previous_root = true, bool with_layout_change = false);
43
44 public slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!:
45 void checkAllItemscxx . . $ AccountCheckModel#checkAllItems(49f6e7a06ebc5aa8).();
46 void uncheckAllItemscxx . . $ AccountCheckModel#uncheckAllItems(49f6e7a06ebc5aa8).();
47
48 signalscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:43:14`!:
49 void checkStateChangedcxx . . $ AccountCheckModel#checkStateChanged(27c7256c73dc5c45).(RootItemcxx . . $ RootItem#* item, Qtcxx . . $ Qt/::CheckStatecxx . . $ Qt/CheckState# state);
50
51 protected:
52 RootItemcxx . . $ RootItem#* m_rootItemcxx . . $ AccountCheckModel#m_rootItem.;
53
54 private:
55 QHashcxx . . $ QHash#<RootItemcxx . . $ RootItem#*, Qtcxx . . $ Qt/::CheckStatecxx . . $ Qt/CheckState#> m_checkStatescxx . . $ AccountCheckModel#m_checkStates.;
56 bool m_recursiveChangecxx . . $ AccountCheckModel#m_recursiveChange.;
57 };
58
59 class RSSGUARD_DLLSPECcxx . . $ `<built-in>:525:9`! AccountCheckSortedModelcxx . . $ AccountCheckSortedModel# : public QSortFilterProxyModelcxx . . $ QSortFilterProxyModel# {
60 Q_OBJECTcxx . . $ AccountCheckSortedModel#staticMetaObject.
61
62 public:
63 explicit AccountCheckSortedModelcxx . . $ AccountCheckSortedModel#AccountCheckSortedModel(749de1b6ae65bddd).(QObjectcxx . . $ QObject#* parent = nullptr);
64 virtual ~cxx . . $ AccountCheckSortedModel#`~AccountCheckSortedModel`(ced63f7c635d850d).AccountCheckSortedModelcxx . . $ AccountCheckSortedModel#() = default;
65
66 AccountCheckModelcxx . . $ AccountCheckModel#* sourceModelcxx . . $ AccountCheckSortedModel#sourceModel(8eb4d7bf7b39d944).() const;
67 void setRootItemcxx . . $ AccountCheckSortedModel#setRootItem(1ce4f84de393a7b0).(RootItemcxx . . $ RootItem#* root_item, bool delete_previous_root = true, bool with_layout_change = false);
68
69 public slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!:
70 void checkAllItemscxx . . $ AccountCheckSortedModel#checkAllItems(49f6e7a06ebc5aa8).();
71 void uncheckAllItemscxx . . $ AccountCheckSortedModel#uncheckAllItems(49f6e7a06ebc5aa8).();
72
73 protected:
74 virtual bool filterAcceptsRowcxx . . $ AccountCheckSortedModel#filterAcceptsRow(5556b7879475181c).(int source_row, const QModelIndexcxx . . $ QModelIndex#& source_parent) const;
75 virtual bool lessThancxx . . $ AccountCheckSortedModel#lessThan(38842d0605fc2db).(const QModelIndexcxx . . $ QModelIndex#& source_left, const QModelIndexcxx . . $ QModelIndex#& source_right) const;
76
77 private:
78 AccountCheckModelcxx . . $ AccountCheckModel#* m_sourceModelcxx . . $ AccountCheckSortedModel#m_sourceModel.;
79 };
80
81 #endif // ACCOUNTCHECKMODEL_H