Debian Codegraph @

src/librssguard/core/feedsmodel.h

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/core/feedsmodel.h`/
2
3 #ifndef FEEDSMODEL_H
4 #define FEEDSMODEL_Hcxx . . $ `src/librssguard/core/feedsmodel.h:4:9`!
5
6 #include "services/abstract/rootitem.h"cxx . . $ `<file>/src/librssguard/services/abstract/rootitem.h`/
7
8 #include <QAbstractItemModel>
9
10 class Categorycxx . . $ Category#;
11 class Feedcxx . . $ Feed#;
12 class ServiceRootcxx . . $ ServiceRoot#;
13 class ServiceEntryPointcxx . . $ ServiceEntryPoint#;
14 class StandardServiceRootcxx . . $ StandardServiceRoot#;
15
16 class RSSGUARD_DLLSPECcxx . . $ `<built-in>:525:9`! FeedsModelcxx . . $ FeedsModel# : public QAbstractItemModelcxx . . $ QAbstractItemModel# {
17 Q_OBJECTcxx . . $ FeedsModel#QPrivateSignal#QPrivateSignal(49f6e7a06ebc5aa8).
18
19 public:
20 explicit FeedsModelcxx . . $ FeedsModel#FeedsModel(749de1b6ae65bddd).(QObjectcxx . . $ QObject#* parent = nullptr);
21 virtual ~cxx . . $ FeedsModel#`~FeedsModel`(ced63f7c635d850d).FeedsModelcxx . . $ FeedsModel#();
22
23 // Model implementation.
24 virtual QVariantcxx . . $ QVariant# datacxx . . $ FeedsModel#data(69b5b18a001c0029).(const QModelIndexcxx . . $ QModelIndex#& index, int role) const;
25
26 // Drag & drop.
27 virtual QMimeDatacxx . . $ QMimeData#* mimeDatacxx . . $ FeedsModel#mimeData(8814472558f0ef9a).(const QModelIndexListcxx . . $ QModelIndexList#& indexes) const;
28 virtual QStringListcxx . . $ QStringList# mimeTypescxx . . $ FeedsModel#mimeTypes(2b25566bdf736d18).() const;
29 virtual Qtcxx . . $ Qt/::DropActionscxx . . $ Qt/DropActions# supportedDropActionscxx . . $ FeedsModel#supportedDropActions(af1da90089d0747b).() const;
30 virtual Qtcxx . . $ Qt/::ItemFlagscxx . . $ Qt/ItemFlags# flagscxx . . $ FeedsModel#flags(36b38c1b3d3f7b45).(const QModelIndexcxx . . $ QModelIndex#& index) const;
31
32 // Other subclassed methods.
33 virtual QVariantcxx . . $ QVariant# headerDatacxx . . $ FeedsModel#headerData(b8cfec0985494997).(int section, Qtcxx . . $ Qt/::Orientationcxx . . $ Qt/Orientation# orientation, int role) const;
34 virtual QModelIndexcxx . . $ QModelIndex# indexcxx . . $ FeedsModel#index(37dbccf64c4e392).(int row, int column, const QModelIndexcxx . . $ QModelIndex#& parent) const;
35 virtual QModelIndexcxx . . $ QModelIndex# parentcxx . . $ FeedsModel#parent(f800c6f2fa4cbe57).(const QModelIndexcxx . . $ QModelIndex#& child) const;
36 virtual int columnCountcxx . . $ FeedsModel#columnCount(e3878d4d6cd9529c).(const QModelIndexcxx . . $ QModelIndex#& parent) const;
37 virtual int rowCountcxx . . $ FeedsModel#rowCount(e3878d4d6cd9529c).(const QModelIndexcxx . . $ QModelIndex#& parent) const;
38
39 // Returns counts of ALL/UNREAD (non-deleted) messages for the model.
40 int countOfAllMessagescxx . . $ FeedsModel#countOfAllMessages(455f465bc33b4cdf).() const;
41 int countOfUnreadMessagescxx . . $ FeedsModel#countOfUnreadMessages(455f465bc33b4cdf).() const;
42
43 // Returns all activated service roots.
44 // NOTE: Service root nodes are lying directly UNDER
45 // the model root item.
46 QListcxx . . $ QList#<ServiceRootcxx . . $ ServiceRoot#*> serviceRootscxx . . $ FeedsModel#serviceRoots(af687dfb2ba79ab4).() const;
47
48 // Returns the list of feeds which should be updated
49 // according to auto-update schedule.
50 // Variable "auto_update_now" is true, when global timeout
51 // for scheduled auto-update was met and global auto-update strategy is enabled
52 // so feeds with "default" auto-update strategy should be updated.
53 //
54 // This method might change some properties of some feeds.
55 QListcxx . . $ QList#<Feedcxx . . $ Feed#*> feedsForScheduledUpdatecxx . . $ FeedsModel#feedsForScheduledUpdate(f4237aac94aa2bd).(bool auto_update_now);
56
57 // Returns ALL RECURSIVE CHILD feeds contained within single index.
58 QListcxx . . $ QList#<Feedcxx . . $ Feed#*> feedsForIndexcxx . . $ FeedsModel#feedsForIndex(a21d6792c471b5a).(const QModelIndexcxx . . $ QModelIndex#& index = QModelIndexcxx . . $ QModelIndex#QModelIndex(ced63f7c635d850d).()) const;
59
60 // Returns feed/category which lies at the specified index or
61 // root item if index is invalid.
62 RootItemcxx . . $ RootItem#* itemForIndexcxx . . $ FeedsModel#itemForIndex(8787ab140507818d).(const QModelIndexcxx . . $ QModelIndex#& index) const;
63
64 // Returns source QModelIndex on which lies given item.
65 // NOTE: This goes through all available indexes and
66 // checks their bound items manually, there is no
67 // other way to to this.
68 QModelIndexcxx . . $ QModelIndex# indexForItemcxx . . $ FeedsModel#indexForItem(c0d6ccdcbdf61811).(const RootItemcxx . . $ RootItem#* item) const;
69
70 // Determines if any feed has any new messages.
71 bool hasAnyFeedNewMessagescxx . . $ FeedsModel#hasAnyFeedNewMessages(50ce9a9e25b4a850).() const;
72
73 // Access to root item.
74 RootItemcxx . . $ RootItem#* rootItemcxx . . $ FeedsModel#rootItem(e4f4b13bf6686a09).() const;
75
76 void setupBehaviorDuringFetchingcxx . . $ FeedsModel#setupBehaviorDuringFetching(49f6e7a06ebc5aa8).();
77 void setupFontscxx . . $ FeedsModel#setupFonts(49f6e7a06ebc5aa8).();
78 void informAboutDatabaseCleanupcxx . . $ FeedsModel#informAboutDatabaseCleanup(49f6e7a06ebc5aa8).();
79
80 public slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!:
81 void loadActivatedServiceAccountscxx . . $ FeedsModel#loadActivatedServiceAccounts(49f6e7a06ebc5aa8).();
82
83 // Stops all accounts before exit.
84 void stopServiceAccountscxx . . $ FeedsModel#stopServiceAccounts(49f6e7a06ebc5aa8).();
85
86 // Reloads counts of all feeds/categories/whatever in the model.
87 void reloadCountsOfWholeModelcxx . . $ FeedsModel#reloadCountsOfWholeModel(49f6e7a06ebc5aa8).();
88
89 // Checks if new parent node is different from one used by original node.
90 // If it is, then it reassigns original_node to new parent.
91 void reassignNodeToNewParentcxx . . $ FeedsModel#reassignNodeToNewParent(a5628b38272995c3).(RootItemcxx . . $ RootItem#* original_node, RootItemcxx . . $ RootItem#* new_parent);
92
93 // Adds given service root account.
94 bool addServiceAccountcxx . . $ FeedsModel#addServiceAccount(4ebf307b9720c1e).(ServiceRootcxx . . $ ServiceRoot#* root, bool freshly_activated);
95
96 // Removes item with given index.
97 // NOTE: Also deletes item from memory.
98 void removeItemcxx . . $ FeedsModel#removeItem(87a6de385263c395).(const QModelIndexcxx . . $ QModelIndex#& index);
99 void removeItemcxx . . $ FeedsModel#removeItem(cb16baca005cfe86).(RootItemcxx . . $ RootItem#* deleting_item);
100
101 // Recycle bins operations.
102 bool restoreAllBinscxx . . $ FeedsModel#restoreAllBins(c9857a73d68e59ba).();
103 bool emptyAllBinscxx . . $ FeedsModel#emptyAllBins(c9857a73d68e59ba).();
104
105 void changeSortOrdercxx . . $ FeedsModel#changeSortOrder(f9ebbfc243ea11a8).(RootItemcxx . . $ RootItem#* item, bool move_top, bool move_bottom, int new_sort_order = {});
106
107 // Takes direct descendants (but only categories or feeds)
108 // and rearranges them alphabetically.
109 void sortDirectDescendantscxx . . $ FeedsModel#sortDirectDescendants(5a807e43d4a29bc7).(RootItemcxx . . $ RootItem#* item, RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind# kind_to_sort);
110
111 // Feeds operations.
112 bool markItemReadcxx . . $ FeedsModel#markItemRead(9311416734179a77).(RootItemcxx . . $ RootItem#* item, RootItemcxx . . $ RootItem#::ReadStatuscxx . . $ RootItem#ReadStatus# read);
113 bool markItemClearedcxx . . $ FeedsModel#markItemCleared(679a665f61a58643).(RootItemcxx . . $ RootItem#* item, bool clean_read_only);
114 bool purgeArticlescxx . . $ FeedsModel#purgeArticles(dbfd2b51e10dc95c).(const QListcxx . . $ QList#<Feedcxx . . $ Feed# *> &feeds);
115
116 // Signals that properties (probably counts)
117 // of ALL items have changed.
118 void reloadWholeLayoutcxx . . $ FeedsModel#reloadWholeLayout(49f6e7a06ebc5aa8).();
119
120 // Signals that SOME data of this model need
121 // to be reloaded by ALL attached views.
122 // NOTE: This reloads all parent valid indexes too.
123 void reloadChangedLayoutcxx . . $ FeedsModel#reloadChangedLayout(9572254e104ad7bd).(QModelIndexListcxx . . $ QModelIndexList# list);
124
125 // Invalidates data under index for the item.
126 void reloadChangedItemcxx . . $ FeedsModel#reloadChangedItem(cb16baca005cfe86).(RootItemcxx . . $ RootItem#* item);
127
128 // Notifies other components about messages
129 // counts.
130 void notifyWithCountscxx . . $ FeedsModel#notifyWithCounts(49f6e7a06ebc5aa8).();
131
132 private slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!:
133 void onItemDataChangedcxx . . $ FeedsModel#onItemDataChanged(47657a4e8825adca).(const QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*>& items);
134
135 signalscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:43:14`!:
136 void messageCountsChangedcxx . . $ FeedsModel#messageCountsChanged(918ebd27a9ddbad3).(int unread_messages, bool any_feed_has_unread_messages);
137
138 // Emitted if any item requested that any view should expand it.
139 void itemExpandRequestedcxx . . $ FeedsModel#itemExpandRequested(ec1fe1f905b4f8b2).(QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> items, bool expand);
140
141 // Emitted if any item requested that its expand states should be explicitly saved.
142 // NOTE: Normally expand states are saved when application quits.
143 void itemExpandStateSaveRequestedcxx . . $ FeedsModel#itemExpandStateSaveRequested(cb16baca005cfe86).(RootItemcxx . . $ RootItem#* subtree_root);
144
145 // Emitted when there is a need of reloading of displayed messages.
146 void reloadMessageListRequestedcxx . . $ FeedsModel#reloadMessageListRequested(b45ddcbc8423892c).(bool mark_selected_messages_read);
147
148 private:
149 bool m_updateDuringFetchingcxx . . $ FeedsModel#m_updateDuringFetching.;
150 QIconcxx . . $ QIcon# m_updateItemIconcxx . . $ FeedsModel#m_updateItemIcon.;
151 RootItemcxx . . $ RootItem#* m_rootItemcxx . . $ FeedsModel#m_rootItem.;
152 QListcxx . . $ QList#<QStringcxx . . $ QString#> m_headerDatacxx . . $ FeedsModel#m_headerData.;
153 QListcxx . . $ QList#<QStringcxx . . $ QString#> m_tooltipDatacxx . . $ FeedsModel#m_tooltipData.;
154 QIconcxx . . $ QIcon# m_countsIconcxx . . $ FeedsModel#m_countsIcon.;
155 QFontcxx . . $ QFont# m_normalFontcxx . . $ FeedsModel#m_normalFont.;
156 QFontcxx . . $ QFont# m_boldFontcxx . . $ FeedsModel#m_boldFont.;
157 QFontcxx . . $ QFont# m_normalStrikedFontcxx . . $ FeedsModel#m_normalStrikedFont.;
158 QFontcxx . . $ QFont# m_boldStrikedFontcxx . . $ FeedsModel#m_boldStrikedFont.;
159 };
160
161 #endif // FEEDSMODEL_H