Debian Codegraph @

src/librssguard/services/abstract/serviceroot.h

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/services/abstract/serviceroot.h`/
2
3 #ifndef SERVICEROOT_H
4 #define SERVICEROOT_Hcxx . . $ `src/librssguard/services/abstract/serviceroot.h:4:9`!
5
6 #include "core/message.h"cxx . . $ `<file>/src/librssguard/core/message.h`/
7 #include "definitions/typedefs.h"cxx . . $ `<file>/src/librssguard/definitions/typedefs.h`/
8 #include "services/abstract/rootitem.h"cxx . . $ `<file>/src/librssguard/services/abstract/rootitem.h`/
9
10 #include <QJsonDocument>
11 #include <QNetworkProxy>
12 #include <QPair>
13
14 class QActioncxx . . $ QAction#;
15 class QMutexcxx . . $ QMutex#;
16 class FeedsModelcxx . . $ FeedsModel#;
17 class RecycleBincxx . . $ RecycleBin#;
18 class ImportantNodecxx . . $ ImportantNode#;
19 class UnreadNodecxx . . $ UnreadNode#;
20 class SearchsNodecxx . . $ SearchsNode#;
21 class LabelsNodecxx . . $ LabelsNode#;
22 class Labelcxx . . $ Label#;
23 class MessagesModelcxx . . $ MessagesModel#;
24 class CustomMessagePreviewercxx . . $ CustomMessagePreviewer#;
25 class CacheForServiceRootcxx . . $ CacheForServiceRoot#;
26 class FormAccountDetailscxx . . $ FormAccountDetails#;
27
28 // THIS IS the root node of the service.
29 // NOTE: The root usually contains some core functionality of the
30 // service like service account username/password etc.
31 class RSSGUARD_DLLSPECcxx . . $ `<built-in>:525:9`! ServiceRootcxx . . $ ServiceRoot# : public RootItemcxx . . $ RootItem# {
32 Q_OBJECTcxx . . $ ServiceRoot#tr(75d9f1c324b4579d).
33
34 public:
35 enum class LabelOperationcxx . . $ ServiceRoot#LabelOperation# {
36 Addingcxx . . $ ServiceRoot#LabelOperation#Adding. = 1,
37 Editingcxx . . $ ServiceRoot#LabelOperation#Editing. = 2,
38 Deletingcxx . . $ ServiceRoot#LabelOperation#Deleting. = 4,
39
40 // NOTE: Service fetches list of labels from remote source
41 // and does not use local offline labels.
42 Synchronisedcxx . . $ ServiceRoot#LabelOperation#Synchronised. = 8
43 };
44
45 enum class BagOfMessagescxx . . $ ServiceRoot#BagOfMessages# {
46 Readcxx . . $ ServiceRoot#BagOfMessages#Read.,
47 Unreadcxx . . $ ServiceRoot#BagOfMessages#Unread.,
48 Starredcxx . . $ ServiceRoot#BagOfMessages#Starred.
49 };
50
51 public:
52 explicit ServiceRootcxx . . $ ServiceRoot#ServiceRoot(cb16baca005cfe86).(RootItemcxx . . $ RootItem#* parent = nullptr);
53 virtual ~cxx . . $ ServiceRoot#`~ServiceRoot`(ced63f7c635d850d).ServiceRootcxx . . $ ServiceRoot#();
54
55 // These methods bellow are part of "interface".
56 RecycleBincxx . . $ RecycleBin#* recycleBincxx . . $ ServiceRoot#recycleBin(955f70cd004a2ff8).() const;
57 ImportantNodecxx . . $ ImportantNode#* importantNodecxx . . $ ServiceRoot#importantNode(8695cdbf17186ab2).() const;
58 LabelsNodecxx . . $ LabelsNode#* labelsNodecxx . . $ ServiceRoot#labelsNode(b773463470738eab).() const;
59 SearchsNodecxx . . $ SearchsNode#* probesNodecxx . . $ ServiceRoot#probesNode(5f3fc5f885871ebd).() const;
60 UnreadNodecxx . . $ UnreadNode#* unreadNodecxx . . $ ServiceRoot#unreadNode(c16715fb3bd21592).() const;
61
62 virtual FormAccountDetailscxx . . $ FormAccountDetails#* accountSetupDialogcxx . . $ ServiceRoot#accountSetupDialog(8a0a5aebdd2d6191).() const;
63 virtual void onDatabaseCleanupcxx . . $ ServiceRoot#onDatabaseCleanup(49f6e7a06ebc5aa8).();
64 virtual void updateCountscxx . . $ ServiceRoot#updateCounts(b45ddcbc8423892c).(bool including_total_count);
65 virtual bool canBeDeletedcxx . . $ ServiceRoot#canBeDeleted(50ce9a9e25b4a850).() const;
66 virtual bool deleteItemcxx . . $ ServiceRoot#deleteItem(c9857a73d68e59ba).();
67 virtual void editItemscxx . . $ ServiceRoot#editItems(47657a4e8825adca).(const QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*>& items);
68 virtual bool markAsReadUnreadcxx . . $ ServiceRoot#markAsReadUnread(c2f07a1f8834328b).(ReadStatuscxx . . $ RootItem#ReadStatus# status);
69 virtual QListcxx . . $ QList#<Messagecxx . . $ Message#> undeletedMessagescxx . . $ ServiceRoot#undeletedMessages(96785ab56182243a).() const;
70 virtual bool supportsFeedAddingcxx . . $ ServiceRoot#supportsFeedAdding(50ce9a9e25b4a850).() const;
71 virtual bool supportsCategoryAddingcxx . . $ ServiceRoot#supportsCategoryAdding(50ce9a9e25b4a850).() const;
72 virtual LabelOperationcxx . . $ ServiceRoot#LabelOperation# supportedLabelOperationscxx . . $ ServiceRoot#supportedLabelOperations(a2eb219fd1bf9aba).() const;
73 virtual QStringcxx . . $ QString# additionalTooltipcxx . . $ ServiceRoot#additionalTooltip(6ef7b6c27b00b43d).() const;
74 virtual void saveAccountDataToDatabasecxx . . $ ServiceRoot#saveAccountDataToDatabase(49f6e7a06ebc5aa8).();
75 virtual QVariantHashcxx . . $ QVariantHash# customDatabaseDatacxx . . $ ServiceRoot#customDatabaseData(556033a494fe4eb9).() const;
76 virtual void setCustomDatabaseDatacxx . . $ ServiceRoot#setCustomDatabaseData(3e473b083d16b808).(const QVariantHashcxx . . $ QVariantHash#& data);
77 virtual bool wantsBaggedIdsOfExistingMessagescxx . . $ ServiceRoot#wantsBaggedIdsOfExistingMessages(50ce9a9e25b4a850).() const;
78 virtual bool displaysEnclosurescxx . . $ ServiceRoot#displaysEnclosures(50ce9a9e25b4a850).() const;
79 virtual void aboutToBeginFeedFetchingcxx . . $ ServiceRoot#aboutToBeginFeedFetching(98bf0ea000ca8bc1).(const QListcxx . . $ QList#<Feedcxx . . $ Feed#*>& feeds,
80 const QHashcxx . . $ QHash#<QStringcxx . . $ QString#, QHashcxx . . $ QHash#<ServiceRootcxx . . $ ServiceRoot#::BagOfMessagescxx . . $ ServiceRoot#BagOfMessages#, QStringListcxx . . $ QStringList#>>&
81 stated_messages,
82 const QHashcxx . . $ QHash#<QStringcxx . . $ QString#, QStringListcxx . . $ QStringList#>& tagged_messages);
83
84 // Returns list of specific actions for "Add new item" main window menu.
85 // So typical list of returned actions could look like:
86 // a) Add new feed
87 // b) Add new category
88 // c) ...
89 // NOTE: Caller does NOT take ownership of created menu/actions!
90 virtual QListcxx . . $ QList#<QActioncxx . . $ QAction#*> addItemMenucxx . . $ ServiceRoot#addItemMenu(c4b3bc0793dee689).();
91
92 // NOTE: Caller does NOT take ownership of created menu/actions!
93 virtual QListcxx . . $ QList#<QActioncxx . . $ QAction#*> contextMenuFeedsListcxx . . $ ServiceRoot#contextMenuFeedsList(c4b3bc0793dee689).();
94
95 // NOTE: Caller does NOT take ownership of created menu/actions!
96 virtual QListcxx . . $ QList#<QActioncxx . . $ QAction#*> contextMenuMessagesListcxx . . $ ServiceRoot#contextMenuMessagesList(20ca3221999a04df).(const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages);
97
98 // Returns list of specific actions to be shown in main window menu
99 // bar in sections "Services -> 'this service'".
100 // NOTE: Caller does NOT take ownership of created menu!
101 virtual QListcxx . . $ QList#<QActioncxx . . $ QAction#*> serviceMenucxx . . $ ServiceRoot#serviceMenu(c4b3bc0793dee689).();
102
103 // If plugin uses online synchronization of feeds/labels/etc, then returns true.
104 virtual bool isSyncablecxx . . $ ServiceRoot#isSyncable(50ce9a9e25b4a850).() const;
105
106 // Start/stop services.
107 // Start method is called when feed model gets initialized OR after user adds new service.
108 // Account should synchronously initialize its children (load them from DB is recommended
109 // here).
110 //
111 // Stop method is called just before application exits OR when
112 // user explicitly deletes existing service instance.
113 virtual void startcxx . . $ ServiceRoot#start(b45ddcbc8423892c).(bool freshly_activated);
114 virtual void stopcxx . . $ ServiceRoot#stop(49f6e7a06ebc5aa8).();
115
116 // Obtains list of messages.
117 // Throws exception subclassed from ApplicationException, preferably FeedFetchException
118 // if any problems arise.
119 virtual QListcxx . . $ QList#<Messagecxx . . $ Message#> obtainNewMessagescxx . . $ ServiceRoot#obtainNewMessages(490368a1e149090e).(Feedcxx . . $ Feed#* feed,
120 const QHashcxx . . $ QHash#<ServiceRootcxx . . $ ServiceRoot#::BagOfMessagescxx . . $ ServiceRoot#BagOfMessages#, QStringListcxx . . $ QStringList#>& stated_messages,
121 const QHashcxx . . $ QHash#<QStringcxx . . $ QString#, QStringListcxx . . $ QStringList#>& tagged_messages) = 0;
122
123 // Returns special widget to display articles of this account type.
124 // Caller does NOT free returned previewer after usage from memory,
125 // it only may hide it.
126 // Thus, account is responsible to free any custom previewers.
127 virtual CustomMessagePreviewercxx . . $ CustomMessagePreviewer#* customMessagePreviewercxx . . $ ServiceRoot#customMessagePreviewer(273ef911585340f).();
128
129 // This method should load messages for given "item" into model.
130 virtual bool loadMessagesForItemcxx . . $ ServiceRoot#loadMessagesForItem(5c65929cf2c175f7).(RootItemcxx . . $ RootItem#* item, MessagesModelcxx . . $ MessagesModel#* model);
131
132 // Called BEFORE this read status update (triggered by user in message list) is stored in DB,
133 // when false is returned, change is aborted.
134 // This is the place to make some other changes like updating
135 // some ONLINE service or something.
136 //
137 // "read" is status which is ABOUT TO BE SET.
138 virtual bool onBeforeSetMessagesReadcxx . . $ ServiceRoot#onBeforeSetMessagesRead(560bab74201c5167).(RootItemcxx . . $ RootItem#* selected_item, const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages, ReadStatuscxx . . $ RootItem#ReadStatus# read);
139
140 // Called AFTER this read status update (triggered by user in message list) is stored in DB,
141 // when false is returned, change is aborted.
142 // Here service root should inform (via signals)
143 // which items are actually changed.
144 //
145 // "read" is status which is ABOUT TO BE SET.
146 virtual bool onAfterSetMessagesReadcxx . . $ ServiceRoot#onAfterSetMessagesRead(560bab74201c5167).(RootItemcxx . . $ RootItem#* selected_item, const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages, ReadStatuscxx . . $ RootItem#ReadStatus# read);
147
148 // Called BEFORE this importance switch update is stored in DB,
149 // when false is returned, change is aborted.
150 // This is the place to make some other changes like updating
151 // some ONLINE service or something.
152 //
153 // "changes" - list of pairs - <message (integer id), new status>
154 virtual bool onBeforeSwitchMessageImportancecxx . . $ ServiceRoot#onBeforeSwitchMessageImportance(3cf6dccd01820b2).(RootItemcxx . . $ RootItem#* selected_item, const QListcxx . . $ QList#<ImportanceChangecxx . . $ ImportanceChange#>& changes);
155
156 // Called AFTER this importance switch update is stored in DB,
157 // when false is returned, change is aborted.
158 // Here service root should inform (via signals)
159 // which items are actually changed.
160 //
161 // "changes" - list of pairs - <message (integer id), new status>
162 virtual bool onAfterSwitchMessageImportancecxx . . $ ServiceRoot#onAfterSwitchMessageImportance(3cf6dccd01820b2).(RootItemcxx . . $ RootItem#* selected_item, const QListcxx . . $ QList#<ImportanceChangecxx . . $ ImportanceChange#>& changes);
163
164 // Called BEFORE the list of messages is about to be deleted
165 // by the user from message list.
166 virtual bool onBeforeMessagesDeletecxx . . $ ServiceRoot#onBeforeMessagesDelete(66194ea565064a52).(RootItemcxx . . $ RootItem#* selected_item, const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages);
167
168 // Called AFTER the list of messages was deleted
169 // by the user from message list.
170 virtual bool onAfterMessagesDeletecxx . . $ ServiceRoot#onAfterMessagesDelete(66194ea565064a52).(RootItemcxx . . $ RootItem#* selected_item, const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages);
171
172 // Called BEFORE some labels are assigned/deassigned from/to messages.
173 virtual bool onBeforeLabelMessageAssignmentChangedcxx . . $ ServiceRoot#onBeforeLabelMessageAssignmentChanged(e6c37902ff50c0c4).(const QListcxx . . $ QList#<Labelcxx . . $ Label#*>& labels,
174 const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages,
175 bool assign);
176
177 // Called AFTER some labels are assigned/deassigned from/to messages.
178 virtual bool onAfterLabelMessageAssignmentChangedcxx . . $ ServiceRoot#onAfterLabelMessageAssignmentChanged(e6c37902ff50c0c4).(const QListcxx . . $ QList#<Labelcxx . . $ Label#*>& labels,
179 const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages,
180 bool assign);
181
182 // Called BEFORE the list of messages is about to be restored from recycle bin
183 // by the user from message list.
184 // Selected item is naturally recycle bin.
185 virtual bool onBeforeMessagesRestoredFromBincxx . . $ ServiceRoot#onBeforeMessagesRestoredFromBin(66194ea565064a52).(RootItemcxx . . $ RootItem#* selected_item, const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages);
186
187 // Called AFTER the list of messages was restored from recycle bin
188 // by the user from message list.
189 // Selected item is naturally recycle bin.
190 virtual bool onAfterMessagesRestoredFromBincxx . . $ ServiceRoot#onAfterMessagesRestoredFromBin(66194ea565064a52).(RootItemcxx . . $ RootItem#* selected_item, const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages);
191
192 // Called AFTER articles of these feeds are purged from the database.
193 virtual void onAfterFeedsPurgedcxx . . $ ServiceRoot#onAfterFeedsPurged(bcc73982dd0bdfc6).(const QListcxx . . $ QList#<Feedcxx . . $ Feed#*>& feeds);
194
195 // Returns the UNIQUE code of the given service.
196 // NOTE: Keep in sync with ServiceEntryRoot::code().
197 virtual QStringcxx . . $ QString# codecxx . . $ ServiceRoot#code(6ef7b6c27b00b43d).() const = 0;
198
199 public:
200 CacheForServiceRootcxx . . $ CacheForServiceRoot#* toCachecxx . . $ ServiceRoot#toCache(3a91035457800c8).() const;
201
202 // Account ID corresponds with DB attribute Accounts (id).
203 int accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).() const;
204 void setAccountIdcxx . . $ ServiceRoot#setAccountId(d4f767463ce0a6b3).(int account_id);
205
206 QNetworkProxycxx . . $ QNetworkProxy# networkProxycxx . . $ ServiceRoot#networkProxy(e4d242e7a984a99c).() const;
207 void setNetworkProxycxx . . $ ServiceRoot#setNetworkProxy(efbe238af4b4e748).(const QNetworkProxycxx . . $ QNetworkProxy#& network_proxy);
208
209 // Removes all data associated with this account from DB
210 // and from model.
211 void completelyRemoveAllDatacxx . . $ ServiceRoot#completelyRemoveAllData(49f6e7a06ebc5aa8).();
212
213 // Returns counts of updated messages <unread, all>.
214 UpdatedArticlescxx . . $ UpdatedArticles# updateMessagescxx . . $ ServiceRoot#updateMessages(94545357301d5fab).(QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages, Feedcxx . . $ Feed#* feed, bool force_update, QMutexcxx . . $ QMutex#* db_mutex);
215
216 QIconcxx . . $ QIcon# feedIconForMessagecxx . . $ ServiceRoot#feedIconForMessage(4b20fd6fb65e6c19).(const QStringcxx . . $ QString#& feed_custom_id) const;
217
218 // Removes all/read only messages from given underlying feeds.
219 bool cleanFeedscxx . . $ ServiceRoot#cleanFeeds(773bb01e64ccf77d).(const QListcxx . . $ QList#<Feedcxx . . $ Feed#*>& items, bool clean_read_only);
220
221 // Marks all messages from feeds read/unread.
222 bool markFeedsReadUnreadcxx . . $ ServiceRoot#markFeedsReadUnread(cd8129ce0f5261b5).(const QListcxx . . $ QList#<Feedcxx . . $ Feed#*>& items, ReadStatuscxx . . $ RootItem#ReadStatus# read);
223
224 // Obvious methods to wrap signals.
225 void itemChangedcxx . . $ ServiceRoot#itemChanged(47657a4e8825adca).(const QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*>& items);
226 void requestReloadMessageListcxx . . $ ServiceRoot#requestReloadMessageList(b45ddcbc8423892c).(bool mark_selected_messages_read);
227 void requestItemExpandcxx . . $ ServiceRoot#requestItemExpand(8e785c59da43649).(const QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*>& items, bool expand);
228 void requestItemExpandStateSavecxx . . $ ServiceRoot#requestItemExpandStateSave(cb16baca005cfe86).(RootItemcxx . . $ RootItem#* subtree_root);
229 void requestItemReassignmentcxx . . $ ServiceRoot#requestItemReassignment(a5628b38272995c3).(RootItemcxx . . $ RootItem#* item, RootItemcxx . . $ RootItem#* new_parent);
230 void requestItemsReassignmentcxx . . $ ServiceRoot#requestItemsReassignment(e6fb9a4aafa2abc4).(const QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*>& items, RootItemcxx . . $ RootItem#* new_parent);
231 void requestItemRemovalcxx . . $ ServiceRoot#requestItemRemoval(cb16baca005cfe86).(RootItemcxx . . $ RootItem#* item);
232
233 // Some message/feed attribute selectors.
234 QStringListcxx . . $ QStringList# textualFeedUrlscxx . . $ ServiceRoot#textualFeedUrls(4bcc9f9352a83403).(const QListcxx . . $ QList#<Feedcxx . . $ Feed#*>& feeds) const;
235 QStringListcxx . . $ QStringList# textualFeedIdscxx . . $ ServiceRoot#textualFeedIds(4bcc9f9352a83403).(const QListcxx . . $ QList#<Feedcxx . . $ Feed#*>& feeds) const;
236 QStringListcxx . . $ QStringList# customIDsOfMessagescxx . . $ ServiceRoot#customIDsOfMessages(db96838b62fc070d).(const QListcxx . . $ QList#<ImportanceChangecxx . . $ ImportanceChange#>& changes);
237 QStringListcxx . . $ QStringList# customIDsOfMessagescxx . . $ ServiceRoot#customIDsOfMessages(484dd2f321a6295e).(const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages);
238
239 // Returns list of article IDs depending on what target operation is.
240 // NOTE: So if we want to mark some articles as read,
241 // then we only return UNREAD IDs here to really return
242 // only IDs when the change makes sense.
243 // NOTE: Importance is not dealt here because it was not needed
244 // yet.
245 QStringListcxx . . $ QStringList# customIDSOfMessagesForItemcxx . . $ ServiceRoot#customIDSOfMessagesForItem(2acd0df652f9aeb7).(RootItemcxx . . $ RootItem#* item,
246 RootItemcxx . . $ RootItem#::ReadStatuscxx . . $ RootItem#ReadStatus# target_read = RootItemcxx . . $ RootItem#::ReadStatuscxx . . $ RootItem#ReadStatus#::Unknowncxx . . $ RootItem#ReadStatus#Unknown.);
247
248 void performInitialAssemblycxx . . $ ServiceRoot#performInitialAssembly(59f74b440c36dc6f).(const Assignmentcxx . . $ Assignment#& categories,
249 const Assignmentcxx . . $ Assignment#& feeds,
250 const QListcxx . . $ QList#<Labelcxx . . $ Label#*>& labels,
251 const QListcxx . . $ QList#<Searchcxx . . $ Search#*>& probes);
252
253 bool nodeShowUnreadcxx . . $ ServiceRoot#nodeShowUnread(50ce9a9e25b4a850).() const;
254 void setNodeShowUnreadcxx . . $ ServiceRoot#setNodeShowUnread(b45ddcbc8423892c).(bool enabled);
255
256 bool nodeShowImportantcxx . . $ ServiceRoot#nodeShowImportant(50ce9a9e25b4a850).() const;
257 void setNodeShowImportantcxx . . $ ServiceRoot#setNodeShowImportant(b45ddcbc8423892c).(bool enabled);
258
259 bool nodeShowLabelscxx . . $ ServiceRoot#nodeShowLabels(50ce9a9e25b4a850).() const;
260 void setNodeShowLabelscxx . . $ ServiceRoot#setNodeShowLabels(b45ddcbc8423892c).(bool enabled);
261
262 bool nodeShowProbescxx . . $ ServiceRoot#nodeShowProbes(50ce9a9e25b4a850).() const;
263 void setNodeShowProbescxx . . $ ServiceRoot#setNodeShowProbes(b45ddcbc8423892c).(bool enabled);
264
265 public slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!:
266 virtual void addNewFeedcxx . . $ ServiceRoot#addNewFeed(d47fda0a57dac307).(RootItemcxx . . $ RootItem#* selected_item, const QStringcxx . . $ QString#& url = QStringcxx . . $ QString#QString(ced63f7c635d850d).());
267 virtual void addNewCategorycxx . . $ ServiceRoot#addNewCategory(cb16baca005cfe86).(RootItemcxx . . $ RootItem#* selected_item);
268 virtual void syncIncxx . . $ ServiceRoot#syncIn(49f6e7a06ebc5aa8).();
269
270 protected:
271 // This method should obtain new tree of feed/categories/whatever to perform sync in.
272 virtual RootItemcxx . . $ RootItem#* obtainNewTreeForSyncIncxx . . $ ServiceRoot#obtainNewTreeForSyncIn(e4f4b13bf6686a09).() const;
273
274 // Removes all messages/categories/feeds which are
275 // associated with this account.
276 void removeOldAccountFromDatabasecxx . . $ ServiceRoot#removeOldAccountFromDatabase(b0b38cda41d4ede4).(bool delete_messages_too, bool delete_labels_too);
277 void cleanAllItemsFromModelcxx . . $ ServiceRoot#cleanAllItemsFromModel(b45ddcbc8423892c).(bool clean_labels_too);
278 void appendCommonNodescxx . . $ ServiceRoot#appendCommonNodes(49f6e7a06ebc5aa8).();
279
280 // Removes messages which do not belong to any
281 // existing feed.
282 //
283 // NOTE: This situation may happen if user deletes some feed
284 // from another machine and then performs sync-in on this machine.
285 void removeLeftOverMessagescxx . . $ ServiceRoot#removeLeftOverMessages(49f6e7a06ebc5aa8).();
286
287 // Removes all msg. filter assignments which are (within this account)
288 // assigned to feed (via custom ID) which does not exist anymore.
289 //
290 // NOTE: This situation may happen if user deletes some feed
291 // from another machine and then performs sync-in on this machine.
292 void removeLeftOverMessageFilterAssignmentscxx . . $ ServiceRoot#removeLeftOverMessageFilterAssignments(49f6e7a06ebc5aa8).();
293
294 // Takes lists of feeds/categories and assembles them into the tree structure.
295 void assembleCategoriescxx . . $ ServiceRoot#assembleCategories(ea83f50dc52cd5f2).(const Assignmentcxx . . $ Assignment#& categories);
296 void assembleFeedscxx . . $ ServiceRoot#assembleFeeds(ea83f50dc52cd5f2).(const Assignmentcxx . . $ Assignment#& feeds);
297
298 signalscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:43:14`!:
299 void proxyChangedcxx . . $ ServiceRoot#proxyChanged(7e3e15a7df562b1f).(QNetworkProxycxx . . $ QNetworkProxy# proxy);
300 void dataChangedcxx . . $ ServiceRoot#dataChanged(f6815b728611608d).(QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> items);
301 void reloadMessageListRequestedcxx . . $ ServiceRoot#reloadMessageListRequested(b45ddcbc8423892c).(bool mark_selected_messages_read);
302 void itemExpandRequestedcxx . . $ ServiceRoot#itemExpandRequested(ec1fe1f905b4f8b2).(QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> items, bool expand);
303 void itemExpandStateSaveRequestedcxx . . $ ServiceRoot#itemExpandStateSaveRequested(cb16baca005cfe86).(RootItemcxx . . $ RootItem#* subtree_root);
304
305 void itemReassignmentRequestedcxx . . $ ServiceRoot#itemReassignmentRequested(a5628b38272995c3).(RootItemcxx . . $ RootItem#* item, RootItemcxx . . $ RootItem#* new_parent);
306 void itemRemovalRequestedcxx . . $ ServiceRoot#itemRemovalRequested(cb16baca005cfe86).(RootItemcxx . . $ RootItem#* item);
307
308 private:
309 void resortAccountTreecxx . . $ ServiceRoot#resortAccountTree(5d55c4cf96070d74).(RootItemcxx . . $ RootItem#* tree,
310 const QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QVariantMapcxx . . $ QVariantMap#>& custom_category_data,
311 const QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QVariantMapcxx . . $ QVariantMap#>& custom_feed_data) const;
312
313 // Key is feed's custom ID.
314 virtual QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QVariantMapcxx . . $ QVariantMap#> storeCustomFeedsDatacxx . . $ ServiceRoot#storeCustomFeedsData(2025e8538fcb7adc).();
315
316 // Key is category's custom ID.
317 virtual QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QVariantMapcxx . . $ QVariantMap#> storeCustomCategoriesDatacxx . . $ ServiceRoot#storeCustomCategoriesData(2025e8538fcb7adc).();
318
319 virtual void restoreCustomFeedsDatacxx . . $ ServiceRoot#restoreCustomFeedsData(b8fd159aeef5888e).(const QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QVariantMapcxx . . $ QVariantMap#>& data, const QHashcxx . . $ QHash#<QStringcxx . . $ QString#, Feedcxx . . $ Feed#*>& feeds);
320 virtual void restoreCustomCategoriesDatacxx . . $ ServiceRoot#restoreCustomCategoriesData(299f146570733800).(const QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QVariantMapcxx . . $ QVariantMap#>& data,
321 const QHashcxx . . $ QHash#<QStringcxx . . $ QString#, Categorycxx . . $ Category#*>& cats);
322
323 protected:
324 RecycleBincxx . . $ RecycleBin#* m_recycleBincxx . . $ ServiceRoot#m_recycleBin.;
325 ImportantNodecxx . . $ ImportantNode#* m_importantNodecxx . . $ ServiceRoot#m_importantNode.;
326 LabelsNodecxx . . $ LabelsNode#* m_labelsNodecxx . . $ ServiceRoot#m_labelsNode.;
327 SearchsNodecxx . . $ SearchsNode#* m_probesNodecxx . . $ ServiceRoot#m_probesNode.;
328 UnreadNodecxx . . $ UnreadNode#* m_unreadNodecxx . . $ ServiceRoot#m_unreadNode.;
329 int m_accountIdcxx . . $ ServiceRoot#m_accountId.;
330 QListcxx . . $ QList#<QActioncxx . . $ QAction#*> m_serviceMenucxx . . $ ServiceRoot#m_serviceMenu.;
331 QNetworkProxycxx . . $ QNetworkProxy# m_networkProxycxx . . $ ServiceRoot#m_networkProxy.;
332 bool m_nodeShowUnreadcxx . . $ ServiceRoot#m_nodeShowUnread.;
333 bool m_nodeShowImportantcxx . . $ ServiceRoot#m_nodeShowImportant.;
334 bool m_nodeShowLabelscxx . . $ ServiceRoot#m_nodeShowLabels.;
335 bool m_nodeShowProbescxx . . $ ServiceRoot#m_nodeShowProbes.;
336 };
337
338 #if QT_VERSION_MAJORcxx . . $ `<external>/9758848313111604122/qconfig.h:67:9`! == 6
339 inline size_tcxx . . $ size_t# qHashcxx . . $ qHash(35f6fca0e59f18ba).(ServiceRootcxx . . $ ServiceRoot#::BagOfMessagescxx . . $ ServiceRoot#BagOfMessages# key, size_tcxx . . $ size_t# seed) {
340 return ::qHashcxx . . $ qHash(6f16197064c5cf71).(static_cast<uintcxx . . $ uint#>(key), seed);
341 }
342
343 #else
344 inline uint qHash(ServiceRoot::BagOfMessages key, uint seed) {
345 return ::qHash(static_cast<uint>(key), seed);
346 }
347
348 #endif
349
350 ServiceRootcxx . . $ ServiceRoot#::LabelOperationcxx . . $ ServiceRoot#LabelOperation# operatorcxx . . $ `operator|`(104937c015b752c5).|(ServiceRootcxx . . $ ServiceRoot#::LabelOperationcxx . . $ ServiceRoot#LabelOperation# lhs, ServiceRootcxx . . $ ServiceRoot#::LabelOperationcxx . . $ ServiceRoot#LabelOperation# rhs);
351 ServiceRootcxx . . $ ServiceRoot#::LabelOperationcxx . . $ ServiceRoot#LabelOperation# operatorcxx . . $ `operator&`(104937c015b752c5).&(ServiceRootcxx . . $ ServiceRoot#::LabelOperationcxx . . $ ServiceRoot#LabelOperation# lhs, ServiceRootcxx . . $ ServiceRoot#::LabelOperationcxx . . $ ServiceRoot#LabelOperation# rhs);
352
353 #endif // SERVICEROOT_H