Debian Codegraph @

src/librssguard/network-web/googlesuggest.cpp

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/network-web/googlesuggest.cpp`/
2
3 // You may use this file under the terms of the BSD license as follows:
4 //
5 // "Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are
7 // met:
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright
11 // notice, this list of conditions and the following disclaimer in
12 // the documentation and/or other materials provided with the
13 // distribution.
14 // * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
15 // of its contributors may be used to endorse or promote products derived
16 // from this software without specific prior written permission.
17 //
18 //
19 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
30
31 #include "network-web/googlesuggest.h"cxx . . $ `<file>/src/librssguard/network-web/googlesuggest.h`/
32
33 #include "definitions/definitions.h"cxx . . $ `<file>/src/librssguard/definitions/definitions.h`/
34 #include "gui/reusable/locationlineedit.h"cxx . . $ `<file>/src/librssguard/gui/reusable/locationlineedit.h`/
35 #include "network-web/downloader.h"cxx . . $ `<file>/src/librssguard/network-web/downloader.h`/
36
37 #include <QDomDocument>
38 #include <QKeyEvent>
39 #include <QListWidget>
40 #include <QNetworkReply>
41 #include <QNetworkRequest>
42 #include <QTextCodec>
43 #include <QTimer>
44 #include <QXmlStreamReader>
45
46 GoogleSuggestcxx . . $ GoogleSuggest#::GoogleSuggestcxx . . $ GoogleSuggest#GoogleSuggest(590694cdbd0af2aa).(LocationLineEditcxx . . $ LocationLineEdit#* editor, QObjectcxx . . $ QObject#* parent)
47 : QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(parent), m_editorcxx . . $ GoogleSuggest#m_editor.(editor), m_downloadercxx . . $ GoogleSuggest#m_downloader.(new Downloadercxx . . $ Downloader#(this)), m_popupcxx . . $ GoogleSuggest#m_popup.(new QListWidgetcxx . . $ QListWidget#QListWidget(108f35f7aa7f3cf9).()),
48 m_enteredTextcxx . . $ GoogleSuggest#m_enteredText.(QStringcxx . . $ QString#QString(ced63f7c635d850d).()) {
49 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).setWindowFlagscxx . . $ QWidget#setWindowFlags(f800b5e9bc59e42e).(Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::WindowTypecxx . . $ Qt/WindowType#::Popupcxx . . $ Qt/Popup.);
50 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).setFocusPolicycxx . . $ QWidget#setFocusPolicy(84f385f4ea7c1696).(Qtcxx . . $ Qt/::FocusPolicycxx . . $ Qt/FocusPolicy#::NoFocuscxx . . $ Qt/NoFocus.);
51 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).setFocusProxycxx . . $ QWidget#setFocusProxy(108f35f7aa7f3cf9).(editor);
52 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).setMouseTrackingcxx . . $ QWidget#setMouseTracking(b45ddcbc8423892c).(true);
53 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).setSelectionBehaviorcxx . . $ QAbstractItemView#setSelectionBehavior(3a606fd1f72e340).(QAbstractItemViewcxx . . $ QAbstractItemView#::SelectionBehaviorcxx . . $ QAbstractItemView#SelectionBehavior#::SelectRowscxx . . $ QAbstractItemView#SelectRows.);
54 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).setFrameStylecxx . . $ QFrame#setFrameStyle(d4f767463ce0a6b3).(QFramecxx . . $ QFrame#::Shapecxx . . $ QFrame#Shape#::Boxcxx . . $ QFrame#Box. |cxx . . $ `operator|`(44af6e16e9fc6bb). QFramecxx . . $ QFrame#::Shadowcxx . . $ QFrame#Shadow#::Plaincxx . . $ QFrame#Plain.);
55 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).setHorizontalScrollBarPolicycxx . . $ QAbstractScrollArea#setHorizontalScrollBarPolicy(ec1b3becc657ee30).(Qtcxx . . $ Qt/::ScrollBarPolicycxx . . $ Qt/ScrollBarPolicy#::ScrollBarAlwaysOffcxx . . $ Qt/ScrollBarAlwaysOff.);
56 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).installEventFiltercxx . . $ QObject#installEventFilter(749de1b6ae65bddd).(this);
57 m_timercxx . . $ GoogleSuggest#m_timer. = new QTimercxx . . $ QTimer#QTimer(749de1b6ae65bddd).(this);
58 m_timercxx . . $ GoogleSuggest#m_timer.->setSingleShotcxx . . $ QTimer#setSingleShot(b45ddcbc8423892c).(true);
59 m_timercxx . . $ GoogleSuggest#m_timer.->setIntervalcxx . . $ QTimer#setInterval(d4f767463ce0a6b3).(1500);
60
61 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_popupcxx . . $ GoogleSuggest#m_popup..datacxx . . $ QScopedPointer#data(34d6acfd341ba7ab).(), &QListWidgetcxx . . $ QListWidget#::itemClickedcxx . . $ QListWidget#itemClicked(13c1c8ad030616f4)., this, &GoogleSuggestcxx . . $ GoogleSuggest#::doneCompletioncxx . . $ GoogleSuggest#doneCompletion(49f6e7a06ebc5aa8).);
62 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_timercxx . . $ GoogleSuggest#m_timer., &QTimercxx . . $ QTimer#::timeoutcxx . . $ QTimer#timeout(32604d697c0ceadc)., this, &GoogleSuggestcxx . . $ GoogleSuggest#::autoSuggestcxx . . $ GoogleSuggest#autoSuggest(49f6e7a06ebc5aa8).);
63 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(editor, &LocationLineEditcxx . . $ LocationLineEdit#::textEditedcxx . . $ QLineEdit#textEdited(3520e46b33348bf6)., m_timercxx . . $ GoogleSuggest#m_timer., static_cast<void (QTimercxx . . $ QTimer#::*)()>(&QTimercxx . . $ QTimer#::startcxx . . $ QTimer#start(49f6e7a06ebc5aa8).));
64 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_downloadercxx . . $ GoogleSuggest#m_downloader..datacxx . . $ QScopedPointer#data(34d6acfd341ba7ab).(), &Downloadercxx . . $ Downloader#::completedcxx . . $ Downloader#completed(2e59411b5306353b)., this, &GoogleSuggestcxx . . $ GoogleSuggest#::handleNetworkDatacxx . . $ GoogleSuggest#handleNetworkData(377b816ef29857eb).);
65 }
66
67 bool GoogleSuggestcxx . . $ GoogleSuggest#::eventFiltercxx . . $ GoogleSuggest#eventFilter(978aa4af1d030efa).(QObjectcxx . . $ QObject#* object, QEventcxx . . $ QEvent#* event) {
68 if (object != m_popupcxx . . $ GoogleSuggest#m_popup..datacxx . . $ QScopedPointer#data(34d6acfd341ba7ab).()) {
69 return false;
70 }
71
72 if (event->typecxx . . $ QEvent#type(916a8de57f4d422b).() == QEventcxx . . $ QEvent#::MouseButtonPresscxx . . $ QEvent#MouseButtonPress.) {
73 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).();
74 m_editorcxx . . $ GoogleSuggest#m_editor.->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).();
75 return true;
76 }
77
78 if (event->typecxx . . $ QEvent#type(916a8de57f4d422b).() == QEventcxx . . $ QEvent#::KeyPresscxx . . $ QEvent#KeyPress.) {
79 bool consumed = false;
80 const int key = static_cast<QKeyEventcxx . . $ QKeyEvent#*>(event)->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).();
81
82 switch (key) {
83 case Qtcxx . . $ Qt/::Key_Entercxx . . $ Qt/Key_Enter.:
84 case Qtcxx . . $ Qt/::Key_Returncxx . . $ Qt/Key_Return.:
85 doneCompletioncxx . . $ GoogleSuggest#doneCompletion(49f6e7a06ebc5aa8).();
86 consumed = true;
87 break;
88
89 case Qtcxx . . $ Qt/::Key_Escapecxx . . $ Qt/Key_Escape.:
90 m_editorcxx . . $ GoogleSuggest#m_editor.->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).();
91 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).();
92 consumed = true;
93 break;
94
95 case Qtcxx . . $ Qt/::Key_Upcxx . . $ Qt/Key_Up.:
96 case Qtcxx . . $ Qt/::Key_Downcxx . . $ Qt/Key_Down.:
97 case Qtcxx . . $ Qt/::Key_Homecxx . . $ Qt/Key_Home.:
98 case Qtcxx . . $ Qt/::Key_Endcxx . . $ Qt/Key_End.:
99 case Qtcxx . . $ Qt/::Key_PageUpcxx . . $ Qt/Key_PageUp.:
100 case Qtcxx . . $ Qt/::Key_PageDowncxx . . $ Qt/Key_PageDown.:
101 break;
102
103 default:
104 m_editorcxx . . $ GoogleSuggest#m_editor.->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).();
105 m_editorcxx . . $ GoogleSuggest#m_editor.->eventcxx . . $ QLineEdit#event(f123fa2ce489f0bd).(event);
106 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).();
107 break;
108 }
109
110 return consumed;
111 }
112
113 return false;
114 }
115
116 void GoogleSuggestcxx . . $ GoogleSuggest#::showCompletioncxx . . $ GoogleSuggest#showCompletion(4c9f0945b8b27034).(const QStringListcxx . . $ QStringList#& choices) {
117 if (choices.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
118 return;
119 }
120
121 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).setUpdatesEnabledcxx . . $ QWidget#setUpdatesEnabled(b45ddcbc8423892c).(false);
122 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).clearcxx . . $ QListWidget#clear(49f6e7a06ebc5aa8).();
123
124 for (const QStringcxx . . $ QString#& choice : choices) {
125 new QListWidgetItemcxx . . $ QListWidgetItem#(choice, m_popupcxx . . $ GoogleSuggest#m_popup..datacxx . . $ QScopedPointer#data(34d6acfd341ba7ab).());
126 }
127
128 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).setCurrentItemcxx . . $ QListWidget#setCurrentItem(13c1c8ad030616f4).(m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).itemcxx . . $ QListWidget#item(4a46e62d02d541e5).(0));
129 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).adjustSizecxx . . $ QWidget#adjustSize(49f6e7a06ebc5aa8).();
130 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).setUpdatesEnabledcxx . . $ QWidget#setUpdatesEnabled(b45ddcbc8423892c).(true);
131 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).resizecxx . . $ QWidget#resize(3e454b8ccf442868).(m_editorcxx . . $ GoogleSuggest#m_editor.->widthcxx . . $ QWidget#width(455f465bc33b4cdf).(), m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).sizeHintForRowcxx . . $ QAbstractItemView#sizeHintForRow(7ccb52b1bfe01045).(0) * qMincxx . . $ qMin(f07f1046a2823333).(7, choices.countcxx . . $ QList#count(6b0412d51016192f).()) + 3);
132 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).movecxx . . $ QWidget#move(4f9e9534be445c03).(m_editorcxx . . $ GoogleSuggest#m_editor.->mapToGlobalcxx . . $ QWidget#mapToGlobal(1aa4d425351b0c99).(QPointcxx . . $ QPoint#QPoint(c0d38f4800714fae).(0, m_editorcxx . . $ GoogleSuggest#m_editor.->heightcxx . . $ QWidget#height(455f465bc33b4cdf).())));
133 // m_popup->setFocus();
134 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).();
135 }
136
137 void GoogleSuggestcxx . . $ GoogleSuggest#::doneCompletioncxx . . $ GoogleSuggest#doneCompletion(49f6e7a06ebc5aa8).() {
138 m_timercxx . . $ GoogleSuggest#m_timer.->stopcxx . . $ QTimer#stop(49f6e7a06ebc5aa8).();
139 m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).();
140 m_editorcxx . . $ GoogleSuggest#m_editor.->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).();
141 QListWidgetItemcxx . . $ QListWidgetItem#* item = m_popupcxx . . $ GoogleSuggest#m_popup.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).currentItemcxx . . $ QListWidget#currentItem(a843e491ce3ee2b1).();
142
143 if (item != nullptr) {
144 m_editorcxx . . $ GoogleSuggest#m_editor.->submitcxx . . $ BaseLineEdit#submit(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(GOOGLE_SEARCH_URLcxx . . $ `src/librssguard/definitions/definitions.h:111:9`!).argcxx . . $ QString#arg(ad0bca07273edcc2).(item->textcxx . . $ QListWidgetItem#text(6ef7b6c27b00b43d).()));
145 }
146 }
147
148 void GoogleSuggestcxx . . $ GoogleSuggest#::preventSuggestcxx . . $ GoogleSuggest#preventSuggest(49f6e7a06ebc5aa8).() {
149 m_timercxx . . $ GoogleSuggest#m_timer.->stopcxx . . $ QTimer#stop(49f6e7a06ebc5aa8).();
150 }
151
152 void GoogleSuggestcxx . . $ GoogleSuggest#::autoSuggestcxx . . $ GoogleSuggest#autoSuggest(49f6e7a06ebc5aa8).() {
153 QUrlcxx . . $ QUrl# entered_url = QUrlcxx . . $ QUrl#QUrl(ea1f3831e370f1cb).(m_editorcxx . . $ GoogleSuggest#m_editor.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).());
154
155 // auto a = entered_url.isValid();
156 // auto b = entered_url.isLocalFile();
157 // auto c = entered_url.scheme();
158 // auto d = entered_url.host();
159
160 if (m_editorcxx . . $ GoogleSuggest#m_editor.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().sizecxx . . $ QString#size(6b0412d51016192f).() < 3 || m_editorcxx . . $ GoogleSuggest#m_editor.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("http")) ||
161 m_editorcxx . . $ GoogleSuggest#m_editor.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("www")) ||
162 (entered_url.isValidcxx . . $ QUrl#isValid(50ce9a9e25b4a850).() && !entered_url.isLocalFilecxx . . $ QUrl#isLocalFile(50ce9a9e25b4a850).() &&
163 (!entered_url.schemecxx . . $ QUrl#scheme(6ef7b6c27b00b43d).().isEmptycxx . . $ QString#isEmpty(3482b152b9333168).() || entered_url.hostcxx . . $ QUrl#host(9d7420bec8bfe6c9).().containscxx . . $ QString#contains(7cf081d1b6a1defd).(QL1Ccxx . . $ `src/librssguard/definitions/definitions.h:455:9`!('.'))))) {
164 // Do not suggest when entered URL.
165 preventSuggestcxx . . $ GoogleSuggest#preventSuggest(49f6e7a06ebc5aa8).();
166 return;
167 }
168
169 m_enteredTextcxx . . $ GoogleSuggest#m_enteredText. =cxx . . $ QString#`operator=`(49ea8750b4987a17). QUrlcxx . . $ QUrl#::toPercentEncodingcxx . . $ QUrl#toPercentEncoding(79ff4340e276d455).(m_editorcxx . . $ GoogleSuggest#m_editor.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).());
170 QStringcxx . . $ QString# url = QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(GOOGLE_SUGGEST_URLcxx . . $ `src/librssguard/definitions/definitions.h:112:9`!).argcxx . . $ QString#arg(ad0bca07273edcc2).(m_enteredTextcxx . . $ GoogleSuggest#m_enteredText.);
171
172 m_downloadercxx . . $ GoogleSuggest#m_downloader.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).downloadFilecxx . . $ Downloader#downloadFile(59dca4567f557537).(url);
173 }
174
175 void GoogleSuggestcxx . . $ GoogleSuggest#::handleNetworkDatacxx . . $ GoogleSuggest#handleNetworkData(377b816ef29857eb).(const QUrlcxx . . $ QUrl#& url,
176 QNetworkReplycxx . . $ QNetworkReply#::NetworkErrorcxx . . $ QNetworkReply#NetworkError# status,
177 int http_code,
178 const QByteArraycxx . . $ QByteArray#& contents) {
179 Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(url)
180 Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(http_code)
181
182 if (status == QNetworkReplycxx . . $ QNetworkReply#::NetworkErrorcxx . . $ QNetworkReply#NetworkError#::NoErrorcxx . . $ QNetworkReply#NoError.) {
183 const QTextCodeccxx . . $ QTextCodec#* c = QTextCodeccxx . . $ QTextCodec#::codecForUtfTextcxx . . $ QTextCodec#codecForUtfText(9094647911411626).(contents);
184
185 QDomDocumentcxx . . $ QDomDocument# xmlcxx . . $ QDomDocument#QDomDocument(49f6e7a06ebc5aa8).;
186 xml.setContentcxx . . $ QDomDocument#setContent(89d9162e2049454e).(ccxx . . $ QAnyStringView#QAnyStringView(132dd6869045752b).->toUnicodecxx . . $ QTextCodec#toUnicode(5b58488ffc88f4c0).(contents));
187 QDomNodeListcxx . . $ QDomNodeList# suggestions = xml.elementsByTagNamecxx . . $ QDomDocument#elementsByTagName(7405d4a50bfe2c93).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("suggestion"));
188 QStringListcxx . . $ QStringList# choicescxx . . $ QList#QList(ced63f7c635d850d).;
189
190 choices.reservecxx . . $ QList#reserve(35cb52607f6af42f).(suggestions.sizecxx . . $ QDomNodeList#size(455f465bc33b4cdf).());
191
192 for (int i = 0; i < suggestions.sizecxx . . $ QDomNodeList#size(455f465bc33b4cdf).(); i++) {
193 const QDomElementcxx . . $ QDomElement# element = suggestions.atcxx . . $ QDomNodeList#at(b6c6c70d5ef857b9).(i).toElementcxx . . $ QDomNode#toElement(654df8c29726cab1).();
194
195 if (element.attributescxx . . $ QDomElement#attributes(c1d04309e53c4e0).().containscxx . . $ QDomNamedNodeMap#contains(f3b39adf77d9c36c).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("data"))) {
196 choices.appendcxx . . $ QList#append(1262c8661f7a27a7).(element.attributecxx . . $ QDomElement#attribute(11b1083083847b8e).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("data")));
197 }
198 }
199
200 if (choices.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
201 choices.appendcxx . . $ QList#append(200d2dc08238a4ed).(m_enteredTextcxx . . $ GoogleSuggest#m_enteredText.);
202 }
203
204 showCompletioncxx . . $ GoogleSuggest#showCompletion(4c9f0945b8b27034).(choices);
205 }
206 }