Debian Codegraph @

src/librssguard/services/abstract/rootitem.cpp

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/services/abstract/rootitem.cpp`/
2
3 #include "services/abstract/rootitem.h"cxx . . $ `<file>/src/librssguard/services/abstract/rootitem.h`/
4
5 #include "3rd-party/boolinq/boolinq.h"cxx . . $ `<file>/src/librssguard/3rd-party/boolinq/boolinq.h`/
6 #include "miscellaneous/application.h"cxx . . $ `<file>/src/librssguard/miscellaneous/application.h`/
7 #include "miscellaneous/iconfactory.h"cxx . . $ `<file>/src/librssguard/miscellaneous/iconfactory.h`/
8 #include "miscellaneous/settings.h"cxx . . $ `<file>/src/librssguard/miscellaneous/settings.h`/
9 #include "services/abstract/category.h"cxx . . $ `<file>/src/librssguard/services/abstract/category.h`/
10 #include "services/abstract/feed.h"cxx . . $ `<file>/src/librssguard/services/abstract/feed.h`/
11 #include "services/abstract/label.h"cxx . . $ `<file>/src/librssguard/services/abstract/label.h`/
12 #include "services/abstract/search.h"cxx . . $ `<file>/src/librssguard/services/abstract/search.h`/
13 #include "services/abstract/serviceroot.h"cxx . . $ `<file>/src/librssguard/services/abstract/serviceroot.h`/
14
15 #include <QVariant>
16
17 RootItemcxx . . $ RootItem#::RootItemcxx . . $ RootItem#RootItem(cb16baca005cfe86).(RootItemcxx . . $ RootItem#* parent_item)
18 : QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(nullptr), m_kindcxx . . $ RootItem#m_kind.(RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Rootcxx . . $ RootItem#Kind#Root.), m_idcxx . . $ RootItem#m_id.(NO_PARENT_CATEGORYcxx . . $ `src/librssguard/definitions/definitions.h:42:9`!), m_customIdcxx . . $ RootItem#m_customId.(QL1Scxx . . $ `src/librssguard/definitions/definitions.h:449:9`!("")), m_titlecxx . . $ RootItem#m_title.(QStringcxx . . $ QString#QString(ced63f7c635d850d).()),
19 m_descriptioncxx . . $ RootItem#m_description.(QStringcxx . . $ QString#QString(ced63f7c635d850d).()), m_creationDatecxx . . $ RootItem#m_creationDate.(QDateTimecxx . . $ QDateTime#::currentDateTimeUtccxx . . $ QDateTime#currentDateTimeUtc(bf5129c8228c71c0).()), m_keepOnTopcxx . . $ RootItem#m_keepOnTop.(false),
20 m_sortOrdercxx . . $ RootItem#m_sortOrder.(NO_PARENT_CATEGORYcxx . . $ `src/librssguard/definitions/definitions.h:42:9`!), m_childItemscxx . . $ RootItem#m_childItems.(QListcxx . . $ QList#QList(ced63f7c635d850d).<RootItemcxx . . $ RootItem#*>()), m_parentItemcxx . . $ RootItem#m_parentItem.(parent_item) {}
21
22 RootItemcxx . . $ RootItem#::RootItemcxx . . $ RootItem#RootItem(b0a40b96e931d9e8).(const RootItemcxx . . $ RootItem#& other) : RootItemcxx . . $ RootItem#(nullptr) {
23 setTitlecxx . . $ RootItem#setTitle(3520e46b33348bf6).(other.titlecxx . . $ RootItem#title(6ef7b6c27b00b43d).());
24 setIdcxx . . $ RootItem#setId(d4f767463ce0a6b3).(other.idcxx . . $ RootItem#id(455f465bc33b4cdf).());
25 setCustomIdcxx . . $ RootItem#setCustomId(3520e46b33348bf6).(other.customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).());
26 setIconcxx . . $ RootItem#setIcon(71dcdac178620ed6).(other.iconcxx . . $ RootItem#icon(952ef71f8967d9eb).());
27 setKeepOnTopcxx . . $ RootItem#setKeepOnTop(b45ddcbc8423892c).(other.keepOnTopcxx . . $ RootItem#keepOnTop(50ce9a9e25b4a850).());
28 setSortOrdercxx . . $ RootItem#setSortOrder(d4f767463ce0a6b3).(other.sortOrdercxx . . $ RootItem#sortOrder(455f465bc33b4cdf).());
29
30 // NOTE: We do not need to clone childs, because that would mean that
31 // either source or target item tree would get corrupted.
32 // setChildItems(other.childItems());
33
34 setParentcxx . . $ RootItem#setParent(cb16baca005cfe86).(other.parentcxx . . $ RootItem#parent(e4f4b13bf6686a09).());
35 setCreationDatecxx . . $ RootItem#setCreationDate(3672ecc950120406).(other.creationDatecxx . . $ RootItem#creationDate(4e062b5c490497ac).());
36 setDescriptioncxx . . $ RootItem#setDescription(3520e46b33348bf6).(other.descriptioncxx . . $ RootItem#description(6ef7b6c27b00b43d).());
37 }
38
39 RootItemcxx . . $ RootItem#::~cxx . . $ RootItem#`~RootItem`(ced63f7c635d850d).RootItemcxx . . $ RootItem#() {
40 qDeleteAllcxx . . $ qDeleteAll(77d9f17553126ecb).(m_childItemscxx . . $ RootItem#m_childItems.);
41 }
42
43 QStringcxx . . $ QString# RootItemcxx . . $ RootItem#::hashCodecxx . . $ RootItem#hashCode(6ef7b6c27b00b43d).() const {
44 ServiceRootcxx . . $ ServiceRoot#* root = getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).();
45 int acc_id = root == nullptr ? 0 : root->accountIdcxx . . $ ServiceRoot#accountId(455f465bc33b4cdf).();
46
47 return QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(acc_id) +cxx . . $ operator+(adfbdceb504720ce). QL1Scxx . . $ `src/librssguard/definitions/definitions.h:449:9`!("-") +cxx . . $ operator+(adfbdceb504720ce). QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(int(kindcxx . . $ RootItem#kind(faa800885e6a64b).())) +cxx . . $ operator+(adfbdceb504720ce). QL1Scxx . . $ `src/librssguard/definitions/definitions.h:449:9`!("-") +cxx . . $ operator+(adfbdceb504720ce). QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(idcxx . . $ RootItem#id(455f465bc33b4cdf).());
48 }
49
50 QStringcxx . . $ QString# RootItemcxx . . $ RootItem#::additionalTooltipcxx . . $ RootItem#additionalTooltip(6ef7b6c27b00b43d).() const {
51 return QStringcxx . . $ QString#QString(ced63f7c635d850d).();
52 }
53
54 QListcxx . . $ QList#<QActioncxx . . $ QAction#*> RootItemcxx . . $ RootItem#::contextMenuFeedsListcxx . . $ RootItem#contextMenuFeedsList(c4b3bc0793dee689).() {
55 return {cxx . . $ QList#QList(ced63f7c635d850d).};
56 }
57
58 bool RootItemcxx . . $ RootItem#::canBeEditedcxx . . $ RootItem#canBeEdited(50ce9a9e25b4a850).() const {
59 return false;
60 }
61
62 bool RootItemcxx . . $ RootItem#::canBeDeletedcxx . . $ RootItem#canBeDeleted(50ce9a9e25b4a850).() const {
63 return false;
64 }
65
66 bool RootItemcxx . . $ RootItem#::deleteItemcxx . . $ RootItem#deleteItem(c9857a73d68e59ba).() {
67 return false;
68 }
69
70 bool RootItemcxx . . $ RootItem#::isFetchingcxx . . $ RootItem#isFetching(50ce9a9e25b4a850).() const {
71 return false;
72 }
73
74 bool RootItemcxx . . $ RootItem#::markAsReadUnreadcxx . . $ RootItem#markAsReadUnread(c2f07a1f8834328b).(ReadStatuscxx . . $ RootItem#ReadStatus# status) {
75 bool result = true;
76
77 for (RootItemcxx . . $ RootItem#* child : stdcxx . . $ std/::as_constcxx . . $ std/as_const(1dc117cbefefc300).(m_childItemscxx . . $ RootItem#m_childItems.)) {
78 result &= child->markAsReadUnreadcxx . . $ RootItem#markAsReadUnread(c2f07a1f8834328b).(status);
79 }
80
81 return result;
82 }
83
84 QListcxx . . $ QList#<Messagecxx . . $ Message#> RootItemcxx . . $ RootItem#::undeletedMessagescxx . . $ RootItem#undeletedMessages(96785ab56182243a).() const {
85 QListcxx . . $ QList#<Messagecxx . . $ Message#> messagescxx . . $ QList#QList(ced63f7c635d850d).;
86
87 for (RootItemcxx . . $ RootItem#* child : stdcxx . . $ std/::as_constcxx . . $ std/as_const(1dc117cbefefc300).(m_childItemscxx . . $ RootItem#m_childItems.)) {
88 if (child->kindcxx . . $ RootItem#kind(faa800885e6a64b).() != Kindcxx . . $ RootItem#Kind#::Bincxx . . $ RootItem#Kind#Bin. && child->kindcxx . . $ RootItem#kind(faa800885e6a64b).() != Kindcxx . . $ RootItem#Kind#::Labelscxx . . $ RootItem#Kind#Labels. && child->kindcxx . . $ RootItem#kind(faa800885e6a64b).() != Kindcxx . . $ RootItem#Kind#::Labelcxx . . $ RootItem#Kind#Label.) {
89 messages.appendcxx . . $ QList#append(b1a5d2b9a710f6d1).(child->undeletedMessagescxx . . $ RootItem#undeletedMessages(96785ab56182243a).());
90 }
91 }
92
93 return messages;
94 }
95
96 bool RootItemcxx . . $ RootItem#::cleanMessagescxx . . $ RootItem#cleanMessages(efaadfb7dc14930a).(bool clear_only_read) {
97 bool result = true;
98
99 for (RootItemcxx . . $ RootItem#* child : stdcxx . . $ std/::as_constcxx . . $ std/as_const(1dc117cbefefc300).(m_childItemscxx . . $ RootItem#m_childItems.)) {
100 if (child->kindcxx . . $ RootItem#kind(faa800885e6a64b).() != RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Bincxx . . $ RootItem#Kind#Bin.) {
101 result &= child->cleanMessagescxx . . $ RootItem#cleanMessages(efaadfb7dc14930a).(clear_only_read);
102 }
103 }
104
105 return result;
106 }
107
108 void RootItemcxx . . $ RootItem#::updateCountscxx . . $ RootItem#updateCounts(b45ddcbc8423892c).(bool including_total_count) {
109 for (RootItemcxx . . $ RootItem#* child : stdcxx . . $ std/::as_constcxx . . $ std/as_const(1dc117cbefefc300).(m_childItemscxx . . $ RootItem#m_childItems.)) {
110 child->updateCountscxx . . $ RootItem#updateCounts(b45ddcbc8423892c).(including_total_count);
111 }
112 }
113
114 int RootItemcxx . . $ RootItem#::rowcxx . . $ RootItem#row(455f465bc33b4cdf).() const {
115 if (m_parentItemcxx . . $ RootItem#m_parentItem. != nullptr) {
116 return m_parentItemcxx . . $ RootItem#m_parentItem.->m_childItemscxx . . $ RootItem#m_childItems..indexOfcxx . . $ QListSpecialMethodsBase#indexOf(284c58bbf0d07092).(const_cast<RootItemcxx . . $ RootItem#*>(this));
117 }
118 else {
119 // This item has no parent. Therefore, its row index is 0.
120 return 0;
121 }
122 }
123
124 QVariantcxx . . $ QVariant# RootItemcxx . . $ RootItem#::datacxx . . $ RootItem#data(db8258505c7ad0b0).(int column, int role) const {
125 switch (role) {
126 case Qtcxx . . $ Qt/::ItemDataRolecxx . . $ Qt/ItemDataRole#::ToolTipRolecxx . . $ Qt/ToolTipRole.:
127 if (column == FDS_MODEL_TITLE_INDEXcxx . . $ `src/librssguard/definitions/definitions.h:339:9`!) {
128 QStringcxx . . $ QString# tool_tip = QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("<b>%1</b>").argcxx . . $ QString#arg(ad0bca07273edcc2).(m_titlecxx . . $ RootItem#m_title.);
129
130 if (!m_descriptioncxx . . $ RootItem#m_description..isEmptycxx . . $ QString#isEmpty(3482b152b9333168).()) {
131 tool_tip +=cxx . . $ `operator+=`(79c69f12ebd2f310). QL1Scxx . . $ `src/librssguard/definitions/definitions.h:449:9`!("\n") +cxx . . $ operator+(adfbdceb504720ce). m_descriptioncxx . . $ RootItem#m_description.;
132 }
133
134 QStringcxx . . $ QString# extra_tooltip = additionalTooltipcxx . . $ RootItem#additionalTooltip(6ef7b6c27b00b43d).();
135
136 if (!extra_tooltip.isEmptycxx . . $ QString#isEmpty(3482b152b9333168).()) {
137 tool_tip +=cxx . . $ `operator+=`(79c69f12ebd2f310). QL1Scxx . . $ `src/librssguard/definitions/definitions.h:449:9`!("\n\n") +cxx . . $ operator+(adfbdceb504720ce). extra_tooltip;
138 }
139
140 return tool_tipcxx . . $ QVariant#QVariant(132dd6869045752b)..replacecxx . . $ QString#replace(192e628656427d1c).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("\n"), QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("<br />"));
141 }
142 else if (column == FDS_MODEL_COUNTS_INDEXcxx . . $ `src/librssguard/definitions/definitions.h:340:9`!) {
143 //: Tooltip for "unread" column of feed list.
144 return trcxx . . $ QVariant#QVariant(132dd6869045752b).("%n unread article(s).", nullptr, countOfUnreadMessagescxx . . $ RootItem#countOfUnreadMessages(455f465bc33b4cdf).());
145 }
146 else {
147 return QVariantcxx . . $ QVariant#QVariant(ced63f7c635d850d).();
148 }
149
150 case LOWER_TITLE_ROLEcxx . . $ `src/librssguard/definitions/definitions.h:52:9`!:
151 return m_titlecxx . . $ QVariant#QVariant(132dd6869045752b)..toLowercxx . . $ QString#toLower(dca2c5857e9adf82).();
152
153 case Qtcxx . . $ Qt/::ItemDataRolecxx . . $ Qt/ItemDataRole#::EditRolecxx . . $ Qt/EditRole.:
154 if (column == FDS_MODEL_TITLE_INDEXcxx . . $ `src/librssguard/definitions/definitions.h:339:9`!) {
155 return m_titlecxx . . $ QVariant#QVariant(132dd6869045752b).;
156 }
157 else if (column == FDS_MODEL_COUNTS_INDEXcxx . . $ `src/librssguard/definitions/definitions.h:340:9`!) {
158 return countOfUnreadMessagescxx . . $ QVariant#QVariant(f349c77f591a7878).();
159 }
160 else {
161 return QVariantcxx . . $ QVariant#QVariant(ced63f7c635d850d).();
162 }
163
164 case Qtcxx . . $ Qt/::ItemDataRolecxx . . $ Qt/ItemDataRole#::DisplayRolecxx . . $ Qt/DisplayRole.:
165 if (column == FDS_MODEL_TITLE_INDEXcxx . . $ `src/librssguard/definitions/definitions.h:339:9`!) {
166 return sanitizedTitlecxx . . $ QVariant#QVariant(132dd6869045752b).();
167 }
168 else if (column == FDS_MODEL_COUNTS_INDEXcxx . . $ `src/librssguard/definitions/definitions.h:340:9`!) {
169 int count_unread = countOfUnreadMessagescxx . . $ RootItem#countOfUnreadMessages(455f465bc33b4cdf).();
170
171 if (count_unread <= 0 && qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(Feeds), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(Feeds::HideCountsIfNoUnread)).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()) {
172 return QStringcxx . . $ QVariant#QVariant(132dd6869045752b).();
173 }
174 else {
175 int count_all = countOfAllMessagescxx . . $ RootItem#countOfAllMessages(455f465bc33b4cdf).();
176
177 return qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()
178 ->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(Feeds), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(Feeds::CountFormat))
179 .toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()
180 .replacecxx . . $ QString#replace(192e628656427d1c).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(PLACEHOLDER_UNREAD_COUNTScxx . . $ `src/librssguard/definitions/definitions.h:214:9`!), count_unread < 0 ? QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("-") : QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(count_unread))
181 .replacecxx . . $ QString#replace(192e628656427d1c).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(PLACEHOLDER_ALL_COUNTScxx . . $ `src/librssguard/definitions/definitions.h:215:9`!), count_all < 0 ? QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("-") : QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(count_all));
182 }
183 }
184 else {
185 return QVariantcxx . . $ QVariant#QVariant(ced63f7c635d850d).();
186 }
187
188 case Qtcxx . . $ Qt/::ItemDataRolecxx . . $ Qt/ItemDataRole#::DecorationRolecxx . . $ Qt/DecorationRole.:
189 if (column == FDS_MODEL_TITLE_INDEXcxx . . $ `src/librssguard/definitions/definitions.h:339:9`!) {
190 return fullIconcxx . . $ RootItem#fullIcon(952ef71f8967d9eb).();
191 }
192 else {
193 return QVariantcxx . . $ QVariant#QVariant(ced63f7c635d850d).();
194 }
195
196 case Qtcxx . . $ Qt/::ItemDataRolecxx . . $ Qt/ItemDataRole#::TextAlignmentRolecxx . . $ Qt/TextAlignmentRole.:
197 if (column == FDS_MODEL_COUNTS_INDEXcxx . . $ `src/librssguard/definitions/definitions.h:340:9`!) {
198 return Qtcxx . . $ QVariant#QVariant(f349c77f591a7878).::AlignmentFlagcxx . . $ Qt/AlignmentFlag#::AlignCentercxx . . $ Qt/AlignCenter.;
199 }
200 else {
201 return QVariantcxx . . $ QVariant#QVariant(ced63f7c635d850d).();
202 }
203
204 default:
205 return QVariantcxx . . $ QVariant#QVariant(ced63f7c635d850d).();
206 }
207 }
208
209 Qtcxx . . $ Qt/::ItemFlagscxx . . $ Qt/ItemFlags# RootItemcxx . . $ RootItem#::additionalFlagscxx . . $ RootItem#additionalFlags(24da1317fea73b2e).() const {
210 if (m_kindcxx . . $ RootItem#m_kind. == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Rootcxx . . $ RootItem#Kind#Root.) {
211 return Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::ItemFlagcxx . . $ Qt/ItemFlag#::ItemIsDropEnabledcxx . . $ Qt/ItemIsDropEnabled.;
212 }
213 else {
214 return Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::ItemFlagcxx . . $ Qt/ItemFlag#::NoItemFlagscxx . . $ Qt/NoItemFlags.;
215 }
216 }
217
218 bool RootItemcxx . . $ RootItem#::performDragDropChangecxx . . $ RootItem#performDragDropChange(424ed8b026878aba).(RootItemcxx . . $ RootItem#* target_item) {
219 Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(target_item)
220 return false;
221 }
222
223 int RootItemcxx . . $ RootItem#::countOfUnreadMessagescxx . . $ RootItem#countOfUnreadMessages(455f465bc33b4cdf).() const {
224 return boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(m_childItemscxx . . $ RootItem#m_childItems.).sumcxx . . $ boolinq/Linq#sum(5f5339430a5d2cc6).([](RootItemcxx . . $ RootItem#* it) {
225 return (it->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Bincxx . . $ RootItem#Kind#Bin. || it->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Importantcxx . . $ RootItem#Kind#Important. ||
226 it->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Unreadcxx . . $ RootItem#Kind#Unread. || it->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Labelscxx . . $ RootItem#Kind#Labels. ||
227 it->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Probescxx . . $ RootItem#Kind#Probes.)
228 ? 0
229 : stdcxx . . $ std/::maxcxx . . $ std/max(2a338fce5842aa6a).(it->countOfUnreadMessagescxx . . $ RootItem#countOfUnreadMessages(455f465bc33b4cdf).(), 0);
230 });
231 }
232
233 int RootItemcxx . . $ RootItem#::countOfAllMessagescxx . . $ RootItem#countOfAllMessages(455f465bc33b4cdf).() const {
234 return boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(m_childItemscxx . . $ RootItem#m_childItems.).sumcxx . . $ boolinq/Linq#sum(5f5339430a5d2cc6).([](RootItemcxx . . $ RootItem#* it) {
235 return (it->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Bincxx . . $ RootItem#Kind#Bin. || it->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Importantcxx . . $ RootItem#Kind#Important. ||
236 it->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Unreadcxx . . $ RootItem#Kind#Unread. || it->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Labelscxx . . $ RootItem#Kind#Labels. ||
237 it->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Probescxx . . $ RootItem#Kind#Probes.)
238 ? 0
239 : stdcxx . . $ std/::maxcxx . . $ std/max(2a338fce5842aa6a).(it->countOfAllMessagescxx . . $ RootItem#countOfAllMessages(455f465bc33b4cdf).(), 0);
240 });
241 }
242
243 bool RootItemcxx . . $ RootItem#::isChildOfcxx . . $ RootItem#isChildOf(fac344fa80e9abcf).(const RootItemcxx . . $ RootItem#* root) const {
244 if (root == nullptr) {
245 return false;
246 }
247
248 const RootItemcxx . . $ RootItem#* this_item = this;
249
250 while (this_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() != RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Rootcxx . . $ RootItem#Kind#Root.) {
251 if (root->childItemscxx . . $ RootItem#childItems(8f33d497292471a8).().containscxx . . $ QListSpecialMethodsBase#contains(7349e39e0b02d05c).(const_cast<RootItemcxx . . $ RootItem#* const>(this_item))) {
252 return true;
253 }
254 else {
255 this_item = this_item->parentcxx . . $ RootItem#parent(e4f4b13bf6686a09).();
256 }
257 }
258
259 return false;
260 }
261
262 bool RootItemcxx . . $ RootItem#::isParentOfcxx . . $ RootItem#isParentOf(fac344fa80e9abcf).(const RootItemcxx . . $ RootItem#* child) const {
263 if (child == nullptr) {
264 return false;
265 }
266 else {
267 return child->isChildOfcxx . . $ RootItem#isChildOf(fac344fa80e9abcf).(this);
268 }
269 }
270
271 QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> RootItemcxx . . $ RootItem#::getSubTreecxx . . $ RootItem#getSubTree(cc885028f1f18398).(RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind# kind_of_item) const {
272 return getSubTreecxx . . $ RootItem#getSubTree(38d8ae5645f2bbf1).<RootItemcxx . . $ RootItem#>([cxx . . $ std/function#function(bdc3712e480e4d04).kind_of_item](const RootItemcxx . . $ RootItem#* ri) {
273 return int(ri->kindcxx . . $ RootItem#kind(faa800885e6a64b).() &cxx . . $ `operator&`(8c9bf6f5291ee6f9). kind_of_item) > 0;
274 });
275 }
276
277 QListcxx . . $ QList#<Categorycxx . . $ Category#*> RootItemcxx . . $ RootItem#::getSubTreeCategoriescxx . . $ RootItem#getSubTreeCategories(d8651057aa4a83be).() const {
278 return getSubTreecxx . . $ RootItem#getSubTree(38d8ae5645f2bbf1).<Categorycxx . . $ Category#>([cxx . . $ std/function#function(bdc3712e480e4d04).](const RootItemcxx . . $ RootItem#* ri) {
279 return ri->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Categorycxx . . $ RootItem#Kind#Category.;
280 });
281 }
282
283 RootItemcxx . . $ RootItem#* RootItemcxx . . $ RootItem#::getItemFromSubTreecxx . . $ RootItem#getItemFromSubTree(d39f768279e67ac5).(stdcxx . . $ std/::functioncxx . . $ std/function#<bool(const RootItemcxx . . $ RootItem#*)> tester) const {
284 QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> childrencxx . . $ QList#QList(ced63f7c635d850d).;
285 QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> traversable_itemscxx . . $ QList#QList(ced63f7c635d850d).;
286
287 traversable_items.appendcxx . . $ QList#append(200d2dc08238a4ed).(const_cast<RootItemcxx . . $ RootItem#* const>(this));
288
289 // Iterate all nested items.
290 while (!traversable_items.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
291 RootItemcxx . . $ RootItem#* active_item = traversable_items.takeFirstcxx . . $ QList#takeFirst(5f357b03ed472e5e).();
292
293 if (tester(cxx . . $ std/function#`operator()`(39e0826ffb540481).active_item)) {
294 return active_item;
295 }
296
297 children.appendcxx . . $ QList#append(200d2dc08238a4ed).(active_item);
298 traversable_items.appendcxx . . $ QList#append(3d2301cfd89f773a).(active_item->childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).());
299 }
300
301 return nullptr;
302 }
303
304 QHashcxx . . $ QHash#<int, Categorycxx . . $ Category#*> RootItemcxx . . $ RootItem#::getSubTreeCategoriesForAssemblecxx . . $ RootItem#getSubTreeCategoriesForAssemble(92718ba2d7a417a1).() const {
305 QHashcxx . . $ QHash#<int, Categorycxx . . $ Category#*> childrencxx . . $ QHash#QHash(ced63f7c635d850d).;
306 QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> traversable_itemscxx . . $ QList#QList(ced63f7c635d850d).;
307
308 traversable_items.appendcxx . . $ QList#append(200d2dc08238a4ed).(const_cast<RootItemcxx . . $ RootItem#* const>(this));
309
310 // Iterate all nested items.
311 while (!traversable_items.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
312 RootItemcxx . . $ RootItem#* active_item = traversable_items.takeFirstcxx . . $ QList#takeFirst(5f357b03ed472e5e).();
313
314 if (active_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Categorycxx . . $ RootItem#Kind#Category. && !children.containscxx . . $ QHash#contains(5247d2cea5ab73ba).(active_item->idcxx . . $ RootItem#id(455f465bc33b4cdf).())) {
315 children.insertcxx . . $ QHash#insert(d77b19c31d2eb147).(active_item->idcxx . . $ RootItem#id(455f465bc33b4cdf).(), active_item->toCategorycxx . . $ RootItem#toCategory(7ec1e35fb0cd560d).());
316 }
317
318 traversable_items.appendcxx . . $ QList#append(3d2301cfd89f773a).(active_item->childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).());
319 }
320
321 return childrencxx . . $ QHash#QHash(4af0980b0c631cac).;
322 }
323
324 QHashcxx . . $ QHash#<QStringcxx . . $ QString#, Categorycxx . . $ Category#*> RootItemcxx . . $ RootItem#::getHashedSubTreeCategoriescxx . . $ RootItem#getHashedSubTreeCategories(1f6c633b056f06b8).() const {
325 QHashcxx . . $ QHash#<QStringcxx . . $ QString#, Categorycxx . . $ Category#*> childrencxx . . $ QHash#QHash(ced63f7c635d850d).;
326 QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> traversable_itemscxx . . $ QList#QList(ced63f7c635d850d).;
327
328 traversable_items.appendcxx . . $ QList#append(200d2dc08238a4ed).(const_cast<RootItemcxx . . $ RootItem#* const>(this));
329
330 // Iterate all nested items.
331 while (!traversable_items.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
332 RootItemcxx . . $ RootItem#* active_item = traversable_items.takeFirstcxx . . $ QList#takeFirst(5f357b03ed472e5e).();
333
334 if (active_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Categorycxx . . $ RootItem#Kind#Category. && !children.containscxx . . $ QHash#contains(5247d2cea5ab73ba).(active_item->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).())) {
335 children.insertcxx . . $ QHash#insert(d77b19c31d2eb147).(active_item->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).(), active_item->toCategorycxx . . $ RootItem#toCategory(7ec1e35fb0cd560d).());
336 }
337
338 traversable_items.appendcxx . . $ QList#append(3d2301cfd89f773a).(active_item->childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).());
339 }
340
341 return childrencxx . . $ QHash#QHash(4af0980b0c631cac).;
342 }
343
344 QHashcxx . . $ QHash#<QStringcxx . . $ QString#, Feedcxx . . $ Feed#*> RootItemcxx . . $ RootItem#::getHashedSubTreeFeedscxx . . $ RootItem#getHashedSubTreeFeeds(ed69023a4766ed52).() const {
345 QHashcxx . . $ QHash#<QStringcxx . . $ QString#, Feedcxx . . $ Feed#*> childrencxx . . $ QHash#QHash(ced63f7c635d850d).;
346 QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> traversable_itemscxx . . $ QList#QList(ced63f7c635d850d).;
347
348 traversable_items.appendcxx . . $ QList#append(200d2dc08238a4ed).(const_cast<RootItemcxx . . $ RootItem#* const>(this));
349
350 // Iterate all nested items.
351 while (!traversable_items.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
352 RootItemcxx . . $ RootItem#* active_item = traversable_items.takeFirstcxx . . $ QList#takeFirst(5f357b03ed472e5e).();
353
354 if (active_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Feedcxx . . $ RootItem#Kind#Feed. && !children.containscxx . . $ QHash#contains(5247d2cea5ab73ba).(active_item->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).())) {
355 children.insertcxx . . $ QHash#insert(d77b19c31d2eb147).(active_item->customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).(), active_item->toFeedcxx . . $ RootItem#toFeed(6205f4b142e8b232).());
356 }
357
358 traversable_items.appendcxx . . $ QList#append(3d2301cfd89f773a).(active_item->childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).());
359 }
360
361 return childrencxx . . $ QHash#QHash(4af0980b0c631cac).;
362 }
363
364 QListcxx . . $ QList#<Feedcxx . . $ Feed#*> RootItemcxx . . $ RootItem#::getSubTreeFeedscxx . . $ RootItem#getSubTreeFeeds(7d493c88c85a9a14).(bool recursive) const {
365 QListcxx . . $ QList#<Feedcxx . . $ Feed#*> childrencxx . . $ QList#QList(ced63f7c635d850d).;
366 QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> traversable_itemscxx . . $ QList#QList(ced63f7c635d850d).;
367 bool traversed = false;
368
369 traversable_items.appendcxx . . $ QList#append(200d2dc08238a4ed).(const_cast<RootItemcxx . . $ RootItem#* const>(this));
370
371 // Iterate all nested items.
372 while (!traversable_items.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
373 RootItemcxx . . $ RootItem#* active_item = traversable_items.takeFirstcxx . . $ QList#takeFirst(5f357b03ed472e5e).();
374
375 if (active_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Feedcxx . . $ RootItem#Kind#Feed.) {
376 children.appendcxx . . $ QList#append(200d2dc08238a4ed).(active_item->toFeedcxx . . $ RootItem#toFeed(6205f4b142e8b232).());
377 }
378
379 if (recursive || !traversed) {
380 traversed = true;
381 traversable_items.appendcxx . . $ QList#append(3d2301cfd89f773a).(active_item->childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).());
382 }
383 }
384
385 return children;
386 }
387
388 QListcxx . . $ QList#<Feedcxx . . $ Feed#*> RootItemcxx . . $ RootItem#::getSubTreeAutoFetchingWithManualIntervalsFeedscxx . . $ RootItem#getSubTreeAutoFetchingWithManualIntervalsFeeds(3a739c0eda2e4ac8).() const {
389 QListcxx . . $ QList#<Feedcxx . . $ Feed#*> childrencxx . . $ QList#QList(ced63f7c635d850d).;
390 QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> traversable_itemscxx . . $ QList#QList(ced63f7c635d850d).;
391
392 traversable_items.appendcxx . . $ QList#append(200d2dc08238a4ed).(const_cast<RootItemcxx . . $ RootItem#* const>(this));
393
394 // Iterate all nested items.
395 while (!traversable_items.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
396 RootItemcxx . . $ RootItem#* active_item = traversable_items.takeFirstcxx . . $ QList#takeFirst(5f357b03ed472e5e).();
397
398 if (active_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Feedcxx . . $ RootItem#Kind#Feed. &&
399 active_item->toFeedcxx . . $ RootItem#toFeed(6205f4b142e8b232).()->autoUpdateTypecxx . . $ Feed#autoUpdateType(32c2e86181102346).() == Feedcxx . . $ Feed#::AutoUpdateTypecxx . . $ Feed#AutoUpdateType#::SpecificAutoUpdatecxx . . $ Feed#AutoUpdateType#SpecificAutoUpdate.) {
400 children.appendcxx . . $ QList#append(200d2dc08238a4ed).(active_item->toFeedcxx . . $ RootItem#toFeed(6205f4b142e8b232).());
401 }
402
403 traversable_items.appendcxx . . $ QList#append(3d2301cfd89f773a).(active_item->childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).());
404 }
405
406 return children;
407 }
408
409 QListcxx . . $ QList#<Feedcxx . . $ Feed#*> RootItemcxx . . $ RootItem#::getSubAutoFetchingEnabledFeedscxx . . $ RootItem#getSubAutoFetchingEnabledFeeds(3a739c0eda2e4ac8).() const {
410 QListcxx . . $ QList#<Feedcxx . . $ Feed#*> childrencxx . . $ QList#QList(ced63f7c635d850d).;
411 QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> traversable_itemscxx . . $ QList#QList(ced63f7c635d850d).;
412
413 traversable_items.appendcxx . . $ QList#append(200d2dc08238a4ed).(const_cast<RootItemcxx . . $ RootItem#* const>(this));
414
415 // Iterate all nested items.
416 while (!traversable_items.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
417 RootItemcxx . . $ RootItem#* active_item = traversable_items.takeFirstcxx . . $ QList#takeFirst(5f357b03ed472e5e).();
418
419 if (active_item->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Feedcxx . . $ RootItem#Kind#Feed. &&
420 active_item->toFeedcxx . . $ RootItem#toFeed(6205f4b142e8b232).()->autoUpdateTypecxx . . $ Feed#autoUpdateType(32c2e86181102346).() != Feedcxx . . $ Feed#::AutoUpdateTypecxx . . $ Feed#AutoUpdateType#::DontAutoUpdatecxx . . $ Feed#AutoUpdateType#DontAutoUpdate.) {
421 children.appendcxx . . $ QList#append(200d2dc08238a4ed).(active_item->toFeedcxx . . $ RootItem#toFeed(6205f4b142e8b232).());
422 }
423
424 traversable_items.appendcxx . . $ QList#append(3d2301cfd89f773a).(active_item->childItemscxx . . $ RootItem#childItems(f275a58a8bc5f139).());
425 }
426
427 return children;
428 }
429
430 ServiceRootcxx . . $ ServiceRoot#* RootItemcxx . . $ RootItem#::getParentServiceRootcxx . . $ RootItem#getParentServiceRoot(56209a8cf0725652).() const {
431 const RootItemcxx . . $ RootItem#* working_parent = this;
432
433 while (working_parent->kindcxx . . $ RootItem#kind(faa800885e6a64b).() != RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Rootcxx . . $ RootItem#Kind#Root.) {
434 if (working_parent->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::ServiceRootcxx . . $ RootItem#Kind#ServiceRoot.) {
435 return working_parent->toServiceRootcxx . . $ RootItem#toServiceRoot(56209a8cf0725652).();
436 }
437 else {
438 working_parent = working_parent->parentcxx . . $ RootItem#parent(e4f4b13bf6686a09).();
439 }
440 }
441
442 return nullptr;
443 }
444
445 RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind# RootItemcxx . . $ RootItem#::kindcxx . . $ RootItem#kind(faa800885e6a64b).() const {
446 return m_kindcxx . . $ RootItem#m_kind.;
447 }
448
449 void RootItemcxx . . $ RootItem#::setKindcxx . . $ RootItem#setKind(77afe77d4ce7bfe8).(RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind# kind) {
450 m_kindcxx . . $ RootItem#m_kind. = kind;
451 }
452
453 QIconcxx . . $ QIcon# RootItemcxx . . $ RootItem#::iconcxx . . $ RootItem#icon(952ef71f8967d9eb).() const {
454 return m_iconcxx . . $ QIcon#QIcon(71dcdac178620ed6).;
455 }
456
457 void RootItemcxx . . $ RootItem#::setIconcxx . . $ RootItem#setIcon(71dcdac178620ed6).(const QIconcxx . . $ QIcon#& icon) {
458 m_iconcxx . . $ RootItem#m_icon. =cxx . . $ QIcon#`operator=`(68c32cb828cec48). icon;
459 }
460
461 QIconcxx . . $ QIcon# RootItemcxx . . $ RootItem#::fullIconcxx . . $ RootItem#fullIcon(952ef71f8967d9eb).() const {
462 QIconcxx . . $ QIcon# ico = iconcxx . . $ RootItem#icon(952ef71f8967d9eb).();
463
464 if (ico.isNullcxx . . $ QIcon#isNull(50ce9a9e25b4a850).()) {
465 if (kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Feedcxx . . $ RootItem#Kind#Feed.) {
466 return qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->iconscxx . . $ Application#icons(d976db2a0d825b70).()->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("application-rss+xml"));
467 }
468 else if (kindcxx . . $ RootItem#kind(faa800885e6a64b).() == RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#::Categorycxx . . $ RootItem#Kind#Category.) {
469 return qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->iconscxx . . $ Application#icons(d976db2a0d825b70).()->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("folder"));
470 }
471 }
472
473 return icocxx . . $ QIcon#QIcon(44c9bbc25a297bfe).;
474 }
475
476 int RootItemcxx . . $ RootItem#::idcxx . . $ RootItem#id(455f465bc33b4cdf).() const {
477 return m_idcxx . . $ RootItem#m_id.;
478 }
479
480 void RootItemcxx . . $ RootItem#::setIdcxx . . $ RootItem#setId(d4f767463ce0a6b3).(int id) {
481 m_idcxx . . $ RootItem#m_id. = id;
482 }
483
484 QStringcxx . . $ QString# RootItemcxx . . $ RootItem#::titlecxx . . $ RootItem#title(6ef7b6c27b00b43d).() const {
485 return m_titlecxx . . $ QString#QString(132dd6869045752b).;
486 }
487
488 QStringcxx . . $ QString# RootItemcxx . . $ RootItem#::sanitizedTitlecxx . . $ RootItem#sanitizedTitle(6ef7b6c27b00b43d).() const {
489 return m_titlecxx . . $ RootItem#m_title..simplifiedcxx . . $ QString#simplified(dca2c5857e9adf82).();
490 }
491
492 void RootItemcxx . . $ RootItem#::setTitlecxx . . $ RootItem#setTitle(3520e46b33348bf6).(const QStringcxx . . $ QString#& title) {
493 m_titlecxx . . $ RootItem#m_title. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). title;
494 }
495
496 QDateTimecxx . . $ QDateTime# RootItemcxx . . $ RootItem#::creationDatecxx . . $ RootItem#creationDate(4e062b5c490497ac).() const {
497 return m_creationDatecxx . . $ QDateTime#QDateTime(5da15eb5af6b9895).;
498 }
499
500 void RootItemcxx . . $ RootItem#::setCreationDatecxx . . $ RootItem#setCreationDate(3672ecc950120406).(const QDateTimecxx . . $ QDateTime#& creation_date) {
501 m_creationDatecxx . . $ RootItem#m_creationDate. =cxx . . $ QDateTime#`operator=`(c9ee2a3e4c661ab0). creation_date;
502 }
503
504 QStringcxx . . $ QString# RootItemcxx . . $ RootItem#::descriptioncxx . . $ RootItem#description(6ef7b6c27b00b43d).() const {
505 return m_descriptioncxx . . $ QString#QString(132dd6869045752b).;
506 }
507
508 void RootItemcxx . . $ RootItem#::setDescriptioncxx . . $ RootItem#setDescription(3520e46b33348bf6).(const QStringcxx . . $ QString#& description) {
509 m_descriptioncxx . . $ RootItem#m_description. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). description;
510 }
511
512 bool RootItemcxx . . $ RootItem#::removeChildcxx . . $ RootItem#removeChild(424ed8b026878aba).(RootItemcxx . . $ RootItem#* child) {
513 return m_childItemscxx . . $ RootItem#m_childItems..removeOnecxx . . $ QList#removeOne(310757e808c34387).(child);
514 }
515
516 QStringcxx . . $ QString# RootItemcxx . . $ RootItem#::customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).() const {
517 return m_customIdcxx . . $ QString#QString(132dd6869045752b).;
518 }
519
520 int RootItemcxx . . $ RootItem#::customNumericIdcxx . . $ RootItem#customNumericId(455f465bc33b4cdf).() const {
521 return customIdcxx . . $ RootItem#customId(6ef7b6c27b00b43d).().toIntcxx . . $ QString#toInt(d7972accae11ee1f).();
522 }
523
524 void RootItemcxx . . $ RootItem#::setCustomIdcxx . . $ RootItem#setCustomId(3520e46b33348bf6).(const QStringcxx . . $ QString#& custom_id) {
525 m_customIdcxx . . $ RootItem#m_customId. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). custom_id;
526 }
527
528 Categorycxx . . $ Category#* RootItemcxx . . $ RootItem#::toCategorycxx . . $ RootItem#toCategory(7ec1e35fb0cd560d).() const {
529 return qobject_castcxx . . $ qobject_cast(c988cfc0ca08742e).<Categorycxx . . $ Category#*>(const_cast<RootItemcxx . . $ RootItem#*>(this));
530 }
531
532 Feedcxx . . $ Feed#* RootItemcxx . . $ RootItem#::toFeedcxx . . $ RootItem#toFeed(6205f4b142e8b232).() const {
533 return qobject_castcxx . . $ qobject_cast(c988cfc0ca08742e).<Feedcxx . . $ Feed#*>(const_cast<RootItemcxx . . $ RootItem#*>(this));
534 }
535
536 Labelcxx . . $ Label#* RootItemcxx . . $ RootItem#::toLabelcxx . . $ RootItem#toLabel(3494628e4df37b42).() const {
537 return qobject_castcxx . . $ qobject_cast(c988cfc0ca08742e).<Labelcxx . . $ Label#*>(const_cast<RootItemcxx . . $ RootItem#*>(this));
538 }
539
540 Searchcxx . . $ Search#* RootItemcxx . . $ RootItem#::toProbecxx . . $ RootItem#toProbe(4adbbd05c673efe7).() const {
541 return qobject_castcxx . . $ qobject_cast(c988cfc0ca08742e).<Searchcxx . . $ Search#*>(const_cast<RootItemcxx . . $ RootItem#*>(this));
542 }
543
544 ServiceRootcxx . . $ ServiceRoot#* RootItemcxx . . $ RootItem#::toServiceRootcxx . . $ RootItem#toServiceRoot(56209a8cf0725652).() const {
545 return qobject_castcxx . . $ qobject_cast(c988cfc0ca08742e).<ServiceRootcxx . . $ ServiceRoot#*>(const_cast<RootItemcxx . . $ RootItem#*>(this));
546 }
547
548 bool RootItemcxx . . $ RootItem#::keepOnTopcxx . . $ RootItem#keepOnTop(50ce9a9e25b4a850).() const {
549 return m_keepOnTopcxx . . $ RootItem#m_keepOnTop.;
550 }
551
552 void RootItemcxx . . $ RootItem#::setKeepOnTopcxx . . $ RootItem#setKeepOnTop(b45ddcbc8423892c).(bool keep_on_top) {
553 m_keepOnTopcxx . . $ RootItem#m_keepOnTop. = keep_on_top;
554 }
555
556 int RootItemcxx . . $ RootItem#::sortOrdercxx . . $ RootItem#sortOrder(455f465bc33b4cdf).() const {
557 return m_sortOrdercxx . . $ RootItem#m_sortOrder.;
558 }
559
560 void RootItemcxx . . $ RootItem#::setSortOrdercxx . . $ RootItem#setSortOrder(d4f767463ce0a6b3).(int sort_order) {
561 m_sortOrdercxx . . $ RootItem#m_sortOrder. = sort_order;
562 }
563
564 bool RootItemcxx . . $ RootItem#::removeChildcxx . . $ RootItem#removeChild(83c267b20bac841a).(int index) {
565 if (index >= 0 && index < m_childItemscxx . . $ RootItem#m_childItems..sizecxx . . $ QList#size(6b0412d51016192f).()) {
566 m_childItemscxx . . $ RootItem#m_childItems..removeAtcxx . . $ QList#removeAt(35cb52607f6af42f).(index);
567 return true;
568 }
569 else {
570 return false;
571 }
572 }
573
574 QDataStreamcxx . . $ QDataStream#& operatorcxx . . $ `operator>>`(63804b4a967d7e8f).>>(QDataStreamcxx . . $ QDataStream#& in, RootItemcxx . . $ RootItem#::ReadStatuscxx . . $ RootItem#ReadStatus#& myObj) {
575 int obj;
576
577 in >>cxx . . $ QDataStream#`operator>>`(5d85a1f32685b7f5). obj;
578
579 myObj = (RootItemcxx . . $ RootItem#::ReadStatuscxx . . $ RootItem#ReadStatus#)obj;
580
581 return in;
582 }
583
584 QDataStreamcxx . . $ QDataStream#& operatorcxx . . $ `operator<<`(98c166ac21dfd142).<<(QDataStreamcxx . . $ QDataStream#& out, const RootItemcxx . . $ RootItem#::ReadStatuscxx . . $ RootItem#ReadStatus#& myObj) {
585 out <<cxx . . $ QDataStream#`operator<<`(81719ddd5bb46286). (int)myObj;
586
587 return out;
588 }
589
590 QDataStreamcxx . . $ QDataStream#& operatorcxx . . $ `operator>>`(c75e36a0dd6de3a5).>>(QDataStreamcxx . . $ QDataStream#& in, RootItemcxx . . $ RootItem#::Importancecxx . . $ RootItem#Importance#& myObj) {
591 int obj;
592
593 in >>cxx . . $ QDataStream#`operator>>`(5d85a1f32685b7f5). obj;
594
595 myObj = (RootItemcxx . . $ RootItem#::Importancecxx . . $ RootItem#Importance#)obj;
596
597 return in;
598 }
599
600 QDataStreamcxx . . $ QDataStream#& operatorcxx . . $ `operator<<`(4fe496e2385cdb4).<<(QDataStreamcxx . . $ QDataStream#& out, const RootItemcxx . . $ RootItem#::Importancecxx . . $ RootItem#Importance#& myObj) {
601 out <<cxx . . $ QDataStream#`operator<<`(81719ddd5bb46286). (int)myObj;
602
603 return out;
604 }
605
606 RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind# operatorcxx . . $ `operator|`(8c9bf6f5291ee6f9).|(RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind# a, RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind# b) {
607 return static_cast<RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#>(static_cast<int>(a) | static_cast<int>(b));
608 }
609
610 RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind# operatorcxx . . $ `operator&`(8c9bf6f5291ee6f9).&(RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind# a, RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind# b) {
611 return static_cast<RootItemcxx . . $ RootItem#::Kindcxx . . $ RootItem#Kind#>(static_cast<int>(a) & static_cast<int>(b));
612 }
613
614 QListcxx . . $ QList#<RootItemcxx . . $ RootItem#*> RootItemcxx . . $ RootItem#::childItemscxx . . $ RootItem#childItems(cc885028f1f18398).(Kindcxx . . $ RootItem#Kind# kind) const {
615 auto linq = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(m_childItemscxx . . $ RootItem#m_childItems.)
616 .wherecxx . . $ boolinq/Linq#where(d169c8e6e9294137).([cxx . . $ std/function#function(bdc3712e480e4d04).=](RootItemcxx . . $ RootItem#* it) {
617 return it->kindcxx . . $ RootItem#kind(faa800885e6a64b).() == kind;
618 })
619 .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).();
620
621 return FROM_STD_LISTcxx . . $ `src/librssguard/definitions/definitions.h:405:9`!(QList<RootItem*>, linq);
622 }