| 1 | // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/services/abstract/serviceroot.cpp`/ |
| 2 | |
| 3 | #include "services/abstract/serviceroot.h"cxx . . $ `<file>/src/librssguard/services/abstract/serviceroot.h`/ |
| 4 | |
| 5 | #include "3rd-party/boolinq/boolinq.h"cxx . . $ `<file>/src/librssguard/3rd-party/boolinq/boolinq.h`/ |
| 6 | #include "core/messagesmodel.h"cxx . . $ `<file>/src/librssguard/core/messagesmodel.h`/ |
| 7 | #include "database/databasequeries.h"cxx . . $ `<file>/src/librssguard/database/databasequeries.h`/ |
| 8 | #include "definitions/globals.h"cxx . . $ `<file>/src/librssguard/definitions/globals.h`/ |
| 9 | #include "exceptions/applicationexception.h"cxx . . $ `<file>/src/librssguard/exceptions/applicationexception.h`/ |
| 10 | #include "miscellaneous/application.h"cxx . . $ `<file>/src/librssguard/miscellaneous/application.h`/ |
| 11 | #include "miscellaneous/iconfactory.h"cxx . . $ `<file>/src/librssguard/miscellaneous/iconfactory.h`/ |
| 12 | #include "miscellaneous/textfactory.h"cxx . . $ `<file>/src/librssguard/miscellaneous/textfactory.h`/ |
| 13 | #include "services/abstract/cacheforserviceroot.h"cxx . . $ `<file>/src/librssguard/services/abstract/cacheforserviceroot.h`/ |
| 14 | #include "services/abstract/category.h"cxx . . $ `<file>/src/librssguard/services/abstract/category.h`/ |
| 15 | #include "services/abstract/feed.h"cxx . . $ `<file>/src/librssguard/services/abstract/feed.h`/ |
| 16 | #include "services/abstract/gui/custommessagepreviewer.h"cxx . . $ `<file>/src/librssguard/services/abstract/gui/custommessagepreviewer.h`/ |
| 17 | #include "services/abstract/gui/formaccountdetails.h"cxx . . $ `<file>/src/librssguard/services/abstract/gui/formaccountdetails.h`/ |
| 18 | #include "services/abstract/gui/formaddeditlabel.h"cxx . . $ `<file>/src/librssguard/services/abstract/gui/formaddeditlabel.h`/ |
| 19 | #include "services/abstract/gui/formaddeditprobe.h"cxx . . $ `<file>/src/librssguard/services/abstract/gui/formaddeditprobe.h`/ |
| 20 | #include "services/abstract/gui/formcategorydetails.h"cxx . . $ `<file>/src/librssguard/services/abstract/gui/formcategorydetails.h`/ |
| 21 | #include "services/abstract/gui/formfeeddetails.h"cxx . . $ `<file>/src/librssguard/services/abstract/gui/formfeeddetails.h`/ |
| 22 | #include "services/abstract/importantnode.h"cxx . . $ `<file>/src/librssguard/services/abstract/importantnode.h`/ |
| 23 | #include "services/abstract/labelsnode.h"cxx . . $ `<file>/src/librssguard/services/abstract/labelsnode.h`/ |
| 24 | #include "services/abstract/recyclebin.h"cxx . . $ `<file>/src/librssguard/services/abstract/recyclebin.h`/ |
| 25 | #include "services/abstract/search.h"cxx . . $ `<file>/src/librssguard/services/abstract/search.h`/ |
| 26 | #include "services/abstract/searchsnode.h"cxx . . $ `<file>/src/librssguard/services/abstract/searchsnode.h`/ |
| 27 | #include "services/abstract/unreadnode.h"cxx . . $ `<file>/src/librssguard/services/abstract/unreadnode.h`/ |
| 28 | |
| 29 | ServiceRootcxx . . $ ServiceRoot#::ServiceRootcxx . . $ ServiceRoot#ServiceRoot(cb16baca005cfe86).(RootItemcxx . . $ RootItem#* parent) |
| 30 | : RootItemcxx . . $ RootItem#(parent), m_recycleBincxx . . $ ServiceRoot#m_recycleBin.(new RecycleBincxx . . $ RecycleBin#RecycleBin(cb16baca005cfe86).(this)), m_importantNodecxx . . $ ServiceRoot#m_importantNode.(new ImportantNodecxx . . $ ImportantNode#ImportantNode(cb16baca005cfe86).(this)), |
| 31 | m_labelsNodecxx . . $ ServiceRoot#m_labelsNode.(new LabelsNodecxx . . $ LabelsNode#LabelsNode(cb16baca005cfe86).(this)), m_probesNodecxx . . $ ServiceRoot#m_probesNode.(new SearchsNodecxx . . $ SearchsNode#SearchsNode(cb16baca005cfe86).(this)), m_unreadNodecxx . . $ ServiceRoot#m_unreadNode.(new UnreadNodecxx . . $ UnreadNode#UnreadNode(cb16baca005cfe86).(this)), |
| 32 | m_accountIdcxx . . $ ServiceRoot#m_accountId.(NO_PARENT_CATEGORYcxx . . $ `src/librssguard/definitions/definitions.h:42:9`!), m_networkProxycxx . . $ ServiceRoot#m_networkProxy.(QNetworkProxycxx . . $ QNetworkProxy#QNetworkProxy(49f6e7a06ebc5aa8).()) { |
| 33 | setKindcxx . . $ RootItem#setKind(77afe77d4ce7bfe8).(RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::ServiceRootcxx . . $ RootItem#Kind#ServiceRoot.); |
| 34 | appendCommonNodescxx . . $ ServiceRoot#appendCommonNodes(49f6e7a06ebc5aa8).(); |
| 35 | } |
| 36 | |
| 37 | ServiceRootcxx . . $ ServiceRoot#::~cxx . . $ ServiceRoot#`~ServiceRoot`(ced63f7c635d850d).ServiceRootcxx . . $ ServiceRoot#() {} |
| 38 | |
| 39 | bool ServiceRootcxx . . $ ServiceRoot#::deleteItemcxx . . $ ServiceRoot#deleteItem(c9857a73d68e59ba).() { |
| 40 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 41 | |
| 42 | if (DatabaseQueriescxx . . $ DatabaseQueries#::deleteAccountcxx . . $ DatabaseQueries#deleteAccount(7654f6248827f336).(database, this)) { |
| 43 | stopcxx . . $ ServiceRoot#stop(49f6e7a06ebc5aa8).(); |
| 44 | requestItemRemovalcxx . . $ ServiceRoot#requestItemRemoval(cb16baca005cfe86).(this); |
| 45 | return true; |
| 46 | } |
| 47 | else { |
| 48 | return false; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | void ServiceRootcxx . . $ ServiceRoot#::editItemscxx . . $ ServiceRoot#editItems(47657a4e8825adca).(const QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*>& items) { |
| 53 | // Feed editing. |
| 54 | auto std_feeds = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(items) |
| 55 | .selectcxx . . $ boolinq/Linq#select(a3f5bd4cd382e0ee).([](RootItemcxx . . $ RootItem#* it) { |
| 56 | return qobject_castcxx . . $ qobject_cast(c988cfc0ca08742e).<Feedcxx . . $ Feed#*>(it); |
| 57 | }) |
| 58 | .wherecxx . . $ boolinq/Linq#where(d169c8e6e9294137).([cxx . . $ std/function#function(bdc3712e480e4d04).](Feedcxx . . $ Feed#* fd) { |
| 59 | return fd != nullptr; |
| 60 | }) |
| 61 | .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).(); |
| 62 | |
| 63 | if (!std_feeds.emptycxx . . $ std/__cxx11/list#empty(3482b152b9333168).()) { |
| 64 | QScopedPointercxx . . $ QScopedPointer#<FormFeedDetailscxx . . $ FormFeedDetails#> form_pointercxx . . $ QScopedPointer#QScopedPointer(6f97683fca3ece44).(new FormFeedDetailscxx . . $ FormFeedDetails#(this, qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormWidgetcxx . . $ Application#mainFormWidget(9b769eeb00a33a04).())); |
| 65 | |
| 66 | form_pointer->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).addEditFeedcxx . . $ FormFeedDetails#addEditFeed(d5610567e60eb8ad).<Feedcxx . . $ Feed#>(FROM_STD_LISTcxx . . $ `src/librssguard/definitions/definitions.h:405:9`!(QList<Feed*>, std_feeds)); |
| 67 | return; |
| 68 | } |
| 69 | |
| 70 | // Category editing. |
| 71 | auto std_categories = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(items) |
| 72 | .selectcxx . . $ boolinq/Linq#select(a3f5bd4cd382e0ee).([](RootItemcxx . . $ RootItem#* it) { |
| 73 | return qobject_castcxx . . $ qobject_cast(c988cfc0ca08742e).<Categorycxx . . $ Category#*>(it); |
| 74 | }) |
| 75 | .wherecxx . . $ boolinq/Linq#where(d169c8e6e9294137).([cxx . . $ std/function#function(bdc3712e480e4d04).](Categorycxx . . $ Category#* fd) { |
| 76 | return fd != nullptr; |
| 77 | }) |
| 78 | .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).(); |
| 79 | |
| 80 | if (!std_categories.emptycxx . . $ std/__cxx11/list#empty(3482b152b9333168).()) { |
| 81 | QScopedPointercxx . . $ QScopedPointer#<FormCategoryDetailscxx . . $ FormCategoryDetails#> form_pointercxx . . $ QScopedPointer#QScopedPointer(6f97683fca3ece44).(new FormCategoryDetailscxx . . $ FormCategoryDetails#(this, nullptr, qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormWidgetcxx . . $ Application#mainFormWidget(9b769eeb00a33a04).())); |
| 82 | |
| 83 | form_pointer->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).addEditCategorycxx . . $ FormCategoryDetails#addEditCategory(375fdcae2aa48f4a).<Categorycxx . . $ Category#>(FROM_STD_LISTcxx . . $ `src/librssguard/definitions/definitions.h:405:9`!(QList<Category*>, std_categories)); |
| 84 | return; |
| 85 | } |
| 86 | |
| 87 | // Label editing. |
| 88 | auto std_labels = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(items) |
| 89 | .selectcxx . . $ boolinq/Linq#select(a3f5bd4cd382e0ee).([](RootItemcxx . . $ RootItem#* it) { |
| 90 | return qobject_castcxx . . $ qobject_cast(c988cfc0ca08742e).<Labelcxx . . $ Label#*>(it); |
| 91 | }) |
| 92 | .wherecxx . . $ boolinq/Linq#where(d169c8e6e9294137).([cxx . . $ std/function#function(bdc3712e480e4d04).](Labelcxx . . $ Label#* fd) { |
| 93 | return fd != nullptr; |
| 94 | }) |
| 95 | .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).(); |
| 96 | |
| 97 | if (std_labels.sizecxx . . $ std/__cxx11/list#size(c9b1e749b64d5edc).() == 1) { |
| 98 | // Support editing labels one by one. |
| 99 | FormAddEditLabelcxx . . $ FormAddEditLabel# formcxx . . $ FormAddEditLabel#FormAddEditLabel(108f35f7aa7f3cf9).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormWidgetcxx . . $ Application#mainFormWidget(9b769eeb00a33a04).()); |
| 100 | Labelcxx . . $ Label#* lbl = std_labels.frontcxx . . $ std/__cxx11/list#front(d5f1ba0ed5a2655c).(); |
| 101 | |
| 102 | if (form.execForEditcxx . . $ FormAddEditLabel#execForEdit(5fb5dbab007eb3d1).(lbl)) { |
| 103 | QSqlDatabasecxx . . $ QSqlDatabase# db = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 104 | |
| 105 | DatabaseQueriescxx . . $ DatabaseQueries#::updateLabelcxx . . $ DatabaseQueries#updateLabel(a7855bcaaeb22eb).(db, lbl); |
| 106 | } |
| 107 | |
| 108 | return; |
| 109 | } |
| 110 | |
| 111 | // Probe editing. |
| 112 | auto std_probes = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(items) |
| 113 | .selectcxx . . $ boolinq/Linq#select(a3f5bd4cd382e0ee).([](RootItemcxx . . $ RootItem#* it) { |
| 114 | return qobject_castcxx . . $ qobject_cast(c988cfc0ca08742e).<Searchcxx . . $ Search#*>(it); |
| 115 | }) |
| 116 | .wherecxx . . $ boolinq/Linq#where(d169c8e6e9294137).([cxx . . $ std/function#function(bdc3712e480e4d04).](Searchcxx . . $ Search#* fd) { |
| 117 | return fd != nullptr; |
| 118 | }) |
| 119 | .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).(); |
| 120 | |
| 121 | if (std_probes.sizecxx . . $ std/__cxx11/list#size(c9b1e749b64d5edc).() == 1) { |
| 122 | // Support editing probes one by one. |
| 123 | FormAddEditProbecxx . . $ FormAddEditProbe# formcxx . . $ FormAddEditProbe#FormAddEditProbe(108f35f7aa7f3cf9).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormWidgetcxx . . $ Application#mainFormWidget(9b769eeb00a33a04).()); |
| 124 | Searchcxx . . $ Search#* probe = std_probes.frontcxx . . $ std/__cxx11/list#front(d5f1ba0ed5a2655c).(); |
| 125 | |
| 126 | if (form.execForEditcxx . . $ FormAddEditProbe#execForEdit(1953adbd79cb441f).(probe)) { |
| 127 | QSqlDatabasecxx . . $ QSqlDatabase# db = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 128 | |
| 129 | DatabaseQueriescxx . . $ DatabaseQueries#::updateProbecxx . . $ DatabaseQueries#updateProbe(fa2550e03bfb9411).(db, probe); |
| 130 | updateCountscxx . . $ ServiceRoot#updateCounts(b45ddcbc8423892c).(probe); |
| 131 | itemChangedcxx . . $ ServiceRoot#itemChanged(47657a4e8825adca).({cxx . . $ QList#QList(b6da5b9a9f304025).probe}); |
| 132 | } |
| 133 | |
| 134 | return; |
| 135 | } |
| 136 | |
| 137 | qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::GeneralEventcxx . . $ Notification#Event#GeneralEvent., |
| 138 | {cxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).trcxx . . $ ServiceRoot#tr(75d9f1c324b4579d).("Unsupported"), trcxx . . $ ServiceRoot#tr(75d9f1c324b4579d).("This is not suppported (yet)."), QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Warningcxx . . $ QSystemTrayIcon#Warning.}); |
| 139 | } |
| 140 | |
| 141 | bool ServiceRootcxx . . $ ServiceRoot#::markAsReadUnreadcxx . . $ ServiceRoot#markAsReadUnread(c2f07a1f8834328b).(RootItemcxx . . $ RootItem#::ReadStatuscxx . . $ RootItem#ReadStatus# status) { |
| 142 | auto* cache = dynamic_cast<CacheForServiceRootcxx . . $ CacheForServiceRoot#*>(this); |
| 143 | |
| 144 | if (cache != nullptr) { |
| 145 | cache->addMessageStatesToCachecxx . . $ CacheForServiceRoot#addMessageStatesToCache(c21502b1d481d06b).(customIDSOfMessagesForItemcxx . . $ ServiceRoot#customIDSOfMessagesForItem(2acd0df652f9aeb7).(this, status), status); |
| 146 | } |
| 147 | |
| 148 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 149 | |
| 150 | if (DatabaseQueriescxx . . $ DatabaseQueries#::markAccountReadUnreadcxx . . $ DatabaseQueries#markAccountReadUnread(a6849f7a0a1d92ee).(database, accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).(), status)) { |
| 151 | updateCountscxx . . $ ServiceRoot#updateCounts(b45ddcbc8423892c).(false); |
| 152 | itemChangedcxx . . $ ServiceRoot#itemChanged(47657a4e8825adca).(getSubTreecxx . . $ RootItem#getSubTree(38d8ae5645f2bbf1).<RootItemcxx . . $ RootItem#>()); |
| 153 | requestReloadMessageListcxx . . $ ServiceRoot#requestReloadMessageList(b45ddcbc8423892c).(status == RootItemcxx . . $ RootItem#::ReadStatuscxx . . $ RootItem#ReadStatus#::Readcxx . . $ RootItem#ReadStatus#Read.); |
| 154 | return true; |
| 155 | } |
| 156 | else { |
| 157 | return false; |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | QListcxx . . $ QList#<QActioncxx . . $ QAction#*> ServiceRootcxx . . $ ServiceRoot#::addItemMenucxx . . $ ServiceRoot#addItemMenu(c4b3bc0793dee689).() { |
| 162 | return QListcxx . . $ QList#QList(ced63f7c635d850d).<QActioncxx . . $ QAction#*>(); |
| 163 | } |
| 164 | |
| 165 | RecycleBincxx . . $ RecycleBin#* ServiceRootcxx . . $ ServiceRoot#::recycleBincxx . . $ ServiceRoot#recycleBin(955f70cd004a2ff8).() const { |
| 166 | return m_recycleBincxx . . $ ServiceRoot#m_recycleBin.; |
| 167 | } |
| 168 | |
| 169 | QListcxx . . $ QList#<QActioncxx . . $ QAction#*> ServiceRootcxx . . $ ServiceRoot#::contextMenuFeedsListcxx . . $ ServiceRoot#contextMenuFeedsList(c4b3bc0793dee689).() { |
| 170 | auto specific = serviceMenucxx . . $ ServiceRoot#serviceMenu(c4b3bc0793dee689).(); |
| 171 | auto base = RootItemcxx . . $ RootItem#::contextMenuFeedsListcxx . . $ RootItem#contextMenuFeedsList(c4b3bc0793dee689).(); |
| 172 | |
| 173 | if (!specific.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) { |
| 174 | auto* act_sep = new QActioncxx . . $ QAction#QAction(749de1b6ae65bddd).(this); |
| 175 | |
| 176 | act_sep->setSeparatorcxx . . $ QAction#setSeparator(b45ddcbc8423892c).(true); |
| 177 | base.appendcxx . . $ QList#append(200d2dc08238a4ed).(act_sep); |
| 178 | base.appendcxx . . $ QList#append(3d2301cfd89f773a).(specific); |
| 179 | } |
| 180 | |
| 181 | return base; |
| 182 | } |
| 183 | |
| 184 | QListcxx . . $ QList#<QActioncxx . . $ QAction#*> ServiceRootcxx . . $ ServiceRoot#::contextMenuMessagesListcxx . . $ ServiceRoot#contextMenuMessagesList(20ca3221999a04df).(const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages) { |
| 185 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(messages) |
| 186 | return {cxx . . $ QList#QList(ced63f7c635d850d).}; |
| 187 | } |
| 188 | |
| 189 | QListcxx . . $ QList#<QActioncxx . . $ QAction#*> ServiceRootcxx . . $ ServiceRoot#::serviceMenucxx . . $ ServiceRoot#serviceMenu(c4b3bc0793dee689).() { |
| 190 | if (m_serviceMenucxx . . $ ServiceRoot#m_serviceMenu..isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) { |
| 191 | if (isSyncablecxx . . $ ServiceRoot#isSyncable(50ce9a9e25b4a850).()) { |
| 192 | auto* act_sync_tree = |
| 193 | new QActioncxx . . $ QAction#QAction(ef44fe276c987e61).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->iconscxx . . $ Application#icons(d976db2a0d825b70).()->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("view-refresh")), trcxx . . $ ServiceRoot#tr(75d9f1c324b4579d).("Synchronize folders && other items"), this); |
| 194 | |
| 195 | connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(act_sync_tree, &QActioncxx . . $ QAction#::triggeredcxx . . $ QAction#triggered(b45ddcbc8423892c)., this, &ServiceRootcxx . . $ ServiceRoot#::syncIncxx . . $ ServiceRoot#syncIn(49f6e7a06ebc5aa8).); |
| 196 | m_serviceMenucxx . . $ ServiceRoot#m_serviceMenu..appendcxx . . $ QList#append(200d2dc08238a4ed).(act_sync_tree); |
| 197 | |
| 198 | auto* cache = toCachecxx . . $ ServiceRoot#toCache(3a91035457800c8).(); |
| 199 | |
| 200 | if (cache != nullptr) { |
| 201 | auto* act_sync_cache = |
| 202 | new QActioncxx . . $ QAction#QAction(ef44fe276c987e61).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->iconscxx . . $ Application#icons(d976db2a0d825b70).()->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("view-refresh")), trcxx . . $ ServiceRoot#tr(75d9f1c324b4579d).("Synchronize article cache"), this); |
| 203 | |
| 204 | connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(act_sync_cache, &QActioncxx . . $ QAction#::triggeredcxx . . $ QAction#triggered(b45ddcbc8423892c)., this, [cache]() { |
| 205 | cache->saveAllCachedDatacxx . . $ CacheForServiceRoot#saveAllCachedData(b45ddcbc8423892c).(false); |
| 206 | }); |
| 207 | |
| 208 | m_serviceMenucxx . . $ ServiceRoot#m_serviceMenu..appendcxx . . $ QList#append(200d2dc08238a4ed).(act_sync_cache); |
| 209 | } |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | return m_serviceMenucxx . . $ ServiceRoot#m_serviceMenu.; |
| 214 | } |
| 215 | |
| 216 | bool ServiceRootcxx . . $ ServiceRoot#::isSyncablecxx . . $ ServiceRoot#isSyncable(50ce9a9e25b4a850).() const { |
| 217 | return false; |
| 218 | } |
| 219 | |
| 220 | void ServiceRootcxx . . $ ServiceRoot#::startcxx . . $ ServiceRoot#start(b45ddcbc8423892c).(bool freshly_activated) { |
| 221 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(freshly_activated) |
| 222 | } |
| 223 | |
| 224 | void ServiceRootcxx . . $ ServiceRoot#::stopcxx . . $ ServiceRoot#stop(49f6e7a06ebc5aa8).() {} |
| 225 | |
| 226 | CustomMessagePreviewercxx . . $ CustomMessagePreviewer#* ServiceRootcxx . . $ ServiceRoot#::customMessagePreviewercxx . . $ ServiceRoot#customMessagePreviewer(273ef911585340f).() { |
| 227 | return nullptr; |
| 228 | } |
| 229 | |
| 230 | void ServiceRootcxx . . $ ServiceRoot#::updateCountscxx . . $ ServiceRoot#updateCounts(b45ddcbc8423892c).(bool including_total_count) { |
| 231 | QListcxx . . $ QList#<Feedcxx . . $ Feed#*> feedscxx . . $ QList#QList(ced63f7c635d850d).; |
| 232 | auto str = getSubTreecxx . . $ RootItem#getSubTree(38d8ae5645f2bbf1).<RootItemcxx . . $ RootItem#>(); |
| 233 | |
| 234 | for (RootItemcxx . . $ RootItem#* child : stdcxx . . $ std/::as_constcxx . . $ std/as_const(1dc117cbefefc300).(str)) { |
| 235 | if (child->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Feedcxx . . $ RootItem#Kind#Feed.) { |
| 236 | feeds.appendcxx . . $ QList#append(200d2dc08238a4ed).(child->toFeedcxx . . $ RootItem#toFeed(6205f4b142e8b232).()); |
| 237 | } |
| 238 | else if (child->kindcxx . . $ RootItem#kind(faa800885e6a64b).() != RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Labelcxx . . $ RootItem#Kind#Label. && child->kindcxx . . $ RootItem#kind(faa800885e6a64b).() != RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Categorycxx . . $ RootItem#Kind#Category. && |
| 239 | child->kindcxx . . $ RootItem#kind(faa800885e6a64b).() != RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::ServiceRootcxx . . $ RootItem#Kind#ServiceRoot. && child->kindcxx . . $ RootItem#kind(faa800885e6a64b).() != RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Probecxx . . $ RootItem#Kind#Probe.) { |
| 240 | child->updateCountscxx . . $ RootItem#updateCounts(b45ddcbc8423892c).(including_total_count); |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | if (feeds.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) { |
| 245 | return; |
| 246 | } |
| 247 | |
| 248 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 249 | bool ok; |
| 250 | QMapcxx . . $ QMap#<QStringcxx . . $ QString#, ArticleCountscxx . . $ ArticleCounts#> counts = |
| 251 | DatabaseQueriescxx . . $ DatabaseQueries#::getMessageCountsForAccountcxx . . $ DatabaseQueries#getMessageCountsForAccount(3410d90e01f07fe7).(database, accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).(), including_total_count, &ok); |
| 252 | |
| 253 | if (ok) { |
| 254 | for (Feedcxx . . $ Feed#* feed : feeds) { |
| 255 | if (counts.containscxx . . $ QMap#contains(8877ebe272b9620d).(feed->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).())) { |
| 256 | feed->setCountOfUnreadMessagescxx . . $ Feed#setCountOfUnreadMessages(d4f767463ce0a6b3).(counts.valuecxx . . $ QMap#value(6f0b2e7f225a8193).(feed->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).()).m_unreadcxx . . $ ArticleCounts#m_unread.); |
| 257 | |
| 258 | if (including_total_count) { |
| 259 | feed->setCountOfAllMessagescxx . . $ Feed#setCountOfAllMessages(d4f767463ce0a6b3).(counts.valuecxx . . $ QMap#value(6f0b2e7f225a8193).(feed->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).()).m_totalcxx . . $ ArticleCounts#m_total.); |
| 260 | } |
| 261 | } |
| 262 | else { |
| 263 | feed->setCountOfUnreadMessagescxx . . $ Feed#setCountOfUnreadMessages(d4f767463ce0a6b3).(0); |
| 264 | |
| 265 | if (including_total_count) { |
| 266 | feed->setCountOfAllMessagescxx . . $ Feed#setCountOfAllMessages(d4f767463ce0a6b3).(0); |
| 267 | } |
| 268 | } |
| 269 | } |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | bool ServiceRootcxx . . $ ServiceRoot#::canBeDeletedcxx . . $ ServiceRoot#canBeDeleted(50ce9a9e25b4a850).() const { |
| 274 | return true; |
| 275 | } |
| 276 | |
| 277 | void ServiceRootcxx . . $ ServiceRoot#::completelyRemoveAllDatacxx . . $ ServiceRoot#completelyRemoveAllData(49f6e7a06ebc5aa8).() { |
| 278 | // Purge old data from SQL and clean all model items. |
| 279 | cleanAllItemsFromModelcxx . . $ ServiceRoot#cleanAllItemsFromModel(b45ddcbc8423892c).(true); |
| 280 | removeOldAccountFromDatabasecxx . . $ ServiceRoot#removeOldAccountFromDatabase(b0b38cda41d4ede4).(true, true); |
| 281 | updateCountscxx . . $ ServiceRoot#updateCounts(b45ddcbc8423892c).(true); |
| 282 | itemChangedcxx . . $ ServiceRoot#itemChanged(47657a4e8825adca).({cxx . . $ QList#QList(b6da5b9a9f304025).this}); |
| 283 | requestReloadMessageListcxx . . $ ServiceRoot#requestReloadMessageList(b45ddcbc8423892c).(true); |
| 284 | } |
| 285 | |
| 286 | QIconcxx . . $ QIcon# ServiceRootcxx . . $ ServiceRoot#::feedIconForMessagecxx . . $ ServiceRoot#feedIconForMessage(4b20fd6fb65e6c19).(const QStringcxx . . $ QString#& feed_custom_id) const { |
| 287 | QStringcxx . . $ QString# low_id = feed_custom_id.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).(); |
| 288 | RootItemcxx . . $ RootItem#* found_item = getItemFromSubTreecxx . . $ RootItem#getItemFromSubTree(d39f768279e67ac5).([cxx . . $ std/function#function(bdc3712e480e4d04).low_idcxx . . $ QString#QString(132dd6869045752b).](const RootItemcxx . . $ RootItem#* it) { |
| 289 | return it->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Feedcxx . . $ RootItem#Kind#Feed. && it->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).().toLowercxx . . $ QString#toLower(30b3b70527b1c61a).() ==cxx . . $ `operator==`(5bc2975d2d751687). low_id; |
| 290 | }); |
| 291 | |
| 292 | if (found_item != nullptr) { |
| 293 | return found_item->iconcxx . . $ RootItem#icon(952ef71f8967d9eb).(); |
| 294 | } |
| 295 | else { |
| 296 | return QIconcxx . . $ QIcon#QIcon(ced63f7c635d850d).(); |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | void ServiceRootcxx . . $ ServiceRoot#::removeOldAccountFromDatabasecxx . . $ ServiceRoot#removeOldAccountFromDatabase(b0b38cda41d4ede4).(bool delete_messages_too, bool delete_labels_too) { |
| 301 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 302 | |
| 303 | DatabaseQueriescxx . . $ DatabaseQueries#::deleteAccountDatacxx . . $ DatabaseQueries#deleteAccountData(d1edcbd0e9fd446f).(database, accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).(), delete_messages_too, delete_labels_too); |
| 304 | } |
| 305 | |
| 306 | void ServiceRootcxx . . $ ServiceRoot#::cleanAllItemsFromModelcxx . . $ ServiceRoot#cleanAllItemsFromModel(b45ddcbc8423892c).(bool clean_labels_too) { |
| 307 | auto chi = childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).(); |
| 308 | |
| 309 | for (RootItemcxx . . $ RootItem#* top_level_item : stdcxx . . $ std/::as_constcxx . . $ std/as_const(1dc117cbefefc300).(chi)) { |
| 310 | if (top_level_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() != RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Bincxx . . $ RootItem#Kind#Bin. && top_level_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() != RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Importantcxx . . $ RootItem#Kind#Important. && |
| 311 | top_level_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() != RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Unreadcxx . . $ RootItem#Kind#Unread. && top_level_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() != RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Probescxx . . $ RootItem#Kind#Probes. && |
| 312 | top_level_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() != RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Labelscxx . . $ RootItem#Kind#Labels.) { |
| 313 | requestItemRemovalcxx . . $ ServiceRoot#requestItemRemoval(cb16baca005cfe86).(top_level_item); |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | if (labelsNodecxx . . $ ServiceRoot#labelsNode(b773463470738eab).() != nullptr && clean_labels_too) { |
| 318 | auto lbl_chi = labelsNodecxx . . $ ServiceRoot#labelsNode(b773463470738eab).()->childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).(); |
| 319 | |
| 320 | for (RootItemcxx . . $ RootItem#* lbl : stdcxx . . $ std/::as_constcxx . . $ std/as_const(1dc117cbefefc300).(lbl_chi)) { |
| 321 | requestItemRemovalcxx . . $ ServiceRoot#requestItemRemoval(cb16baca005cfe86).(lbl); |
| 322 | } |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | void ServiceRootcxx . . $ ServiceRoot#::appendCommonNodescxx . . $ ServiceRoot#appendCommonNodes(49f6e7a06ebc5aa8).() { |
| 327 | if (recycleBincxx . . $ ServiceRoot#recycleBin(955f70cd004a2ff8).() != nullptr && !childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).().containscxx . . $ QListSpecialMethodsBase#contains(7349e39e0b02d05c).(recycleBincxx . . $ ServiceRoot#recycleBin(955f70cd004a2ff8).())) { |
| 328 | appendChildcxx . . $ RootItem#appendChild(cb16baca005cfe86).(recycleBincxx . . $ ServiceRoot#recycleBin(955f70cd004a2ff8).()); |
| 329 | } |
| 330 | |
| 331 | if (importantNodecxx . . $ ServiceRoot#importantNode(8695cdbf17186ab2).() != nullptr && !childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).().containscxx . . $ QListSpecialMethodsBase#contains(7349e39e0b02d05c).(importantNodecxx . . $ ServiceRoot#importantNode(8695cdbf17186ab2).())) { |
| 332 | appendChildcxx . . $ RootItem#appendChild(cb16baca005cfe86).(importantNodecxx . . $ ServiceRoot#importantNode(8695cdbf17186ab2).()); |
| 333 | } |
| 334 | |
| 335 | if (unreadNodecxx . . $ ServiceRoot#unreadNode(c16715fb3bd21592).() != nullptr && !childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).().containscxx . . $ QListSpecialMethodsBase#contains(7349e39e0b02d05c).(unreadNodecxx . . $ ServiceRoot#unreadNode(c16715fb3bd21592).())) { |
| 336 | appendChildcxx . . $ RootItem#appendChild(cb16baca005cfe86).(unreadNodecxx . . $ ServiceRoot#unreadNode(c16715fb3bd21592).()); |
| 337 | } |
| 338 | |
| 339 | if (labelsNodecxx . . $ ServiceRoot#labelsNode(b773463470738eab).() != nullptr && !childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).().containscxx . . $ QListSpecialMethodsBase#contains(7349e39e0b02d05c).(labelsNodecxx . . $ ServiceRoot#labelsNode(b773463470738eab).())) { |
| 340 | appendChildcxx . . $ RootItem#appendChild(cb16baca005cfe86).(labelsNodecxx . . $ ServiceRoot#labelsNode(b773463470738eab).()); |
| 341 | } |
| 342 | |
| 343 | if (probesNodecxx . . $ ServiceRoot#probesNode(5f3fc5f885871ebd).() != nullptr && !childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).().containscxx . . $ QListSpecialMethodsBase#contains(7349e39e0b02d05c).(probesNodecxx . . $ ServiceRoot#probesNode(5f3fc5f885871ebd).())) { |
| 344 | appendChildcxx . . $ RootItem#appendChild(cb16baca005cfe86).(probesNodecxx . . $ ServiceRoot#probesNode(5f3fc5f885871ebd).()); |
| 345 | } |
| 346 | } |
| 347 | |
| 348 | bool ServiceRootcxx . . $ ServiceRoot#::cleanFeedscxx . . $ ServiceRoot#cleanFeeds(773bb01e64ccf77d).(const QListcxx . . $ QList#<Feedcxx . . $ Feed#*>& items, bool clean_read_only) { |
| 349 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 350 | |
| 351 | if (DatabaseQueriescxx . . $ DatabaseQueries#::cleanFeedscxx . . $ DatabaseQueries#cleanFeeds(751433c9103cda00).(database, textualFeedIdscxx . . $ ServiceRoot#textualFeedIds(4bcc9f9352a83403).(items), clean_read_only, accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).())) { |
| 352 | getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).()->updateCountscxx . . $ ServiceRoot#updateCounts(b45ddcbc8423892c).(true); |
| 353 | getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).()->itemChangedcxx . . $ ServiceRoot#itemChanged(47657a4e8825adca).(getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).()->getSubTreecxx . . $ RootItem#getSubTree(38d8ae5645f2bbf1).<RootItemcxx . . $ RootItem#>()); |
| 354 | getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).()->requestReloadMessageListcxx . . $ ServiceRoot#requestReloadMessageList(b45ddcbc8423892c).(true); |
| 355 | return true; |
| 356 | } |
| 357 | else { |
| 358 | return false; |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | void ServiceRootcxx . . $ ServiceRoot#::removeLeftOverMessagescxx . . $ ServiceRoot#removeLeftOverMessages(49f6e7a06ebc5aa8).() { |
| 363 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 364 | |
| 365 | DatabaseQueriescxx . . $ DatabaseQueries#::purgeLeftoverMessagescxx . . $ DatabaseQueries#purgeLeftoverMessages(d8032dc71cca56cc).(database, accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).()); |
| 366 | } |
| 367 | |
| 368 | void ServiceRootcxx . . $ ServiceRoot#::removeLeftOverMessageFilterAssignmentscxx . . $ ServiceRoot#removeLeftOverMessageFilterAssignments(49f6e7a06ebc5aa8).() { |
| 369 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 370 | |
| 371 | DatabaseQueriescxx . . $ DatabaseQueries#::purgeLeftoverMessageFilterAssignmentscxx . . $ DatabaseQueries#purgeLeftoverMessageFilterAssignments(d8032dc71cca56cc).(database, accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).()); |
| 372 | } |
| 373 | |
| 374 | QListcxx . . $ QList#<Messagecxx . . $ Message#> ServiceRootcxx . . $ ServiceRoot#::undeletedMessagescxx . . $ ServiceRoot#undeletedMessages(96785ab56182243a).() const { |
| 375 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 376 | |
| 377 | return DatabaseQueriescxx . . $ DatabaseQueries#::getUndeletedMessagesForAccountcxx . . $ DatabaseQueries#getUndeletedMessagesForAccount(4df15bb3942892d6).(database, accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).()); |
| 378 | } |
| 379 | |
| 380 | bool ServiceRootcxx . . $ ServiceRoot#::supportsFeedAddingcxx . . $ ServiceRoot#supportsFeedAdding(50ce9a9e25b4a850).() const { |
| 381 | return false; |
| 382 | } |
| 383 | |
| 384 | bool ServiceRootcxx . . $ ServiceRoot#::supportsCategoryAddingcxx . . $ ServiceRoot#supportsCategoryAdding(50ce9a9e25b4a850).() const { |
| 385 | return false; |
| 386 | } |
| 387 | |
| 388 | ServiceRootcxx . . $ ServiceRoot#::LabelOperationcxx . . $ ServiceRoot#LabelOperation# ServiceRootcxx . . $ ServiceRoot#::supportedLabelOperationscxx . . $ ServiceRoot#supportedLabelOperations(a2eb219fd1bf9aba).() const { |
| 389 | return LabelOperationcxx . . $ ServiceRoot#LabelOperation#::Addingcxx . . $ ServiceRoot#LabelOperation#Adding. |cxx . . $ `operator|`(104937c015b752c5). LabelOperationcxx . . $ ServiceRoot#LabelOperation#::Editingcxx . . $ ServiceRoot#LabelOperation#Editing. |cxx . . $ `operator|`(104937c015b752c5). LabelOperationcxx . . $ ServiceRoot#LabelOperation#::Deletingcxx . . $ ServiceRoot#LabelOperation#Deleting.; |
| 390 | } |
| 391 | |
| 392 | QStringcxx . . $ QString# ServiceRootcxx . . $ ServiceRoot#::additionalTooltipcxx . . $ ServiceRoot#additionalTooltip(6ef7b6c27b00b43d).() const { |
| 393 | return trcxx . . $ ServiceRoot#tr(75d9f1c324b4579d).("Number of feeds: %1\n" |
| 394 | "Number of categories: %2\n" |
| 395 | "Number of disabled feeds: %3") |
| 396 | .argcxx . . $ QString#arg(89b093bd48b6d6c0).(QStringcxx . . $ QString#::numbercxx . . $ QString#number(391c8d1a7da534d1).(getSubTreeFeedscxx . . $ RootItem#getSubTreeFeeds(7d493c88c85a9a14).().sizecxx . . $ QList#size(6b0412d51016192f).()), |
| 397 | QStringcxx . . $ QString#::numbercxx . . $ QString#number(391c8d1a7da534d1).(getSubTreeCategoriescxx . . $ RootItem#getSubTreeCategories(d8651057aa4a83be).().sizecxx . . $ QList#size(6b0412d51016192f).()), |
| 398 | QStringcxx . . $ QString#::numbercxx . . $ QString#number(391c8d1a7da534d1).(getSubTreecxx . . $ RootItem#getSubTree(38d8ae5645f2bbf1).<RootItemcxx . . $ RootItem#>([cxx . . $ std/function#function(bdc3712e480e4d04).](const RootItemcxx . . $ RootItem#* ri) { |
| 399 | return ri->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Feedcxx . . $ RootItem#Kind#Feed. && ri->toFeedcxx . . $ RootItem#toFeed(6205f4b142e8b232).()->isSwitchedOffcxx . . $ Feed#isSwitchedOff(50ce9a9e25b4a850).(); |
| 400 | }).sizecxx . . $ QList#size(6b0412d51016192f).())); |
| 401 | } |
| 402 | |
| 403 | void ServiceRootcxx . . $ ServiceRoot#::saveAccountDataToDatabasecxx . . $ ServiceRoot#saveAccountDataToDatabase(49f6e7a06ebc5aa8).() { |
| 404 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 405 | |
| 406 | try { |
| 407 | DatabaseQueriescxx . . $ DatabaseQueries#::createOverwriteAccountcxx . . $ DatabaseQueries#createOverwriteAccount(7e936fcc00e36b24).(database, this); |
| 408 | } |
| 409 | catch (const ApplicationExceptioncxx . . $ ApplicationException#& ex) { |
| 410 | qFatalcxx . . $ `<external>/7280663963939302026/qlogging.h:172:9`!("Account was not saved into database: '%s'.", qPrintablecxx . . $ `<external>/13954984326995544643/qstring.h:1647:11`!(ex.message())); |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | QVariantHashcxx . . $ QVariantHash# ServiceRootcxx . . $ ServiceRoot#::customDatabaseDatacxx . . $ ServiceRoot#customDatabaseData(556033a494fe4eb9).() const { |
| 415 | return {cxx . . $ QHash#QHash(eb367c5a9e07b320).{QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("show_node_unread"), m_nodeShowUnreadcxx . . $ ServiceRoot#m_nodeShowUnread.}, |
| 416 | {QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("show_node_important"), m_nodeShowImportantcxx . . $ ServiceRoot#m_nodeShowImportant.}, |
| 417 | {QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("show_node_labels"), m_nodeShowLabelscxx . . $ ServiceRoot#m_nodeShowLabels.}, |
| 418 | {QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("show_node_probes"), m_nodeShowProbescxx . . $ ServiceRoot#m_nodeShowProbes.}}; |
| 419 | } |
| 420 | |
| 421 | void ServiceRootcxx . . $ ServiceRoot#::setCustomDatabaseDatacxx . . $ ServiceRoot#setCustomDatabaseData(3e473b083d16b808).(const QVariantHashcxx . . $ QVariantHash#& data) { |
| 422 | m_nodeShowUnreadcxx . . $ ServiceRoot#m_nodeShowUnread. = data.valuecxx . . $ QHash#value(a3740c909796fedc).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("show_node_unread"), truecxx . . $ QVariant#QVariant(9f0ba574c1c44ffc).).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).(); |
| 423 | m_nodeShowImportantcxx . . $ ServiceRoot#m_nodeShowImportant. = data.valuecxx . . $ QHash#value(a3740c909796fedc).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("show_node_important"), truecxx . . $ QVariant#QVariant(9f0ba574c1c44ffc).).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).(); |
| 424 | m_nodeShowLabelscxx . . $ ServiceRoot#m_nodeShowLabels. = data.valuecxx . . $ QHash#value(a3740c909796fedc).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("show_node_labels"), truecxx . . $ QVariant#QVariant(9f0ba574c1c44ffc).).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).(); |
| 425 | m_nodeShowProbescxx . . $ ServiceRoot#m_nodeShowProbes. = data.valuecxx . . $ QHash#value(a3740c909796fedc).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("show_node_probes"), truecxx . . $ QVariant#QVariant(9f0ba574c1c44ffc).).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).(); |
| 426 | } |
| 427 | |
| 428 | bool ServiceRootcxx . . $ ServiceRoot#::wantsBaggedIdsOfExistingMessagescxx . . $ ServiceRoot#wantsBaggedIdsOfExistingMessages(50ce9a9e25b4a850).() const { |
| 429 | return false; |
| 430 | } |
| 431 | |
| 432 | bool ServiceRootcxx . . $ ServiceRoot#::displaysEnclosurescxx . . $ ServiceRoot#displaysEnclosures(50ce9a9e25b4a850).() const { |
| 433 | return true; |
| 434 | } |
| 435 | |
| 436 | void ServiceRootcxx . . $ ServiceRoot#::aboutToBeginFeedFetchingcxx . . $ ServiceRoot#aboutToBeginFeedFetching(98bf0ea000ca8bc1).(const QListcxx . . $ QList#<Feedcxx . . $ Feed#*>& feeds, |
| 437 | const QHashcxx . . $ QHash#<QStringcxx . . $ QString#, QHashcxx . . $ QHash#<BagOfMessagescxx . . $ ServiceRoot#BagOfMessages#, QStringListcxx . . $ QStringList#>>& stated_messages, |
| 438 | const QHashcxx . . $ QHash#<QStringcxx . . $ QString#, QStringListcxx . . $ QStringList#>& tagged_messages) { |
| 439 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(feeds) |
| 440 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(stated_messages) |
| 441 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(tagged_messages) |
| 442 | } |
| 443 | |
| 444 | void ServiceRootcxx . . $ ServiceRoot#::itemChangedcxx . . $ ServiceRoot#itemChanged(47657a4e8825adca).(const QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*>& items) { |
| 445 | emitcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:51:10`! dataChangedcxx . . $ ServiceRoot#dataChanged(f6815b728611608d).(items); |
| 446 | } |
| 447 | |
| 448 | void ServiceRootcxx . . $ ServiceRoot#::requestReloadMessageListcxx . . $ ServiceRoot#requestReloadMessageList(b45ddcbc8423892c).(bool mark_selected_messages_read) { |
| 449 | emitcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:51:10`! reloadMessageListRequestedcxx . . $ ServiceRoot#reloadMessageListRequested(b45ddcbc8423892c).(mark_selected_messages_read); |
| 450 | } |
| 451 | |
| 452 | void ServiceRootcxx . . $ ServiceRoot#::requestItemExpandcxx . . $ ServiceRoot#requestItemExpand(8e785c59da43649).(const QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*>& items, bool expand) { |
| 453 | emitcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:51:10`! itemExpandRequestedcxx . . $ ServiceRoot#itemExpandRequested(ec1fe1f905b4f8b2).(items, expand); |
| 454 | } |
| 455 | |
| 456 | void ServiceRootcxx . . $ ServiceRoot#::requestItemExpandStateSavecxx . . $ ServiceRoot#requestItemExpandStateSave(cb16baca005cfe86).(RootItemcxx . . $ RootItem#* subtree_root) { |
| 457 | emitcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:51:10`! itemExpandStateSaveRequestedcxx . . $ ServiceRoot#itemExpandStateSaveRequested(cb16baca005cfe86).(subtree_root); |
| 458 | } |
| 459 | |
| 460 | void ServiceRootcxx . . $ ServiceRoot#::requestItemReassignmentcxx . . $ ServiceRoot#requestItemReassignment(a5628b38272995c3).(RootItemcxx . . $ RootItem#* item, RootItemcxx . . $ RootItem#* new_parent) { |
| 461 | emitcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:51:10`! itemReassignmentRequestedcxx . . $ ServiceRoot#itemReassignmentRequested(a5628b38272995c3).(item, new_parent); |
| 462 | } |
| 463 | |
| 464 | void ServiceRootcxx . . $ ServiceRoot#::requestItemsReassignmentcxx . . $ ServiceRoot#requestItemsReassignment(e6fb9a4aafa2abc4).(const QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*>& items, RootItemcxx . . $ RootItem#* new_parent) { |
| 465 | for (RootItemcxx . . $ RootItem#* it : items) { |
| 466 | requestItemReassignmentcxx . . $ ServiceRoot#requestItemReassignment(a5628b38272995c3).(it, new_parent); |
| 467 | } |
| 468 | } |
| 469 | |
| 470 | void ServiceRootcxx . . $ ServiceRoot#::requestItemRemovalcxx . . $ ServiceRoot#requestItemRemoval(cb16baca005cfe86).(RootItemcxx . . $ RootItem#* item) { |
| 471 | emitcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:51:10`! itemRemovalRequestedcxx . . $ ServiceRoot#itemRemovalRequested(cb16baca005cfe86).(item); |
| 472 | } |
| 473 | |
| 474 | void ServiceRootcxx . . $ ServiceRoot#::addNewFeedcxx . . $ ServiceRoot#addNewFeed(d47fda0a57dac307).(RootItemcxx . . $ RootItem#* selected_item, const QStringcxx . . $ QString#& url) { |
| 475 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(selected_item) |
| 476 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(url) |
| 477 | } |
| 478 | |
| 479 | void ServiceRootcxx . . $ ServiceRoot#::addNewCategorycxx . . $ ServiceRoot#addNewCategory(cb16baca005cfe86).(RootItemcxx . . $ RootItem#* selected_item) { |
| 480 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(selected_item) |
| 481 | } |
| 482 | |
| 483 | QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QVariantMapcxx . . $ QVariantMap#> ServiceRootcxx . . $ ServiceRoot#::storeCustomFeedsDatacxx . . $ ServiceRoot#storeCustomFeedsData(2025e8538fcb7adc).() { |
| 484 | QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QVariantMapcxx . . $ QVariantMap#> custom_datacxx . . $ QMap#QMap(49f6e7a06ebc5aa8).; |
| 485 | auto str = getSubTreeFeedscxx . . $ RootItem#getSubTreeFeeds(7d493c88c85a9a14).(); |
| 486 | |
| 487 | for (const Feedcxx . . $ Feed#* feed : stdcxx . . $ std/::as_constcxx . . $ std/as_const(1dc117cbefefc300).(str)) { |
| 488 | QVariantMapcxx . . $ QVariantMap# feed_custom_datacxx . . $ QMap#QMap(49f6e7a06ebc5aa8).; |
| 489 | |
| 490 | // TODO: This could potentially call Feed::customDatabaseData() and append it |
| 491 | // to this map and also subsequently restore, but the method is at this point |
| 492 | // not really used by any syncable plugin. |
| 493 | feed_custom_data.insertcxx . . $ QMap#insert(929a1ed410fe8423).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("auto_update_interval"), feedcxx . . $ QVariant#QVariant(f349c77f591a7878).->autoUpdateIntervalcxx . . $ Feed#autoUpdateInterval(455f465bc33b4cdf).()); |
| 494 | feed_custom_data.insertcxx . . $ QMap#insert(929a1ed410fe8423).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("auto_update_type"), intcxx . . $ QVariant#QVariant(f349c77f591a7878).(feed->autoUpdateTypecxx . . $ Feed#autoUpdateType(32c2e86181102346).())); |
| 495 | feed_custom_data.insertcxx . . $ QMap#insert(929a1ed410fe8423).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("msg_filters"), QVariantcxx . . $ QVariant#::fromValuecxx . . $ QVariant#fromValue(a298f533828df527).(feed->messageFilterscxx . . $ Feed#messageFilters(98143e7d5e66961a).())); |
| 496 | feed_custom_data.insertcxx . . $ QMap#insert(929a1ed410fe8423).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("is_off"), feedcxx . . $ QVariant#QVariant(9f0ba574c1c44ffc).->isSwitchedOffcxx . . $ Feed#isSwitchedOff(50ce9a9e25b4a850).()); |
| 497 | feed_custom_data.insertcxx . . $ QMap#insert(929a1ed410fe8423).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("is_quiet"), feedcxx . . $ QVariant#QVariant(9f0ba574c1c44ffc).->isQuietcxx . . $ Feed#isQuiet(50ce9a9e25b4a850).()); |
| 498 | feed_custom_data.insertcxx . . $ QMap#insert(929a1ed410fe8423).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("open_articles_directly"), feedcxx . . $ QVariant#QVariant(9f0ba574c1c44ffc).->openArticlesDirectlycxx . . $ Feed#openArticlesDirectly(50ce9a9e25b4a850).()); |
| 499 | feed_custom_data.insertcxx . . $ QMap#insert(929a1ed410fe8423).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("is_rtl"), QVariantcxx . . $ QVariant#::fromValuecxx . . $ QVariant#fromValue(a298f533828df527).(feed->rtlBehaviorcxx . . $ Feed#rtlBehavior(1d55ef3bd2b2e67d).())); |
| 500 | |
| 501 | feed_custom_data.insertcxx . . $ QMap#insert(929a1ed410fe8423).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("article_limit_ignore"), QVariantcxx . . $ QVariant#::fromValuecxx . . $ QVariant#fromValue(8eccd985207c29dd).(feed->articleIgnoreLimitcxx . . $ Feed#articleIgnoreLimit(593905a40018e52b).())); |
| 502 | |
| 503 | /* |
| 504 | feed_custom_data.insert(QSL("datetime_to_avoid"), |
| 505 | (feed->datetimeToAvoid().isValid() && feed->datetimeToAvoid().toMSecsSinceEpoch() > 0) |
| 506 | ? feed->datetimeToAvoid().toMSecsSinceEpoch() |
| 507 | : feed->hoursToAvoid()); |
| 508 | */ |
| 509 | |
| 510 | // NOTE: This is here specifically to be able to restore custom sort order. |
| 511 | // Otherwise the information is lost when list of feeds/folders is refreshed from remote |
| 512 | // service. |
| 513 | feed_custom_data.insertcxx . . $ QMap#insert(929a1ed410fe8423).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("sort_order"), feedcxx . . $ QVariant#QVariant(f349c77f591a7878).->sortOrdercxx . . $ RootItem#sortOrder(455f465bc33b4cdf).()); |
| 514 | |
| 515 | custom_data.insertcxx . . $ QMap#insert(929a1ed410fe8423).(feed->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).(), feed_custom_data); |
| 516 | } |
| 517 | |
| 518 | return custom_data; |
| 519 | } |
| 520 | |
| 521 | QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QVariantMapcxx . . $ QVariantMap#> ServiceRootcxx . . $ ServiceRoot#::storeCustomCategoriesDatacxx . . $ ServiceRoot#storeCustomCategoriesData(2025e8538fcb7adc).() { |
| 522 | QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QVariantMapcxx . . $ QVariantMap#> custom_datacxx . . $ QMap#QMap(49f6e7a06ebc5aa8).; |
| 523 | auto str = getSubTreeCategoriescxx . . $ RootItem#getSubTreeCategories(d8651057aa4a83be).(); |
| 524 | |
| 525 | for (const Categorycxx . . $ Category#* cat : stdcxx . . $ std/::as_constcxx . . $ std/as_const(1dc117cbefefc300).(str)) { |
| 526 | QVariantMapcxx . . $ QVariantMap# cat_custom_datacxx . . $ QMap#QMap(49f6e7a06ebc5aa8).; |
| 527 | |
| 528 | // NOTE: This is here specifically to be able to restore custom sort order. |
| 529 | // Otherwise the information is lost when list of feeds/folders is refreshed from remote |
| 530 | // service. |
| 531 | cat_custom_data.insertcxx . . $ QMap#insert(929a1ed410fe8423).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("sort_order"), catcxx . . $ QVariant#QVariant(f349c77f591a7878).->sortOrdercxx . . $ RootItem#sortOrder(455f465bc33b4cdf).()); |
| 532 | |
| 533 | custom_data.insertcxx . . $ QMap#insert(929a1ed410fe8423).(cat->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).(), cat_custom_data); |
| 534 | } |
| 535 | |
| 536 | return custom_data; |
| 537 | } |
| 538 | |
| 539 | void ServiceRootcxx . . $ ServiceRoot#::restoreCustomFeedsDatacxx . . $ ServiceRoot#restoreCustomFeedsData(b8fd159aeef5888e).(const QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QVariantMapcxx . . $ QVariantMap#>& data, const QHashcxx . . $ QHash#<QStringcxx . . $ QString#, Feedcxx . . $ Feed#*>& feeds) { |
| 540 | QMapIteratorcxx . . $ QMapIterator#<QStringcxx . . $ QString#, QVariantMapcxx . . $ QVariantMap#> icxx . . $ QMapIterator#QMapIterator(1d85e448f11cafa).(data); |
| 541 | |
| 542 | while (i.hasNextcxx . . $ QMapIterator#hasNext(50ce9a9e25b4a850).()) { |
| 543 | i.nextcxx . . $ QMapIterator#next(5c754f5fbc3bb3d6).(); |
| 544 | const QStringcxx . . $ QString# custom_id = icxx . . $ QString#QString(132dd6869045752b)..keycxx . . $ QMapIterator#key(ea465e50d690edfe).(); |
| 545 | |
| 546 | if (feeds.containscxx . . $ QHash#contains(5247d2cea5ab73ba).(custom_id)) { |
| 547 | Feedcxx . . $ Feed#* feed = feeds.valuecxx . . $ QHash#value(5f65a9ee2c9899ff).(custom_id); |
| 548 | QVariantMapcxx . . $ QVariantMap# feed_custom_data = i.valuecxx . . $ QMapIterator#value(bdbd05d619d62250).(); |
| 549 | |
| 550 | feed->setAutoUpdateIntervalcxx . . $ Feed#setAutoUpdateInterval(d4f767463ce0a6b3).(feed_custom_data.valuecxx . . $ QMap#value(6f0b2e7f225a8193).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("auto_update_interval")).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).()); |
| 551 | feed |
| 552 | ->setAutoUpdateTypecxx . . $ Feed#setAutoUpdateType(7ae5fab062cd3b96).(static_cast<Feedcxx . . $ Feed#::AutoUpdateTypecxx . . $ Feed#AutoUpdateType#>(feed_custom_data.valuecxx . . $ QMap#value(6f0b2e7f225a8193).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("auto_update_type")).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).())); |
| 553 | feed->setMessageFilterscxx . . $ Feed#setMessageFilters(4ec3624c54094509).(feed_custom_data.valuecxx . . $ QMap#value(6f0b2e7f225a8193).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("msg_filters")).valuecxx . . $ QVariant#value(1e6269539e51e84a).<QListcxx . . $ QList#<QPointercxx . . $ QPointer#<MessageFiltercxx . . $ MessageFilter#>>>()); |
| 554 | |
| 555 | feed->setIsSwitchedOffcxx . . $ Feed#setIsSwitchedOff(b45ddcbc8423892c).(feed_custom_data.valuecxx . . $ QMap#value(6f0b2e7f225a8193).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("is_off")).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 556 | feed->setIsQuietcxx . . $ Feed#setIsQuiet(b45ddcbc8423892c).(feed_custom_data.valuecxx . . $ QMap#value(6f0b2e7f225a8193).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("is_quiet")).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 557 | feed->setOpenArticlesDirectlycxx . . $ Feed#setOpenArticlesDirectly(b45ddcbc8423892c).(feed_custom_data.valuecxx . . $ QMap#value(6f0b2e7f225a8193).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("open_articles_directly")).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 558 | feed->setRtlBehaviorcxx . . $ Feed#setRtlBehavior(b6daccf987b91b23).(feed_custom_data.valuecxx . . $ QMap#value(6f0b2e7f225a8193).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("is_rtl")).valuecxx . . $ QVariant#value(1e6269539e51e84a).<RtlBehaviorcxx . . $ RtlBehavior#>()); |
| 559 | |
| 560 | feed |
| 561 | ->setArticleIgnoreLimitcxx . . $ Feed#setArticleIgnoreLimit(7e15ed05aac05e0d).(feed_custom_data.valuecxx . . $ QMap#value(6f0b2e7f225a8193).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("article_limit_ignore")).valuecxx . . $ QVariant#value(1e6269539e51e84a).<Feedcxx . . $ Feed#::ArticleIgnoreLimitcxx . . $ Feed#ArticleIgnoreLimit#>()); |
| 562 | |
| 563 | /* |
| 564 | feed->setAddAnyDatetimeArticles(feed_custom_data.value(QSL("add_any_datetime_articles")).toBool()); |
| 565 | |
| 566 | qint64 time_to_avoid = feed_custom_data.value(QSL("datetime_to_avoid")).value<qint64>(); |
| 567 | |
| 568 | if (time_to_avoid > 10000) { |
| 569 | feed->setDatetimeToAvoid(TextFactory::parseDateTime(time_to_avoid)); |
| 570 | } |
| 571 | else { |
| 572 | feed->setHoursToAvoid(time_to_avoid); |
| 573 | } |
| 574 | */ |
| 575 | } |
| 576 | } |
| 577 | } |
| 578 | |
| 579 | void ServiceRootcxx . . $ ServiceRoot#::restoreCustomCategoriesDatacxx . . $ ServiceRoot#restoreCustomCategoriesData(299f146570733800).(const QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QVariantMapcxx . . $ QVariantMap#>& data, |
| 580 | const QHashcxx . . $ QHash#<QStringcxx . . $ QString#, Categorycxx . . $ Category#*>& cats) { |
| 581 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(data) |
| 582 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(cats) |
| 583 | } |
| 584 | |
| 585 | bool ServiceRootcxx . . $ ServiceRoot#::nodeShowProbescxx . . $ ServiceRoot#nodeShowProbes(50ce9a9e25b4a850).() const { |
| 586 | return m_nodeShowProbescxx . . $ ServiceRoot#m_nodeShowProbes.; |
| 587 | } |
| 588 | |
| 589 | void ServiceRootcxx . . $ ServiceRoot#::setNodeShowProbescxx . . $ ServiceRoot#setNodeShowProbes(b45ddcbc8423892c).(bool enabled) { |
| 590 | m_nodeShowProbescxx . . $ ServiceRoot#m_nodeShowProbes. = enabled; |
| 591 | } |
| 592 | |
| 593 | bool ServiceRootcxx . . $ ServiceRoot#::nodeShowLabelscxx . . $ ServiceRoot#nodeShowLabels(50ce9a9e25b4a850).() const { |
| 594 | return m_nodeShowLabelscxx . . $ ServiceRoot#m_nodeShowLabels.; |
| 595 | } |
| 596 | |
| 597 | void ServiceRootcxx . . $ ServiceRoot#::setNodeShowLabelscxx . . $ ServiceRoot#setNodeShowLabels(b45ddcbc8423892c).(bool enabled) { |
| 598 | m_nodeShowLabelscxx . . $ ServiceRoot#m_nodeShowLabels. = enabled; |
| 599 | } |
| 600 | |
| 601 | bool ServiceRootcxx . . $ ServiceRoot#::nodeShowImportantcxx . . $ ServiceRoot#nodeShowImportant(50ce9a9e25b4a850).() const { |
| 602 | return m_nodeShowImportantcxx . . $ ServiceRoot#m_nodeShowImportant.; |
| 603 | } |
| 604 | |
| 605 | void ServiceRootcxx . . $ ServiceRoot#::setNodeShowImportantcxx . . $ ServiceRoot#setNodeShowImportant(b45ddcbc8423892c).(bool enabled) { |
| 606 | m_nodeShowImportantcxx . . $ ServiceRoot#m_nodeShowImportant. = enabled; |
| 607 | } |
| 608 | |
| 609 | bool ServiceRootcxx . . $ ServiceRoot#::nodeShowUnreadcxx . . $ ServiceRoot#nodeShowUnread(50ce9a9e25b4a850).() const { |
| 610 | return m_nodeShowUnreadcxx . . $ ServiceRoot#m_nodeShowUnread.; |
| 611 | } |
| 612 | |
| 613 | void ServiceRootcxx . . $ ServiceRoot#::setNodeShowUnreadcxx . . $ ServiceRoot#setNodeShowUnread(b45ddcbc8423892c).(bool enabled) { |
| 614 | m_nodeShowUnreadcxx . . $ ServiceRoot#m_nodeShowUnread. = enabled; |
| 615 | } |
| 616 | |
| 617 | QNetworkProxycxx . . $ QNetworkProxy# ServiceRootcxx . . $ ServiceRoot#::networkProxycxx . . $ ServiceRoot#networkProxy(e4d242e7a984a99c).() const { |
| 618 | return m_networkProxycxx . . $ QNetworkProxy#QNetworkProxy(efbe238af4b4e748).; |
| 619 | } |
| 620 | |
| 621 | void ServiceRootcxx . . $ ServiceRoot#::setNetworkProxycxx . . $ ServiceRoot#setNetworkProxy(efbe238af4b4e748).(const QNetworkProxycxx . . $ QNetworkProxy#& network_proxy) { |
| 622 | m_networkProxycxx . . $ ServiceRoot#m_networkProxy. =cxx . . $ QNetworkProxy#`operator=`(7c839ee517ad4d58). network_proxy; |
| 623 | |
| 624 | emitcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:51:10`! proxyChangedcxx . . $ ServiceRoot#proxyChanged(7e3e15a7df562b1f).(network_proxycxx . . $ QNetworkProxy#QNetworkProxy(efbe238af4b4e748).); |
| 625 | } |
| 626 | |
| 627 | ImportantNodecxx . . $ ImportantNode#* ServiceRootcxx . . $ ServiceRoot#::importantNodecxx . . $ ServiceRoot#importantNode(8695cdbf17186ab2).() const { |
| 628 | return m_importantNodecxx . . $ ServiceRoot#m_importantNode.; |
| 629 | } |
| 630 | |
| 631 | LabelsNodecxx . . $ LabelsNode#* ServiceRootcxx . . $ ServiceRoot#::labelsNodecxx . . $ ServiceRoot#labelsNode(b773463470738eab).() const { |
| 632 | return m_labelsNodecxx . . $ ServiceRoot#m_labelsNode.; |
| 633 | } |
| 634 | |
| 635 | SearchsNodecxx . . $ SearchsNode#* ServiceRootcxx . . $ ServiceRoot#::probesNodecxx . . $ ServiceRoot#probesNode(5f3fc5f885871ebd).() const { |
| 636 | return m_probesNodecxx . . $ ServiceRoot#m_probesNode.; |
| 637 | } |
| 638 | |
| 639 | UnreadNodecxx . . $ UnreadNode#* ServiceRootcxx . . $ ServiceRoot#::unreadNodecxx . . $ ServiceRoot#unreadNode(c16715fb3bd21592).() const { |
| 640 | return m_unreadNodecxx . . $ ServiceRoot#m_unreadNode.; |
| 641 | } |
| 642 | |
| 643 | FormAccountDetailscxx . . $ FormAccountDetails#* ServiceRootcxx . . $ ServiceRoot#::accountSetupDialogcxx . . $ ServiceRoot#accountSetupDialog(8a0a5aebdd2d6191).() const { |
| 644 | return nullptr; |
| 645 | } |
| 646 | |
| 647 | void ServiceRootcxx . . $ ServiceRoot#::onDatabaseCleanupcxx . . $ ServiceRoot#onDatabaseCleanup(49f6e7a06ebc5aa8).() {} |
| 648 | |
| 649 | void ServiceRootcxx . . $ ServiceRoot#::syncIncxx . . $ ServiceRoot#syncIn(49f6e7a06ebc5aa8).() { |
| 650 | QIconcxx . . $ QIcon# original_icon = iconcxx . . $ RootItem#icon(952ef71f8967d9eb).(); |
| 651 | |
| 652 | setIconcxx . . $ RootItem#setIcon(71dcdac178620ed6).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->iconscxx . . $ Application#icons(d976db2a0d825b70).()->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("view-refresh"))); |
| 653 | itemChangedcxx . . $ ServiceRoot#itemChanged(47657a4e8825adca).({cxx . . $ QList#QList(b6da5b9a9f304025).this}); |
| 654 | |
| 655 | try { |
| 656 | qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_COREcxx . . $ `src/librssguard/definitions/definitions.h:178:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Starting sync-in process."; |
| 657 | |
| 658 | RootItemcxx . . $ RootItem#* new_tree = obtainNewTreeForSyncIncxx . . $ ServiceRoot#obtainNewTreeForSyncIn(e4f4b13bf6686a09).(); |
| 659 | |
| 660 | qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_COREcxx . . $ `src/librssguard/definitions/definitions.h:178:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "New feed tree for sync-in obtained."; |
| 661 | |
| 662 | auto feed_custom_data = storeCustomFeedsDatacxx . . $ ServiceRoot#storeCustomFeedsData(2025e8538fcb7adc).(); |
| 663 | auto categories_custom_data = storeCustomCategoriesDatacxx . . $ ServiceRoot#storeCustomCategoriesData(2025e8538fcb7adc).(); |
| 664 | |
| 665 | // Remove from feeds model, then from SQL but leave messages intact. |
| 666 | bool uses_remote_labels = Globalscxx . . $ Globals#::hasFlagcxx . . $ Globals#hasFlag(e81494ae8084f6ba).(supportedLabelOperationscxx . . $ ServiceRoot#supportedLabelOperations(a2eb219fd1bf9aba).(), LabelOperationcxx . . $ ServiceRoot#LabelOperation#::Synchronisedcxx . . $ ServiceRoot#LabelOperation#Synchronised.); |
| 667 | |
| 668 | // Remove stuff. |
| 669 | cleanAllItemsFromModelcxx . . $ ServiceRoot#cleanAllItemsFromModel(b45ddcbc8423892c).(uses_remote_labels); |
| 670 | removeOldAccountFromDatabasecxx . . $ ServiceRoot#removeOldAccountFromDatabase(b0b38cda41d4ede4).(false, uses_remote_labels); |
| 671 | |
| 672 | // Re-sort items to accomodate current sort order. |
| 673 | resortAccountTreecxx . . $ ServiceRoot#resortAccountTree(5d55c4cf96070d74).(new_tree, categories_custom_data, feed_custom_data); |
| 674 | |
| 675 | // Restore some local settings to feeds etc. |
| 676 | restoreCustomCategoriesDatacxx . . $ ServiceRoot#restoreCustomCategoriesData(299f146570733800).(categories_custom_data, new_tree->getHashedSubTreeCategoriescxx . . $ RootItem#getHashedSubTreeCategories(1f6c633b056f06b8).()); |
| 677 | restoreCustomFeedsDatacxx . . $ ServiceRoot#restoreCustomFeedsData(b8fd159aeef5888e).(feed_custom_data, new_tree->getHashedSubTreeFeedscxx . . $ RootItem#getHashedSubTreeFeeds(ed69023a4766ed52).()); |
| 678 | |
| 679 | // Model is clean, now store new tree into DB and |
| 680 | // set primary IDs of the items. |
| 681 | DatabaseQueriescxx . . $ DatabaseQueries#::storeAccountTreecxx . . $ DatabaseQueries#storeAccountTree(c017e062e91577af).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()), |
| 682 | new_tree, |
| 683 | accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).()); |
| 684 | |
| 685 | // We have new feed, some feeds were maybe removed, |
| 686 | // so remove left over messages and filter assignments. |
| 687 | removeLeftOverMessagescxx . . $ ServiceRoot#removeLeftOverMessages(49f6e7a06ebc5aa8).(); |
| 688 | removeLeftOverMessageFilterAssignmentscxx . . $ ServiceRoot#removeLeftOverMessageFilterAssignments(49f6e7a06ebc5aa8).(); |
| 689 | |
| 690 | auto chi = new_tree->childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).(); |
| 691 | |
| 692 | for (RootItemcxx . . $ RootItem#* top_level_item : stdcxx . . $ std/::as_constcxx . . $ std/as_const(1dc117cbefefc300).(chi)) { |
| 693 | if (top_level_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() != Kindcxx . . $ RootItem#Kind#::Labelscxx . . $ RootItem#Kind#Labels.) { |
| 694 | top_level_item->setParentcxx . . $ RootItem#setParent(cb16baca005cfe86).(nullptr); |
| 695 | requestItemReassignmentcxx . . $ ServiceRoot#requestItemReassignment(a5628b38272995c3).(top_level_item, this); |
| 696 | } |
| 697 | else { |
| 698 | // It seems that some labels got synced-in. |
| 699 | if (labelsNodecxx . . $ ServiceRoot#labelsNode(b773463470738eab).() != nullptr) { |
| 700 | auto lbl_chi = top_level_item->childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).(); |
| 701 | |
| 702 | for (RootItemcxx . . $ RootItem#* new_lbl : stdcxx . . $ std/::as_constcxx . . $ std/as_const(1dc117cbefefc300).(lbl_chi)) { |
| 703 | new_lbl->setParentcxx . . $ RootItem#setParent(cb16baca005cfe86).(nullptr); |
| 704 | requestItemReassignmentcxx . . $ ServiceRoot#requestItemReassignment(a5628b38272995c3).(new_lbl, labelsNodecxx . . $ ServiceRoot#labelsNode(b773463470738eab).()); |
| 705 | } |
| 706 | } |
| 707 | } |
| 708 | } |
| 709 | |
| 710 | new_tree->clearChildrencxx . . $ RootItem#clearChildren(49f6e7a06ebc5aa8).(); |
| 711 | new_tree->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 712 | |
| 713 | updateCountscxx . . $ ServiceRoot#updateCounts(b45ddcbc8423892c).(true); |
| 714 | requestReloadMessageListcxx . . $ ServiceRoot#requestReloadMessageList(b45ddcbc8423892c).(true); |
| 715 | } |
| 716 | catch (const ApplicationExceptioncxx . . $ ApplicationException#& ex) { |
| 717 | qCriticalNNcxx . . $ `src/librssguard/definitions/definitions.h:421:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_COREcxx . . $ `src/librssguard/definitions/definitions.h:178:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "New feed tree for sync-in NOT obtained:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(ex.message()); |
| 718 | |
| 719 | qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::GeneralEventcxx . . $ Notification#Event#GeneralEvent., |
| 720 | GuiMessagecxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).(trcxx . . $ ServiceRoot#tr(75d9f1c324b4579d).("Error when fetching list of feeds"), |
| 721 | trcxx . . $ ServiceRoot#tr(75d9f1c324b4579d).("Feeds & categories for account '%1' were not fetched, error: %2") |
| 722 | .argcxx . . $ QString#arg(89b093bd48b6d6c0).(titlecxx . . $ RootItem#title(6ef7b6c27b00b43d).(), ex.messagecxx . . $ ApplicationException#message(6ef7b6c27b00b43d).()), |
| 723 | QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Criticalcxx . . $ QSystemTrayIcon#Critical.), |
| 724 | GuiMessageDestinationcxx . . $ GuiMessageDestination#GuiMessageDestination(9e113dd3a0d25c95).(true, true)); |
| 725 | } |
| 726 | |
| 727 | setIconcxx . . $ RootItem#setIcon(71dcdac178620ed6).(original_icon); |
| 728 | itemChangedcxx . . $ ServiceRoot#itemChanged(47657a4e8825adca).(getSubTreecxx . . $ RootItem#getSubTree(38d8ae5645f2bbf1).<RootItemcxx . . $ RootItem#>()); |
| 729 | requestItemExpandcxx . . $ ServiceRoot#requestItemExpand(8e785c59da43649).(getSubTreecxx . . $ RootItem#getSubTree(38d8ae5645f2bbf1).<RootItemcxx . . $ RootItem#>(), true); |
| 730 | } |
| 731 | |
| 732 | void ServiceRootcxx . . $ ServiceRoot#::performInitialAssemblycxx . . $ ServiceRoot#performInitialAssembly(59f74b440c36dc6f).(const Assignmentcxx . . $ Assignment#& categories, |
| 733 | const Assignmentcxx . . $ Assignment#& feeds, |
| 734 | const QListcxx . . $ QList#<Labelcxx . . $ Label#*>& labels, |
| 735 | const QListcxx . . $ QList#<Searchcxx . . $ Search#*>& probes) { |
| 736 | assembleCategoriescxx . . $ ServiceRoot#assembleCategories(ea83f50dc52cd5f2).(categories); |
| 737 | assembleFeedscxx . . $ ServiceRoot#assembleFeeds(ea83f50dc52cd5f2).(feeds); |
| 738 | labelsNodecxx . . $ ServiceRoot#labelsNode(b773463470738eab).()->loadLabelscxx . . $ LabelsNode#loadLabels(d049bd89a20e2c3b).(labels); |
| 739 | probesNodecxx . . $ ServiceRoot#probesNode(5f3fc5f885871ebd).()->loadProbescxx . . $ SearchsNode#loadProbes(18b030a483675ebf).(probes); |
| 740 | |
| 741 | updateCountscxx . . $ ServiceRoot#updateCounts(b45ddcbc8423892c).(true); |
| 742 | } |
| 743 | |
| 744 | RootItemcxx . . $ RootItem#* ServiceRootcxx . . $ ServiceRoot#::obtainNewTreeForSyncIncxx . . $ ServiceRoot#obtainNewTreeForSyncIn(e4f4b13bf6686a09).() const { |
| 745 | return nullptr; |
| 746 | } |
| 747 | |
| 748 | QStringListcxx . . $ QStringList# ServiceRootcxx . . $ ServiceRoot#::customIDSOfMessagesForItemcxx . . $ ServiceRoot#customIDSOfMessagesForItem(2acd0df652f9aeb7).(RootItemcxx . . $ RootItem#* item, ReadStatuscxx . . $ RootItem#ReadStatus# target_read) { |
| 749 | if (item->getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).() != this) { |
| 750 | // Not item from this account. |
| 751 | return {cxx . . $ QList#QList(ced63f7c635d850d).}; |
| 752 | } |
| 753 | else { |
| 754 | QStringListcxx . . $ QStringList# listcxx . . $ QList#QList(ced63f7c635d850d).; |
| 755 | |
| 756 | switch (item->kindcxx . . $ RootItem#kind(faa800885e6a64b).()) { |
| 757 | case RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Labelscxx . . $ RootItem#Kind#Labels.: |
| 758 | case RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Probescxx . . $ RootItem#Kind#Probes.: |
| 759 | case RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Categorycxx . . $ RootItem#Kind#Category.: { |
| 760 | auto chi = item->childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).(); |
| 761 | |
| 762 | for (RootItemcxx . . $ RootItem#* child : stdcxx . . $ std/::as_constcxx . . $ std/as_const(1dc117cbefefc300).(chi)) { |
| 763 | list.appendcxx . . $ QList#append(b1a5d2b9a710f6d1).(customIDSOfMessagesForItemcxx . . $ ServiceRoot#customIDSOfMessagesForItem(2acd0df652f9aeb7).(child, target_read)); |
| 764 | } |
| 765 | |
| 766 | return list; |
| 767 | } |
| 768 | |
| 769 | case RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Labelcxx . . $ RootItem#Kind#Label.: { |
| 770 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 771 | |
| 772 | list =cxx . . $ QList#`operator=`(da1cd3e1ddeb0856). DatabaseQueriescxx . . $ DatabaseQueries#::customIdsOfMessagesFromLabelcxx . . $ DatabaseQueries#customIdsOfMessagesFromLabel(923aa9f1971615aa).(database, item->toLabelcxx . . $ RootItem#toLabel(3494628e4df37b42).(), target_read); |
| 773 | break; |
| 774 | } |
| 775 | |
| 776 | case RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Probecxx . . $ RootItem#Kind#Probe.: { |
| 777 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 778 | |
| 779 | list =cxx . . $ QList#`operator=`(da1cd3e1ddeb0856). DatabaseQueriescxx . . $ DatabaseQueries#::customIdsOfMessagesFromProbecxx . . $ DatabaseQueries#customIdsOfMessagesFromProbe(ac4134f412504b9f).(database, item->toProbecxx . . $ RootItem#toProbe(4adbbd05c673efe7).(), target_read); |
| 780 | break; |
| 781 | } |
| 782 | |
| 783 | case RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::ServiceRootcxx . . $ RootItem#Kind#ServiceRoot.: { |
| 784 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 785 | |
| 786 | list =cxx . . $ QList#`operator=`(da1cd3e1ddeb0856). DatabaseQueriescxx . . $ DatabaseQueries#::customIdsOfMessagesFromAccountcxx . . $ DatabaseQueries#customIdsOfMessagesFromAccount(48f448c6c6a368e0).(database, target_read, accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).()); |
| 787 | break; |
| 788 | } |
| 789 | |
| 790 | case RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Bincxx . . $ RootItem#Kind#Bin.: { |
| 791 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 792 | |
| 793 | list =cxx . . $ QList#`operator=`(da1cd3e1ddeb0856). DatabaseQueriescxx . . $ DatabaseQueries#::customIdsOfMessagesFromBincxx . . $ DatabaseQueries#customIdsOfMessagesFromBin(48f448c6c6a368e0).(database, target_read, accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).()); |
| 794 | break; |
| 795 | } |
| 796 | |
| 797 | case RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Feedcxx . . $ RootItem#Kind#Feed.: { |
| 798 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 799 | |
| 800 | list =cxx . . $ QList#`operator=`(da1cd3e1ddeb0856). DatabaseQueriescxx . . $ DatabaseQueries#::customIdsOfMessagesFromFeedcxx . . $ DatabaseQueries#customIdsOfMessagesFromFeed(2f4e7e6149f5934f).(database, item->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).(), target_read, accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).()); |
| 801 | break; |
| 802 | } |
| 803 | |
| 804 | case RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Importantcxx . . $ RootItem#Kind#Important.: { |
| 805 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 806 | |
| 807 | list =cxx . . $ QList#`operator=`(da1cd3e1ddeb0856). DatabaseQueriescxx . . $ DatabaseQueries#::customIdsOfImportantMessagescxx . . $ DatabaseQueries#customIdsOfImportantMessages(48f448c6c6a368e0).(database, target_read, accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).()); |
| 808 | break; |
| 809 | } |
| 810 | |
| 811 | case RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Unreadcxx . . $ RootItem#Kind#Unread.: { |
| 812 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 813 | |
| 814 | list =cxx . . $ QList#`operator=`(da1cd3e1ddeb0856). DatabaseQueriescxx . . $ DatabaseQueries#::customIdsOfUnreadMessagescxx . . $ DatabaseQueries#customIdsOfUnreadMessages(f3e086b87dba7817).(database, accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).()); |
| 815 | break; |
| 816 | } |
| 817 | |
| 818 | default: |
| 819 | break; |
| 820 | } |
| 821 | |
| 822 | qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_COREcxx . . $ `src/librssguard/definitions/definitions.h:178:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Custom IDs of messages for some operation are:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(list); |
| 823 | return list; |
| 824 | } |
| 825 | } |
| 826 | |
| 827 | bool ServiceRootcxx . . $ ServiceRoot#::markFeedsReadUnreadcxx . . $ ServiceRoot#markFeedsReadUnread(cd8129ce0f5261b5).(const QListcxx . . $ QList#<Feedcxx . . $ Feed#*>& items, RootItemcxx . . $ RootItem#::ReadStatuscxx . . $ RootItem#ReadStatus# read) { |
| 828 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->connectioncxx . . $ DatabaseDriver#connection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 829 | |
| 830 | if (DatabaseQueriescxx . . $ DatabaseQueries#::markFeedsReadUnreadcxx . . $ DatabaseQueries#markFeedsReadUnread(1d4cb37e97857cd1).(database, textualFeedIdscxx . . $ ServiceRoot#textualFeedIds(4bcc9f9352a83403).(items), accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).(), read)) { |
| 831 | getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).()->updateCountscxx . . $ ServiceRoot#updateCounts(b45ddcbc8423892c).(false); |
| 832 | getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).()->itemChangedcxx . . $ ServiceRoot#itemChanged(47657a4e8825adca).(getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).()->getSubTreecxx . . $ RootItem#getSubTree(38d8ae5645f2bbf1).<RootItemcxx . . $ RootItem#>()); |
| 833 | getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).()->requestReloadMessageListcxx . . $ ServiceRoot#requestReloadMessageList(b45ddcbc8423892c).(read == RootItemcxx . . $ RootItem#::ReadStatuscxx . . $ RootItem#ReadStatus#::Readcxx . . $ RootItem#ReadStatus#Read.); |
| 834 | return true; |
| 835 | } |
| 836 | else { |
| 837 | return false; |
| 838 | } |
| 839 | } |
| 840 | |
| 841 | QStringListcxx . . $ QStringList# ServiceRootcxx . . $ ServiceRoot#::textualFeedUrlscxx . . $ ServiceRoot#textualFeedUrls(4bcc9f9352a83403).(const QListcxx . . $ QList#<Feedcxx . . $ Feed#*>& feeds) const { |
| 842 | QStringListcxx . . $ QStringList# stringy_urlscxx . . $ QList#QList(ced63f7c635d850d).; |
| 843 | |
| 844 | stringy_urls.reservecxx . . $ QList#reserve(35cb52607f6af42f).(feeds.sizecxx . . $ QList#size(6b0412d51016192f).()); |
| 845 | |
| 846 | for (const Feedcxx . . $ Feed#* feed : feeds) { |
| 847 | stringy_urls.appendcxx . . $ QList#append(1262c8661f7a27a7).(!feed->sourcecxx . . $ Feed#source(6ef7b6c27b00b43d).().isEmptycxx . . $ QString#isEmpty(3482b152b9333168).() ? feed->sourcecxx . . $ Feed#source(6ef7b6c27b00b43d).() : QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("no-url")); |
| 848 | } |
| 849 | |
| 850 | return stringy_urls; |
| 851 | } |
| 852 | |
| 853 | QStringListcxx . . $ QStringList# ServiceRootcxx . . $ ServiceRoot#::textualFeedIdscxx . . $ ServiceRoot#textualFeedIds(4bcc9f9352a83403).(const QListcxx . . $ QList#<Feedcxx . . $ Feed#*>& feeds) const { |
| 854 | QStringListcxx . . $ QStringList# stringy_idscxx . . $ QList#QList(ced63f7c635d850d).; |
| 855 | stringy_ids.reservecxx . . $ QList#reserve(35cb52607f6af42f).(feeds.sizecxx . . $ QList#size(6b0412d51016192f).()); |
| 856 | |
| 857 | for (const Feedcxx . . $ Feed#* feed : feeds) { |
| 858 | stringy_ids.appendcxx . . $ QList#append(1262c8661f7a27a7).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("'%1'").argcxx . . $ QString#arg(ad0bca07273edcc2).(feed->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).())); |
| 859 | } |
| 860 | |
| 861 | return stringy_ids; |
| 862 | } |
| 863 | |
| 864 | QStringListcxx . . $ QStringList# ServiceRootcxx . . $ ServiceRoot#::customIDsOfMessagescxx . . $ ServiceRoot#customIDsOfMessages(db96838b62fc070d).(const QListcxx . . $ QList#<ImportanceChangecxx . . $ ImportanceChange#>& changes) { |
| 865 | QSetcxx . . $ QSet#<QStringcxx . . $ QString#> listcxx . . $ QSet#QSet(ced63f7c635d850d).; |
| 866 | list.reservecxx . . $ QSet#reserve(35cb52607f6af42f).(changes.sizecxx . . $ QList#size(6b0412d51016192f).()); |
| 867 | |
| 868 | for (const auto& change : changes) { |
| 869 | list.insertcxx . . $ QSet#insert(b1720532d625d779).(change.firstcxx . . $ std/pair#first..m_customIdcxx . . $ Message#m_customId.); |
| 870 | } |
| 871 | |
| 872 | return list.valuescxx . . $ QSet#values(bf6c511543d55010).(); |
| 873 | } |
| 874 | |
| 875 | QStringListcxx . . $ QStringList# ServiceRootcxx . . $ ServiceRoot#::customIDsOfMessagescxx . . $ ServiceRoot#customIDsOfMessages(484dd2f321a6295e).(const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages) { |
| 876 | QSetcxx . . $ QSet#<QStringcxx . . $ QString#> listcxx . . $ QSet#QSet(ced63f7c635d850d).; |
| 877 | list.reservecxx . . $ QSet#reserve(35cb52607f6af42f).(messages.sizecxx . . $ QList#size(6b0412d51016192f).()); |
| 878 | |
| 879 | for (const Messagecxx . . $ Message#& message : messages) { |
| 880 | list.insertcxx . . $ QSet#insert(b1720532d625d779).(message.m_customIdcxx . . $ Message#m_customId.); |
| 881 | } |
| 882 | |
| 883 | return list.valuescxx . . $ QSet#values(bf6c511543d55010).(); |
| 884 | } |
| 885 | |
| 886 | int ServiceRootcxx . . $ ServiceRoot#::accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).() const { |
| 887 | return m_accountIdcxx . . $ ServiceRoot#m_accountId.; |
| 888 | } |
| 889 | |
| 890 | void ServiceRootcxx . . $ ServiceRoot#::setAccountIdcxx . . $ ServiceRoot#setAccountId(d4f767463ce0a6b3).(int account_id) { |
| 891 | m_accountIdcxx . . $ ServiceRoot#m_accountId. = account_id; |
| 892 | |
| 893 | auto* cache = dynamic_cast<CacheForServiceRootcxx . . $ CacheForServiceRoot#*>(this); |
| 894 | |
| 895 | if (cache != nullptr) { |
| 896 | cache->setUniqueIdcxx . . $ CacheForServiceRoot#setUniqueId(d4f767463ce0a6b3).(account_id); |
| 897 | } |
| 898 | } |
| 899 | |
| 900 | bool ServiceRootcxx . . $ ServiceRoot#::loadMessagesForItemcxx . . $ ServiceRoot#loadMessagesForItem(5c65929cf2c175f7).(RootItemcxx . . $ RootItem#* item, MessagesModelcxx . . $ MessagesModel#* model) { |
| 901 | if (item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Bincxx . . $ RootItem#Kind#Bin.) { |
| 902 | model->setFiltercxx . . $ MessagesModelSqlLayer#setFilter(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Messages.is_deleted = 1 AND Messages.is_pdeleted = 0 AND Messages.account_id = %1") |
| 903 | .argcxx . . $ QString#arg(ad0bca07273edcc2).(QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).()))); |
| 904 | } |
| 905 | else if (item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Importantcxx . . $ RootItem#Kind#Important.) { |
| 906 | model->setFiltercxx . . $ MessagesModelSqlLayer#setFilter(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Messages.is_important = 1 AND Messages.is_deleted = 0 AND Messages.is_pdeleted = 0 AND " |
| 907 | "Messages.account_id = %1") |
| 908 | .argcxx . . $ QString#arg(ad0bca07273edcc2).(QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).()))); |
| 909 | } |
| 910 | else if (item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Unreadcxx . . $ RootItem#Kind#Unread.) { |
| 911 | model->setFiltercxx . . $ MessagesModelSqlLayer#setFilter(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Messages.is_read = 0 AND Messages.is_deleted = 0 AND Messages.is_pdeleted = 0 AND " |
| 912 | "Messages.account_id = %1") |
| 913 | .argcxx . . $ QString#arg(ad0bca07273edcc2).(QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).()))); |
| 914 | } |
| 915 | else if (item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Probecxx . . $ RootItem#Kind#Probe.) { |
| 916 | item->updateCountscxx . . $ RootItem#updateCounts(b45ddcbc8423892c).(true); |
| 917 | itemChangedcxx . . $ ServiceRoot#itemChanged(47657a4e8825adca).({cxx . . $ QList#QList(b6da5b9a9f304025).item}); |
| 918 | |
| 919 | model->setFiltercxx . . $ MessagesModelSqlLayer#setFilter(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Messages.is_deleted = 0 AND Messages.is_pdeleted = 0 AND Messages.account_id = %1 AND " |
| 920 | "(Messages.title REGEXP '%2' OR Messages.contents REGEXP '%2')") |
| 921 | .argcxx . . $ QString#arg(89b093bd48b6d6c0).(QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).()), item->toProbecxx . . $ RootItem#toProbe(4adbbd05c673efe7).()->filtercxx . . $ Search#filter(6ef7b6c27b00b43d).())); |
| 922 | } |
| 923 | else if (item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Labelcxx . . $ RootItem#Kind#Label.) { |
| 924 | // Show messages with particular label. |
| 925 | model->setFiltercxx . . $ MessagesModelSqlLayer#setFilter(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Messages.is_deleted = 0 AND Messages.is_pdeleted = 0 AND " |
| 926 | "Messages.labels LIKE '%.%2.%' AND Messages.account_id = %1") |
| 927 | .argcxx . . $ QString#arg(89b093bd48b6d6c0).(QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).()), item->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).())); |
| 928 | } |
| 929 | else if (item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Labelscxx . . $ RootItem#Kind#Labels.) { |
| 930 | // Show messages with any label. |
| 931 | model->setFiltercxx . . $ MessagesModelSqlLayer#setFilter(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Messages.is_deleted = 0 AND Messages.is_pdeleted = 0 AND " |
| 932 | "LENGTH(Messages.labels) > 2 AND Messages.account_id = %1") |
| 933 | .argcxx . . $ QString#arg(ad0bca07273edcc2).(QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).()))); |
| 934 | } |
| 935 | else if (item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::ServiceRootcxx . . $ RootItem#Kind#ServiceRoot.) { |
| 936 | model->setFiltercxx . . $ MessagesModelSqlLayer#setFilter(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Messages.is_deleted = 0 AND Messages.is_pdeleted = 0 AND Messages.account_id = %1") |
| 937 | .argcxx . . $ QString#arg(ad0bca07273edcc2).(QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).()))); |
| 938 | |
| 939 | qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_COREcxx . . $ `src/librssguard/definitions/definitions.h:178:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Displaying messages from account:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(accountId()); |
| 940 | } |
| 941 | else if (item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Probescxx . . $ RootItem#Kind#Probes.) { |
| 942 | model->setFiltercxx . . $ MessagesModelSqlLayer#setFilter(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(DEFAULT_SQL_MESSAGES_FILTERcxx . . $ `src/librssguard/definitions/definitions.h:59:9`!)); |
| 943 | |
| 944 | qWarningNNcxx . . $ `src/librssguard/definitions/definitions.h:417:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_COREcxx . . $ `src/librssguard/definitions/definitions.h:178:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Showing of all regex queries combined is not supported."; |
| 945 | } |
| 946 | else { |
| 947 | QListcxx . . $ QList#<Feedcxx . . $ Feed#*> children = item->getSubTreeFeedscxx . . $ RootItem#getSubTreeFeeds(7d493c88c85a9a14).(); |
| 948 | QStringcxx . . $ QString# filter_clause = textualFeedIdscxx . . $ ServiceRoot#textualFeedIds(4bcc9f9352a83403).(children).joincxx . . $ QListSpecialMethods#join(5555d9024dcf93fb).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(", ")); |
| 949 | |
| 950 | if (filter_clause.isEmptycxx . . $ QString#isEmpty(3482b152b9333168).()) { |
| 951 | filter_clause =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("null"); |
| 952 | } |
| 953 | |
| 954 | model->setFiltercxx . . $ MessagesModelSqlLayer#setFilter(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Feeds.custom_id IN (%1) AND Messages.is_deleted = 0 AND Messages.is_pdeleted = 0 AND " |
| 955 | "Messages.account_id = %2") |
| 956 | .argcxx . . $ QString#arg(89b093bd48b6d6c0).(filter_clause, QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).()))); |
| 957 | |
| 958 | QStringcxx . . $ QString# urls = textualFeedUrlscxx . . $ ServiceRoot#textualFeedUrls(4bcc9f9352a83403).(children).joincxx . . $ QListSpecialMethods#join(5555d9024dcf93fb).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(", ")); |
| 959 | |
| 960 | qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_COREcxx . . $ `src/librssguard/definitions/definitions.h:178:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Displaying messages from feeds IDs:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACEcxx . . $ `src/librssguard/definitions/definitions.h:432:9`!(filter_clause) |
| 961 | <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "and URLs:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(urls); |
| 962 | } |
| 963 | |
| 964 | return true; |
| 965 | } |
| 966 | |
| 967 | bool ServiceRootcxx . . $ ServiceRoot#::onBeforeSetMessagesReadcxx . . $ ServiceRoot#onBeforeSetMessagesRead(560bab74201c5167).(RootItemcxx . . $ RootItem#* selected_item, |
| 968 | const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages, |
| 969 | RootItemcxx . . $ RootItem#::ReadStatuscxx . . $ RootItem#ReadStatus# read) { |
| 970 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(selected_item) |
| 971 | |
| 972 | auto cache = dynamic_cast<CacheForServiceRootcxx . . $ CacheForServiceRoot#*>(this); |
| 973 | |
| 974 | if (cache != nullptr) { |
| 975 | cache->addMessageStatesToCachecxx . . $ CacheForServiceRoot#addMessageStatesToCache(c21502b1d481d06b).(customIDsOfMessagescxx . . $ ServiceRoot#customIDsOfMessages(484dd2f321a6295e).(messages), read); |
| 976 | } |
| 977 | |
| 978 | return true; |
| 979 | } |
| 980 | |
| 981 | bool ServiceRootcxx . . $ ServiceRoot#::onAfterSetMessagesReadcxx . . $ ServiceRoot#onAfterSetMessagesRead(560bab74201c5167).(RootItemcxx . . $ RootItem#* selected_item, |
| 982 | const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages, |
| 983 | RootItemcxx . . $ RootItem#::ReadStatuscxx . . $ RootItem#ReadStatus# read) { |
| 984 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(messages) |
| 985 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(read) |
| 986 | |
| 987 | // We know that some messages were marked as read or unread, therefore we do not need to recount |
| 988 | // all items, but only some: |
| 989 | // - recycle bin (if recycle bin IS selected) |
| 990 | // - feeds of those messages (if recycle bin is NOT selected) |
| 991 | // - important articles (if some messages IS important AND recycle bin is NOT selected) |
| 992 | // - unread articles (if some messages IS unread AND recycle bin is NOT selected) |
| 993 | // - labels assigned to articles (if recycle bin is NOT selected) |
| 994 | // - probes (if recycle bin is NOT selected) |
| 995 | QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> to_updatecxx . . $ QList#QList(ced63f7c635d850d).; |
| 996 | |
| 997 | if (selected_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Bincxx . . $ RootItem#Kind#Bin.) { |
| 998 | selected_item->updateCountscxx . . $ RootItem#updateCounts(b45ddcbc8423892c).(false); |
| 999 | to_update <<cxx . . $ QList#`operator<<`(ddd37d5bfdbbfc74). selected_item; |
| 1000 | } |
| 1001 | else { |
| 1002 | auto linq = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(messages); |
| 1003 | |
| 1004 | // 1. Feeds of messages. |
| 1005 | auto feed_ids = linq |
| 1006 | .selectcxx . . $ boolinq/Linq#select(a3f5bd4cd382e0ee).([](const Messagecxx . . $ Message#& msg) { |
| 1007 | return msgcxx . . $ QString#QString(132dd6869045752b)..m_feedIdcxx . . $ Message#m_feedId.; |
| 1008 | }) |
| 1009 | .distinctcxx . . $ boolinq/Linq#distinct(58d30379f29c1b96).() |
| 1010 | .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).(); |
| 1011 | |
| 1012 | for (const QStringcxx . . $ QString#& feed_id : feed_ids) { |
| 1013 | auto* feed = getItemFromSubTreecxx . . $ RootItem#getItemFromSubTree(d39f768279e67ac5).([cxx . . $ std/function#function(bdc3712e480e4d04).feed_idcxx . . $ QString#QString(132dd6869045752b).](const RootItemcxx . . $ RootItem#* it) { |
| 1014 | return it->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Feedcxx . . $ RootItem#Kind#Feed. && it->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).() ==cxx . . $ `operator==`(5bc2975d2d751687). feed_id; |
| 1015 | }); |
| 1016 | |
| 1017 | if (feed != nullptr) { |
| 1018 | feed->updateCountscxx . . $ RootItem#updateCounts(b45ddcbc8423892c).(false); |
| 1019 | to_update <<cxx . . $ QList#`operator<<`(ddd37d5bfdbbfc74). feed; |
| 1020 | } |
| 1021 | } |
| 1022 | |
| 1023 | // 2. Important. |
| 1024 | if (importantNodecxx . . $ ServiceRoot#importantNode(8695cdbf17186ab2).() != nullptr) { |
| 1025 | if (linq.anycxx . . $ boolinq/Linq#any(992a0234366b9b4f).([cxx . . $ std/function#function(bdc3712e480e4d04).](const Messagecxx . . $ Message#& msg) { |
| 1026 | return msg.m_isImportantcxx . . $ Message#m_isImportant.; |
| 1027 | })) { |
| 1028 | importantNodecxx . . $ ServiceRoot#importantNode(8695cdbf17186ab2).()->updateCountscxx . . $ ImportantNode#updateCounts(b45ddcbc8423892c).(false); |
| 1029 | to_update <<cxx . . $ QList#`operator<<`(ddd37d5bfdbbfc74). importantNodecxx . . $ ServiceRoot#importantNode(8695cdbf17186ab2).(); |
| 1030 | } |
| 1031 | } |
| 1032 | |
| 1033 | // 3. Unread. |
| 1034 | if (unreadNodecxx . . $ ServiceRoot#unreadNode(c16715fb3bd21592).() != nullptr) { |
| 1035 | unreadNodecxx . . $ ServiceRoot#unreadNode(c16715fb3bd21592).()->updateCountscxx . . $ UnreadNode#updateCounts(b45ddcbc8423892c).(false); |
| 1036 | to_update <<cxx . . $ QList#`operator<<`(ddd37d5bfdbbfc74). unreadNodecxx . . $ ServiceRoot#unreadNode(c16715fb3bd21592).(); |
| 1037 | } |
| 1038 | |
| 1039 | // 4. Labels assigned. |
| 1040 | if (labelsNodecxx . . $ ServiceRoot#labelsNode(b773463470738eab).() != nullptr) { |
| 1041 | // auto db = qApp->database()->driver()->connection(metaObject()->className()); |
| 1042 | QStringListcxx . . $ QStringList# lblscxx . . $ QList#QList(ced63f7c635d850d).; // = DatabaseQueries::getCountOfAssignedLabelsToMessages(db, messages, accountId()); |
| 1043 | |
| 1044 | for (const Messagecxx . . $ Message#& msg : messages) { |
| 1045 | for (const QStringcxx . . $ QString#& lbl : msg.m_assignedLabelsIdscxx . . $ Message#m_assignedLabelsIds.) { |
| 1046 | if (!lbls.containscxx . . $ QListSpecialMethods#contains(89bcd3f9aa09e28b).(lbl)) { |
| 1047 | lbls.appendcxx . . $ QList#append(200d2dc08238a4ed).(lbl); |
| 1048 | } |
| 1049 | } |
| 1050 | } |
| 1051 | |
| 1052 | for (const QStringcxx . . $ QString#& lbl : lbls) { |
| 1053 | Labelcxx . . $ Label#* l = labelsNodecxx . . $ ServiceRoot#labelsNode(b773463470738eab).()->labelByIdcxx . . $ LabelsNode#labelById(c478fee671b86778).(lbl); |
| 1054 | |
| 1055 | if (l != nullptr) { |
| 1056 | l->updateCountscxx . . $ Label#updateCounts(b45ddcbc8423892c).(false); |
| 1057 | to_update <<cxx . . $ QList#`operator<<`(ddd37d5bfdbbfc74). l; |
| 1058 | } |
| 1059 | } |
| 1060 | } |
| 1061 | |
| 1062 | // 5. Probes. |
| 1063 | m_probesNodecxx . . $ ServiceRoot#m_probesNode.->updateCountscxx . . $ RootItem#updateCounts(b45ddcbc8423892c).(false); |
| 1064 | to_update <<cxx . . $ QList#`operator<<`(296c5e09a09ca26f). m_probesNodecxx . . $ ServiceRoot#m_probesNode.->childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).(); |
| 1065 | } |
| 1066 | |
| 1067 | itemChangedcxx . . $ ServiceRoot#itemChanged(47657a4e8825adca).(to_update); |
| 1068 | return true; |
| 1069 | } |
| 1070 | |
| 1071 | bool ServiceRootcxx . . $ ServiceRoot#::onBeforeSwitchMessageImportancecxx . . $ ServiceRoot#onBeforeSwitchMessageImportance(3cf6dccd01820b2).(RootItemcxx . . $ RootItem#* selected_item, const QListcxx . . $ QList#<ImportanceChangecxx . . $ ImportanceChange#>& changes) { |
| 1072 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(selected_item) |
| 1073 | |
| 1074 | auto cache = dynamic_cast<CacheForServiceRootcxx . . $ CacheForServiceRoot#*>(this); |
| 1075 | |
| 1076 | if (cache != nullptr) { |
| 1077 | // Now, we need to separate the changes because of Nextcloud API limitations. |
| 1078 | QListcxx . . $ QList#<Messagecxx . . $ Message#> mark_starred_msgscxx . . $ QList#QList(ced63f7c635d850d).; |
| 1079 | QListcxx . . $ QList#<Messagecxx . . $ Message#> mark_unstarred_msgscxx . . $ QList#QList(ced63f7c635d850d).; |
| 1080 | |
| 1081 | for (const ImportanceChangecxx . . $ ImportanceChange#& pair : changes) { |
| 1082 | if (pair.secondcxx . . $ std/pair#second. == RootItemcxx . . $ RootItem#::Importancecxx . . $ RootItem#Importance#::Importantcxx . . $ RootItem#Importance#Important.) { |
| 1083 | mark_starred_msgs.appendcxx . . $ QList#append(200d2dc08238a4ed).(pair.firstcxx . . $ std/pair#first.); |
| 1084 | } |
| 1085 | else { |
| 1086 | mark_unstarred_msgs.appendcxx . . $ QList#append(200d2dc08238a4ed).(pair.firstcxx . . $ std/pair#first.); |
| 1087 | } |
| 1088 | } |
| 1089 | |
| 1090 | if (!mark_starred_msgs.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) { |
| 1091 | cache->addMessageStatesToCachecxx . . $ CacheForServiceRoot#addMessageStatesToCache(559cd80f2974816d).(mark_starred_msgs, RootItemcxx . . $ RootItem#::Importancecxx . . $ RootItem#Importance#::Importantcxx . . $ RootItem#Importance#Important.); |
| 1092 | } |
| 1093 | |
| 1094 | if (!mark_unstarred_msgs.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) { |
| 1095 | cache->addMessageStatesToCachecxx . . $ CacheForServiceRoot#addMessageStatesToCache(559cd80f2974816d).(mark_unstarred_msgs, RootItemcxx . . $ RootItem#::Importancecxx . . $ RootItem#Importance#::NotImportantcxx . . $ RootItem#Importance#NotImportant.); |
| 1096 | } |
| 1097 | } |
| 1098 | |
| 1099 | return true; |
| 1100 | } |
| 1101 | |
| 1102 | bool ServiceRootcxx . . $ ServiceRoot#::onAfterSwitchMessageImportancecxx . . $ ServiceRoot#onAfterSwitchMessageImportance(3cf6dccd01820b2).(RootItemcxx . . $ RootItem#* selected_item, const QListcxx . . $ QList#<ImportanceChangecxx . . $ ImportanceChange#>& changes) { |
| 1103 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(selected_item) |
| 1104 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(changes) |
| 1105 | |
| 1106 | // NOTE: We know that some messages were marked as starred or unstarred. Starred count |
| 1107 | // is not displayed anywhere in feed list except "Important articles" item. |
| 1108 | auto in = importantNodecxx . . $ ServiceRoot#importantNode(8695cdbf17186ab2).(); |
| 1109 | |
| 1110 | if (in != nullptr) { |
| 1111 | |
| 1112 | in->updateCountscxx . . $ ImportantNode#updateCounts(b45ddcbc8423892c).(true); |
| 1113 | itemChangedcxx . . $ ServiceRoot#itemChanged(47657a4e8825adca).({cxx . . $ QList#QList(b6da5b9a9f304025).in}); |
| 1114 | } |
| 1115 | |
| 1116 | return true; |
| 1117 | } |
| 1118 | |
| 1119 | bool ServiceRootcxx . . $ ServiceRoot#::onBeforeMessagesDeletecxx . . $ ServiceRoot#onBeforeMessagesDelete(66194ea565064a52).(RootItemcxx . . $ RootItem#* selected_item, const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages) { |
| 1120 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(selected_item) |
| 1121 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(messages) |
| 1122 | return true; |
| 1123 | } |
| 1124 | |
| 1125 | bool ServiceRootcxx . . $ ServiceRoot#::onAfterMessagesDeletecxx . . $ ServiceRoot#onAfterMessagesDelete(66194ea565064a52).(RootItemcxx . . $ RootItem#* selected_item, const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages) { |
| 1126 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(selected_item) |
| 1127 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(messages) |
| 1128 | |
| 1129 | // TODO: We know that some messages were deleted, therefore we do not need to recount |
| 1130 | // all items, but only some: |
| 1131 | // - feeds of those messages (if recycle bin is NOT selected) |
| 1132 | // - recycle bin (if recycle bin IS selected) |
| 1133 | // - important articles (if some message IS important AND recycle bin is NOT selected) |
| 1134 | // - unread articles (if some messages IS unread AND if recycle bin is NOT selected) |
| 1135 | // - labels assigned to articles (if recycle bin is NOT selected) |
| 1136 | |
| 1137 | updateCountscxx . . $ ServiceRoot#updateCounts(b45ddcbc8423892c).(true); |
| 1138 | itemChangedcxx . . $ ServiceRoot#itemChanged(47657a4e8825adca).(getSubTreecxx . . $ RootItem#getSubTree(38d8ae5645f2bbf1).<RootItemcxx . . $ RootItem#>()); |
| 1139 | return true; |
| 1140 | } |
| 1141 | |
| 1142 | bool ServiceRootcxx . . $ ServiceRoot#::onBeforeLabelMessageAssignmentChangedcxx . . $ ServiceRoot#onBeforeLabelMessageAssignmentChanged(e6c37902ff50c0c4).(const QListcxx . . $ QList#<Labelcxx . . $ Label#*>& labels, |
| 1143 | const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages, |
| 1144 | bool assign) { |
| 1145 | auto cache = dynamic_cast<CacheForServiceRootcxx . . $ CacheForServiceRoot#*>(this); |
| 1146 | |
| 1147 | if (cache != nullptr) { |
| 1148 | boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(labels).for_eachcxx . . $ boolinq/Linq#for_each(66e864814bcd1933).([cxx . . $ std/function#function(bdc3712e480e4d04).cache, messages, assign](Labelcxx . . $ Label#* lbl) { |
| 1149 | cache->addLabelsAssignmentsToCachecxx . . $ CacheForServiceRoot#addLabelsAssignmentsToCache(f01e5ff6d23cefdf).(messages, lbl, assign); |
| 1150 | }); |
| 1151 | } |
| 1152 | |
| 1153 | return true; |
| 1154 | } |
| 1155 | |
| 1156 | bool ServiceRootcxx . . $ ServiceRoot#::onAfterLabelMessageAssignmentChangedcxx . . $ ServiceRoot#onAfterLabelMessageAssignmentChanged(e6c37902ff50c0c4).(const QListcxx . . $ QList#<Labelcxx . . $ Label#*>& labels, |
| 1157 | const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages, |
| 1158 | bool assign) { |
| 1159 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(messages) |
| 1160 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(assign) |
| 1161 | |
| 1162 | for (Labelcxx . . $ Label#* lbl : labels) { |
| 1163 | lbl->updateCountscxx . . $ Label#updateCounts(b45ddcbc8423892c).(true); |
| 1164 | }; |
| 1165 | |
| 1166 | auto list = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(labels) |
| 1167 | .selectcxx . . $ boolinq/Linq#select(a3f5bd4cd382e0ee).([](Labelcxx . . $ Label#* lbl) { |
| 1168 | return static_cast<RootItemcxx . . $ RootItem#*>(lbl); |
| 1169 | }) |
| 1170 | .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).(); |
| 1171 | |
| 1172 | getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).()->itemChangedcxx . . $ ServiceRoot#itemChanged(47657a4e8825adca).(FROM_STD_LISTcxx . . $ `src/librssguard/definitions/definitions.h:405:9`!(QList<RootItem*>, list)); |
| 1173 | return true; |
| 1174 | } |
| 1175 | |
| 1176 | bool ServiceRootcxx . . $ ServiceRoot#::onBeforeMessagesRestoredFromBincxx . . $ ServiceRoot#onBeforeMessagesRestoredFromBin(66194ea565064a52).(RootItemcxx . . $ RootItem#* selected_item, const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages) { |
| 1177 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(selected_item) |
| 1178 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(messages) |
| 1179 | |
| 1180 | return true; |
| 1181 | } |
| 1182 | |
| 1183 | bool ServiceRootcxx . . $ ServiceRoot#::onAfterMessagesRestoredFromBincxx . . $ ServiceRoot#onAfterMessagesRestoredFromBin(66194ea565064a52).(RootItemcxx . . $ RootItem#* selected_item, const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages) { |
| 1184 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(selected_item) |
| 1185 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(messages) |
| 1186 | |
| 1187 | updateCountscxx . . $ ServiceRoot#updateCounts(b45ddcbc8423892c).(true); |
| 1188 | itemChangedcxx . . $ ServiceRoot#itemChanged(47657a4e8825adca).(getSubTreecxx . . $ RootItem#getSubTree(38d8ae5645f2bbf1).<RootItemcxx . . $ RootItem#>()); |
| 1189 | return true; |
| 1190 | } |
| 1191 | |
| 1192 | void ServiceRootcxx . . $ ServiceRoot#::onAfterFeedsPurgedcxx . . $ ServiceRoot#onAfterFeedsPurged(bcc73982dd0bdfc6).(const QListcxx . . $ QList#<Feedcxx . . $ Feed#*>& feeds) { |
| 1193 | Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(feeds) |
| 1194 | } |
| 1195 | |
| 1196 | CacheForServiceRootcxx . . $ CacheForServiceRoot#* ServiceRootcxx . . $ ServiceRoot#::toCachecxx . . $ ServiceRoot#toCache(3a91035457800c8).() const { |
| 1197 | return dynamic_cast<CacheForServiceRootcxx . . $ CacheForServiceRoot#*>(const_cast<ServiceRootcxx . . $ ServiceRoot#*>(this)); |
| 1198 | } |
| 1199 | |
| 1200 | void ServiceRootcxx . . $ ServiceRoot#::assembleFeedscxx . . $ ServiceRoot#assembleFeeds(ea83f50dc52cd5f2).(const Assignmentcxx . . $ Assignment#& feeds) { |
| 1201 | QHashcxx . . $ QHash#<int, Categorycxx . . $ Category#*> categories = getSubTreeCategoriesForAssemblecxx . . $ RootItem#getSubTreeCategoriesForAssemble(92718ba2d7a417a1).(); |
| 1202 | |
| 1203 | for (const AssignmentItemcxx . . $ AssignmentItem#& feed : feeds) { |
| 1204 | if (feed.firstcxx . . $ std/pair#first. == NO_PARENT_CATEGORYcxx . . $ `src/librssguard/definitions/definitions.h:42:9`!) { |
| 1205 | // This is top-level feed, add it to the root item. |
| 1206 | appendChildcxx . . $ RootItem#appendChild(cb16baca005cfe86).(feed.secondcxx . . $ std/pair#second.); |
| 1207 | } |
| 1208 | else if (categories.containscxx . . $ QHash#contains(5247d2cea5ab73ba).(feed.firstcxx . . $ std/pair#first.)) { |
| 1209 | // This feed belongs to this category. |
| 1210 | categories.valuecxx . . $ QHash#value(5f65a9ee2c9899ff).(feed.firstcxx . . $ std/pair#first.)->appendChildcxx . . $ RootItem#appendChild(cb16baca005cfe86).(feed.secondcxx . . $ std/pair#second.); |
| 1211 | } |
| 1212 | else { |
| 1213 | qWarningNNcxx . . $ `src/librssguard/definitions/definitions.h:417:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_COREcxx . . $ `src/librssguard/definitions/definitions.h:178:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Feed" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACEcxx . . $ `src/librssguard/definitions/definitions.h:432:9`!(feed.second->title()) <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "is loose, skipping it."; |
| 1214 | } |
| 1215 | } |
| 1216 | } |
| 1217 | |
| 1218 | void ServiceRootcxx . . $ ServiceRoot#::resortAccountTreecxx . . $ ServiceRoot#resortAccountTree(5d55c4cf96070d74).(RootItemcxx . . $ RootItem#* tree, |
| 1219 | const QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QVariantMapcxx . . $ QVariantMap#>& custom_category_data, |
| 1220 | const QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QVariantMapcxx . . $ QVariantMap#>& custom_feed_data) const { |
| 1221 | // Iterate tree and rearrange children. |
| 1222 | QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> traversable_itemscxx . . $ QList#QList(ced63f7c635d850d).; |
| 1223 | |
| 1224 | traversable_items.appendcxx . . $ QList#append(200d2dc08238a4ed).(tree); |
| 1225 | |
| 1226 | while (!traversable_items.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) { |
| 1227 | auto* root = traversable_items.takeFirstcxx . . $ QList#takeFirst(5f357b03ed472e5e).(); |
| 1228 | auto& chldr = root->childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).(); |
| 1229 | |
| 1230 | // Sort children so that we are sure that feeds are sorted with sort order |
| 1231 | // other item types do not matter. |
| 1232 | stdcxx . . $ std/::sortcxx . . $ std/sort(4d3091562df4e52e).(chldr.begincxx . . $ QList#begin(ca2520f641887418).(), chldr.endcxx . . $ QList#end(ca2520f641887418).(), [&](const RootItemcxx . . $ RootItem#* lhs, const RootItemcxx . . $ RootItem#* rhs) { |
| 1233 | if (lhs->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Feedcxx . . $ RootItem#Kind#Feed. && rhs->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Feedcxx . . $ RootItem#Kind#Feed.) { |
| 1234 | auto lhs_order = custom_feed_data[cxx . . $ QMap#`operator[]`(d16022aafb6b87be).lhs->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).()].valuecxx . . $ QMap#value(6f0b2e7f225a8193).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("sort_order")).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(); |
| 1235 | auto rhs_order = custom_feed_data[cxx . . $ QMap#`operator[]`(d16022aafb6b87be).rhs->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).()].valuecxx . . $ QMap#value(6f0b2e7f225a8193).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("sort_order")).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(); |
| 1236 | |
| 1237 | return lhs_order < rhs_order; |
| 1238 | } |
| 1239 | else if (lhs->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Categorycxx . . $ RootItem#Kind#Category. && rhs->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Categorycxx . . $ RootItem#Kind#Category.) { |
| 1240 | auto lhs_order = custom_category_data[cxx . . $ QMap#`operator[]`(d16022aafb6b87be).lhs->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).()].valuecxx . . $ QMap#value(6f0b2e7f225a8193).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("sort_order")).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(); |
| 1241 | auto rhs_order = custom_category_data[cxx . . $ QMap#`operator[]`(d16022aafb6b87be).rhs->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).()].valuecxx . . $ QMap#value(6f0b2e7f225a8193).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("sort_order")).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(); |
| 1242 | |
| 1243 | return lhs_order < rhs_order; |
| 1244 | } |
| 1245 | else { |
| 1246 | return lhs->kindcxx . . $ RootItem#kind(faa800885e6a64b).() < rhs->kindcxx . . $ RootItem#kind(faa800885e6a64b).(); |
| 1247 | } |
| 1248 | }); |
| 1249 | |
| 1250 | traversable_items.appendcxx . . $ QList#append(3d2301cfd89f773a).(root->childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).()); |
| 1251 | } |
| 1252 | } |
| 1253 | |
| 1254 | void ServiceRootcxx . . $ ServiceRoot#::assembleCategoriescxx . . $ ServiceRoot#assembleCategories(ea83f50dc52cd5f2).(const Assignmentcxx . . $ Assignment#& categories) { |
| 1255 | Assignmentcxx . . $ Assignment# editable_categories = categories; |
| 1256 | QHashcxx . . $ QHash#<int, RootItemcxx . . $ RootItem#*> assignmentscxx . . $ QHash#QHash(ced63f7c635d850d).; |
| 1257 | |
| 1258 | assignments.insertcxx . . $ QHash#insert(d77b19c31d2eb147).(NO_PARENT_CATEGORYcxx . . $ `src/librssguard/definitions/definitions.h:42:9`!, this); |
| 1259 | |
| 1260 | // Add top-level categories. |
| 1261 | while (!editable_categories.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) { |
| 1262 | for (int i = 0; i < editable_categories.sizecxx . . $ QList#size(6b0412d51016192f).(); i++) { |
| 1263 | if (assignments.containscxx . . $ QHash#contains(5247d2cea5ab73ba).(editable_categories.atcxx . . $ QList#at(c7965f769b39929).(i).firstcxx . . $ std/pair#first.)) { |
| 1264 | // Parent category of this category is already added. |
| 1265 | assignments.valuecxx . . $ QHash#value(5f65a9ee2c9899ff).(editable_categories.atcxx . . $ QList#at(c7965f769b39929).(i).firstcxx . . $ std/pair#first.)->appendChildcxx . . $ RootItem#appendChild(cb16baca005cfe86).(editable_categories.atcxx . . $ QList#at(c7965f769b39929).(i).secondcxx . . $ std/pair#second.); |
| 1266 | |
| 1267 | // Now, added category can be parent for another categories, add it. |
| 1268 | assignments.insertcxx . . $ QHash#insert(d77b19c31d2eb147).(editable_categories.atcxx . . $ QList#at(c7965f769b39929).(i).secondcxx . . $ std/pair#second.->idcxx . . $ RootItem#id(455f465bc33b4cdf).(), editable_categories.atcxx . . $ QList#at(c7965f769b39929).(i).secondcxx . . $ std/pair#second.); |
| 1269 | |
| 1270 | // Remove the category from the list, because it was |
| 1271 | // added to the final collection. |
| 1272 | editable_categories.removeAtcxx . . $ QList#removeAt(35cb52607f6af42f).(i); |
| 1273 | i--; |
| 1274 | } |
| 1275 | } |
| 1276 | } |
| 1277 | } |
| 1278 | |
| 1279 | ServiceRootcxx . . $ ServiceRoot#::LabelOperationcxx . . $ ServiceRoot#LabelOperation# operatorcxx . . $ `operator|`(104937c015b752c5).|(ServiceRootcxx . . $ ServiceRoot#::LabelOperationcxx . . $ ServiceRoot#LabelOperation# lhs, ServiceRootcxx . . $ ServiceRoot#::LabelOperationcxx . . $ ServiceRoot#LabelOperation# rhs) { |
| 1280 | return static_cast<ServiceRootcxx . . $ ServiceRoot#::LabelOperationcxx . . $ ServiceRoot#LabelOperation#>(static_cast<char>(lhs) | static_cast<char>(rhs)); |
| 1281 | } |
| 1282 | |
| 1283 | ServiceRootcxx . . $ ServiceRoot#::LabelOperationcxx . . $ ServiceRoot#LabelOperation# operatorcxx . . $ `operator&`(104937c015b752c5).&(ServiceRootcxx . . $ ServiceRoot#::LabelOperationcxx . . $ ServiceRoot#LabelOperation# lhs, ServiceRootcxx . . $ ServiceRoot#::LabelOperationcxx . . $ ServiceRoot#LabelOperation# rhs) { |
| 1284 | return static_cast<ServiceRootcxx . . $ ServiceRoot#::LabelOperationcxx . . $ ServiceRoot#LabelOperation#>(static_cast<char>(lhs) & static_cast<char>(rhs)); |
| 1285 | } |
| 1286 | |
| 1287 | UpdatedArticlescxx . . $ UpdatedArticles# ServiceRootcxx . . $ ServiceRoot#::updateMessagescxx . . $ ServiceRoot#updateMessages(94545357301d5fab).(QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages, Feedcxx . . $ Feed#* feed, bool force_update, QMutexcxx . . $ QMutex#* db_mutex) { |
| 1288 | UpdatedArticlescxx . . $ UpdatedArticles# updated_messages; |
| 1289 | QSqlDatabasecxx . . $ QSqlDatabase# database = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->threadSafeConnectioncxx . . $ DatabaseDriver#threadSafeConnection(32d6d64cc6e35a97).(metaObjectcxx . . $ QString#QString(85c52e162fed56f9).()->classNamecxx . . $ QMetaObject#className(a9f41ea0e82d88cf).()); |
| 1290 | |
| 1291 | if (!messages.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) { |
| 1292 | bool ok = false; |
| 1293 | |
| 1294 | qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_COREcxx . . $ `src/librssguard/definitions/definitions.h:178:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Updating messages in DB."; |
| 1295 | |
| 1296 | updated_messages =cxx . . $ UpdatedArticles#`operator=`(1f0abcaaf0c4d4a5). DatabaseQueriescxx . . $ DatabaseQueries#::updateMessagescxx . . $ DatabaseQueries#updateMessages(ffa7bd2a8b102c98).(database, messages, feed, force_update, db_mutex, &ok); |
| 1297 | } |
| 1298 | else { |
| 1299 | qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "No messages to be updated/added in DB for feed" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(feed->customId()); |
| 1300 | } |
| 1301 | |
| 1302 | bool anything_removed = feed->removeUnwantedArticlescxx . . $ Feed#removeUnwantedArticles(9c3ef8cf2d66c955).(database); |
| 1303 | |
| 1304 | if (anything_removed || !updated_messages.m_unreadcxx . . $ UpdatedArticles#m_unread..isEmptycxx . . $ QList#isEmpty(3482b152b9333168).() || !updated_messages.m_allcxx . . $ UpdatedArticles#m_all..isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) { |
| 1305 | QMutexLocker lckcxx . . $ QMutexLocker#QMutexLocker(35605a8b3c396497).(db_mutex); |
| 1306 | |
| 1307 | // Something was added or updated in the DB, update numbers. |
| 1308 | feed->updateCountscxx . . $ Feed#updateCounts(b45ddcbc8423892c).(true); |
| 1309 | |
| 1310 | if (recycleBincxx . . $ ServiceRoot#recycleBin(955f70cd004a2ff8).() != nullptr) { |
| 1311 | recycleBincxx . . $ ServiceRoot#recycleBin(955f70cd004a2ff8).()->updateCountscxx . . $ RecycleBin#updateCounts(b45ddcbc8423892c).(true); |
| 1312 | } |
| 1313 | |
| 1314 | if (importantNodecxx . . $ ServiceRoot#importantNode(8695cdbf17186ab2).() != nullptr) { |
| 1315 | importantNodecxx . . $ ServiceRoot#importantNode(8695cdbf17186ab2).()->updateCountscxx . . $ ImportantNode#updateCounts(b45ddcbc8423892c).(true); |
| 1316 | } |
| 1317 | |
| 1318 | if (unreadNodecxx . . $ ServiceRoot#unreadNode(c16715fb3bd21592).() != nullptr) { |
| 1319 | unreadNodecxx . . $ ServiceRoot#unreadNode(c16715fb3bd21592).()->updateCountscxx . . $ UnreadNode#updateCounts(b45ddcbc8423892c).(true); |
| 1320 | } |
| 1321 | |
| 1322 | if (labelsNodecxx . . $ ServiceRoot#labelsNode(b773463470738eab).() != nullptr) { |
| 1323 | labelsNodecxx . . $ ServiceRoot#labelsNode(b773463470738eab).()->updateCountscxx . . $ LabelsNode#updateCounts(b45ddcbc8423892c).(true); |
| 1324 | } |
| 1325 | |
| 1326 | if (probesNodecxx . . $ ServiceRoot#probesNode(5f3fc5f885871ebd).() != nullptr) { |
| 1327 | probesNodecxx . . $ ServiceRoot#probesNode(5f3fc5f885871ebd).()->updateCountscxx . . $ RootItem#updateCounts(b45ddcbc8423892c).(true); |
| 1328 | } |
| 1329 | } |
| 1330 | |
| 1331 | // NOTE: Do not update model items here. We update only once when all feeds are fetched |
| 1332 | // or separately in downloader, if user has this enabled. |
| 1333 | return updated_messages; |
| 1334 | } |