Debian Codegraph @

src/librssguard/miscellaneous/application.cpp

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/miscellaneous/application.cpp`/
2
3 #include "miscellaneous/application.h"cxx . . $ `<file>/src/librssguard/miscellaneous/application.h`/
4
5 #include "3rd-party/boolinq/boolinq.h"cxx . . $ `<file>/src/librssguard/3rd-party/boolinq/boolinq.h`/
6
7 #if defined(SYSTEM_SQLITE3cxx . . $ `<built-in>:527:9`!)
8 #include <sqlite3.h>
9 #else
10 #include "3rd-party/sqlite/sqlite3.h"
11 #endif
12
13 #include "core/feedsmodel.h"cxx . . $ `<file>/src/librssguard/core/feedsmodel.h`/
14 #include "dynamic-shortcuts/dynamicshortcuts.h"cxx . . $ `<file>/src/librssguard/dynamic-shortcuts/dynamicshortcuts.h`/
15 #include "exceptions/applicationexception.h"cxx . . $ `<file>/src/librssguard/exceptions/applicationexception.h`/
16 #include "gui/dialogs/formabout.h"cxx . . $ `<file>/src/librssguard/gui/dialogs/formabout.h`/
17 #include "gui/dialogs/formlog.h"cxx . . $ `<file>/src/librssguard/gui/dialogs/formlog.h`/
18 #include "gui/dialogs/formmain.h"cxx . . $ `<file>/src/librssguard/gui/dialogs/formmain.h`/
19 #include "gui/feedmessageviewer.h"cxx . . $ `<file>/src/librssguard/gui/feedmessageviewer.h`/
20 #include "gui/messagebox.h"cxx . . $ `<file>/src/librssguard/gui/messagebox.h`/
21 #include "gui/messagesview.h"cxx . . $ `<file>/src/librssguard/gui/messagesview.h`/
22 #include "gui/notifications/toastnotificationsmanager.h"cxx . . $ `<file>/src/librssguard/gui/notifications/toastnotificationsmanager.h`/
23 #include "gui/toolbars/feedstoolbar.h"cxx . . $ `<file>/src/librssguard/gui/toolbars/feedstoolbar.h`/
24 #include "gui/toolbars/messagestoolbar.h"cxx . . $ `<file>/src/librssguard/gui/toolbars/messagestoolbar.h`/
25 #include "gui/toolbars/statusbar.h"cxx . . $ `<file>/src/librssguard/gui/toolbars/statusbar.h`/
26 #include "gui/webviewers/qtextbrowser/textbrowserviewer.h"cxx . . $ `<file>/src/librssguard/gui/webviewers/qtextbrowser/textbrowserviewer.h`/
27 #include "miscellaneous/feedreader.h"cxx . . $ `<file>/src/librssguard/miscellaneous/feedreader.h`/
28 #include "miscellaneous/iconfactory.h"cxx . . $ `<file>/src/librssguard/miscellaneous/iconfactory.h`/
29 #include "miscellaneous/iofactory.h"cxx . . $ `<file>/src/librssguard/miscellaneous/iofactory.h`/
30 #include "miscellaneous/mutex.h"cxx . . $ `<file>/src/librssguard/miscellaneous/mutex.h`/
31 #include "miscellaneous/notificationfactory.h"cxx . . $ `<file>/src/librssguard/miscellaneous/notificationfactory.h`/
32 #include "miscellaneous/settings.h"cxx . . $ `<file>/src/librssguard/miscellaneous/settings.h`/
33 #include "network-web/adblock/adblockicon.h"cxx . . $ `<file>/src/librssguard/network-web/adblock/adblockicon.h`/
34 #include "network-web/adblock/adblockmanager.h"cxx . . $ `<file>/src/librssguard/network-web/adblock/adblockmanager.h`/
35 #include "network-web/webfactory.h"cxx . . $ `<file>/src/librssguard/network-web/webfactory.h`/
36 #include "services/abstract/serviceroot.h"cxx . . $ `<file>/src/librssguard/services/abstract/serviceroot.h`/
37
38 #include <iostream>
39
40 #include <QLoggingCategory>
41 #include <QPainter>
42 #include <QPainterPath>
43 #include <QProcess>
44 #include <QSessionManager>
45 #include <QSslSocket>
46 #include <QThreadPool>
47 #include <QTimer>
48 #include <QVersionNumber>
49
50 #if defined(NO_LITEcxx . . $ `<built-in>:500:9`!) && defined(MEDIAPLAYER_LIBMPV_OPENGLcxx . . $ `<built-in>:499:9`!)
51 #include <QQuickWindow>
52 #endif
53
54 #if defined(Q_OS_UNIXcxx . . $ `/usr/include/x86_64-linux-gnu/qt6/QtCore/qsystemdetection.h:149:11`!) && !defined(Q_OS_MACOS)
55 #include <QDBusConnection>
56 #include <QDBusMessage>
57 #endif
58
59 #if defined(NO_LITEcxx . . $ `<built-in>:500:9`!)
60 #include "gui/webviewers/webengine/webengineviewer.h"cxx . . $ `<file>/src/librssguard/gui/webviewers/webengine/webengineviewer.h`/ // WebEngine-based web browsing.
61 #include "network-web/webengine/networkurlinterceptor.h"cxx . . $ `<file>/src/librssguard/network-web/webengine/networkurlinterceptor.h`/
62
63 #if QT_VERSION_MAJORcxx . . $ `<external>/9758848313111604122/qconfig.h:67:9`! == 6
64 #include <QWebEngineDownloadRequest>
65 #else
66 #include <QWebEngineDownloadItem>
67 #endif
68
69 #include <QWebEngineProfile>
70 #include <QWebEngineSettings>
71 #endif
72
73 #if defined(Q_OS_WIN)
74 #if QT_VERSION_MAJOR == 5
75 #include <QtPlatformHeaders/QWindowsWindowFunctions>
76 #else
77 #include <QWindow>
78 #include <QtGui/qpa/qplatformwindow_p.h>
79 #endif
80 #endif
81
82 #if defined(Q_OS_WIN)
83 #include <ShObjIdl.h>
84
85 #if QT_VERSION_MAJOR == 5
86 #include <QtWinExtras/QtWin>
87 #endif
88 #endif
89
90 Applicationcxx . . $ Application#::Applicationcxx . . $ Application#Application(7015ac71591e1114).(const QStringcxx . . $ QString#& id, int& argc, char** argv, const QStringListcxx . . $ QStringList#& raw_cli_args)
91 : SingleApplicationcxx . . $ SingleApplication#(id, argc, argv), m_rawCliArgscxx . . $ Application#m_rawCliArgs.(raw_cli_args), m_updateFeedsLockcxx . . $ Application#m_updateFeedsLock.(new Mutexcxx . . $ Mutex#Mutex(749de1b6ae65bddd).()) {
92
93 #if defined(NO_LITEcxx . . $ `<built-in>:500:9`!) && defined(MEDIAPLAYER_LIBMPV_OPENGLcxx . . $ `<built-in>:499:9`!)
94 // HACK: Force rendering system to use OpenGL backend.
95 #if QT_VERSION_MAJORcxx . . $ `<external>/9758848313111604122/qconfig.h:67:9`! < 6
96 QQuickWindow::setSceneGraphBackend(QSGRendererInterface::GraphicsApi::OpenGL);
97 #else
98 QQuickWindowcxx . . $ QQuickWindow#::setGraphicsApicxx . . $ QQuickWindow#setGraphicsApi(15294bac4ba072b0).(QSGRendererInterfacecxx . . $ QSGRendererInterface#::GraphicsApicxx . . $ QSGRendererInterface#GraphicsApi#::OpenGLcxx . . $ QSGRendererInterface#OpenGL.);
99 #endif
100 #endif
101
102 QStringcxx . . $ QString# custom_uacxx . . $ QString#QString(ced63f7c635d850d).;
103
104 parseCmdArgumentsFromMyInstancecxx . . $ Application#parseCmdArgumentsFromMyInstance(f38fcaadfe6bbf92).(raw_cli_args, custom_ua);
105
106 qInstallMessageHandlercxx . . $ qInstallMessageHandler(fc1e73ff530860ea).(performLoggingcxx . . $ Application#performLogging(9b2ea6dfbcd5bc9f).);
107
108 m_feedReadercxx . . $ Application#m_feedReader. = nullptr;
109 m_quitLogicDonecxx . . $ Application#m_quitLogicDone. = false;
110 m_mainFormcxx . . $ Application#m_mainForm. = nullptr;
111 m_logFormcxx . . $ Application#m_logForm. = nullptr;
112 m_trayIconcxx . . $ Application#m_trayIcon. = nullptr;
113 m_settingscxx . . $ Application#m_settings. = Settingscxx . . $ Settings#::setupSettingscxx . . $ Settings#setupSettings(a902918610b7a2d6).(this);
114
115 #if defined(NO_LITEcxx . . $ `<built-in>:500:9`!)
116 if (!m_forcedLitecxx . . $ Application#m_forcedLite. && qEnvironmentVariableIsEmptycxx . . $ qEnvironmentVariableIsEmpty(ab1b0059a8051c5c).("QTWEBENGINE_CHROMIUM_FLAGS")) {
117 QStringcxx . . $ QString# flags = settingscxx . . $ Application#settings(951936487a2d9252).()->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(Browser), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(Browser::WebEngineChromiumFlags)).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).();
118
119 // NOTE: We do not want sandbox on Linux builds.
120 #if defined(Q_OS_LINUXcxx . . $ `/usr/include/x86_64-linux-gnu/qt6/QtCore/qsystemdetection.h:100:11`!) && !defined(IS_FLATPAK_BUILD)
121 if (!flags.containscxx . . $ QString#contains(8cce4688c16f48f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("--no-sandbox"))) {
122 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). "Appending --no-sandbox to QTWEBENGINE_CHROMIUM_FLAGS.";
123 flags.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(" --no-sandbox"));
124 }
125 #endif
126
127 qputenvcxx . . $ qputenv(ddaf2f46d2309f82).("QTWEBENGINE_CHROMIUM_FLAGS", flagscxx . . $ QByteArrayView#QByteArrayView(80d8335016fb1bdc)..toLocal8Bitcxx . . $ QString#toLocal8Bit(ef52b713090bc85a).());
128 }
129 #endif
130
131 m_localizationcxx . . $ Application#m_localization. = new Localizationcxx . . $ Localization#(this);
132
133 m_localizationcxx . . $ Application#m_localization.->loadActiveLanguagecxx . . $ Localization#loadActiveLanguage(49f6e7a06ebc5aa8).();
134
135 m_nodejscxx . . $ Application#m_nodejs. = new NodeJscxx . . $ NodeJs#(m_settingscxx . . $ Application#m_settings., this);
136 m_workHorsePoolcxx . . $ Application#m_workHorsePool. = new QThreadPoolcxx . . $ QThreadPool#QThreadPool(749de1b6ae65bddd).(this);
137 m_webFactorycxx . . $ Application#m_webFactory. = new WebFactorycxx . . $ WebFactory#WebFactory(749de1b6ae65bddd).(this);
138 m_systemcxx . . $ Application#m_system. = new SystemFactorycxx . . $ SystemFactory#(this);
139 m_skinscxx . . $ Application#m_skins. = new SkinFactorycxx . . $ SkinFactory#(this);
140 m_iconscxx . . $ Application#m_icons. = new IconFactorycxx . . $ IconFactory#IconFactory(749de1b6ae65bddd).(this);
141 m_databasecxx . . $ Application#m_database. = new DatabaseFactorycxx . . $ DatabaseFactory#(this);
142 m_downloadManagercxx . . $ Application#m_downloadManager. = nullptr;
143 m_notificationscxx . . $ Application#m_notifications. = new NotificationFactorycxx . . $ NotificationFactory#NotificationFactory(749de1b6ae65bddd).(this);
144 m_toastNotificationscxx . . $ Application#m_toastNotifications. =
145 (!isWaylandcxx . . $ Application#isWayland(50ce9a9e25b4a850).() && m_notificationscxx . . $ Application#m_notifications.->useToastNotificationscxx . . $ NotificationFactory#useToastNotifications(50ce9a9e25b4a850).()) ? new ToastNotificationsManagercxx . . $ ToastNotificationsManager#ToastNotificationsManager(749de1b6ae65bddd).(this) : nullptr;
146 m_shouldRestartcxx . . $ Application#m_shouldRestart. = false;
147
148 #if defined(Q_OS_WIN)
149 m_windowsTaskBar = nullptr;
150
151 const GUID qIID_ITaskbarList4 = {0xc43dc798, 0x95d1, 0x4bea, {0x90, 0x30, 0xbb, 0x99, 0xe2, 0x98, 0x3a, 0x1a}};
152 HRESULT task_result = CoCreateInstance(CLSID_TaskbarList,
153 nullptr,
154 CLSCTX_INPROC_SERVER,
155 qIID_ITaskbarList4,
156 reinterpret_cast<void**>(&m_windowsTaskBar));
157
158 if (FAILED(task_result)) {
159 qCriticalNN << LOGSEC_CORE << "Taskbar integration for Windows failed to initialize with HRESULT:"
160 << QUOTE_W_SPACE_DOT(task_result);
161
162 m_windowsTaskBar = nullptr;
163 }
164 else if (FAILED(m_windowsTaskBar->HrInit())) {
165 qCriticalNN << LOGSEC_CORE << "Taskbar integration for Windows failed to initialize with inner HRESULT:"
166 << QUOTE_W_SPACE_DOT(m_windowsTaskBar->HrInit());
167
168 m_windowsTaskBar->Release();
169 m_windowsTaskBar = nullptr;
170 }
171 #endif
172
173 determineFirstRunscxx . . $ Application#determineFirstRuns(49f6e7a06ebc5aa8).();
174
175 // Add an extra path for non-system icon themes and set current icon theme
176 // and skin.
177 m_iconscxx . . $ Application#m_icons.->setupSearchPathscxx . . $ IconFactory#setupSearchPaths(49f6e7a06ebc5aa8).();
178 m_iconscxx . . $ Application#m_icons.->loadCurrentIconThemecxx . . $ IconFactory#loadCurrentIconTheme(49f6e7a06ebc5aa8).();
179
180 reloadCurrentSkincxx . . $ Application#reloadCurrentSkin(b45ddcbc8423892c).(false);
181 setupFontAntialiasingcxx . . $ Application#setupFontAntialiasing(49f6e7a06ebc5aa8).();
182
183 if (m_toastNotificationscxx . . $ Application#m_toastNotifications. != nullptr) {
184 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_toastNotificationscxx . . $ Application#m_toastNotifications.,
185 &ToastNotificationsManagercxx . . $ ToastNotificationsManager#::openingArticleInArticleListRequestedcxx . . $ ToastNotificationsManager#openingArticleInArticleListRequested(12e982556975822d).,
186 this,
187 &Applicationcxx . . $ Application#::loadMessageToFeedAndArticleListcxx . . $ Application#loadMessageToFeedAndArticleList(12e982556975822d).);
188 }
189
190 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(this, &Applicationcxx . . $ Application#::aboutToQuitcxx . . $ QCoreApplication#aboutToQuit(10ef0bf3b6dd28bb)., this, &Applicationcxx . . $ Application#::onAboutToQuitcxx . . $ Application#onAboutToQuit(49f6e7a06ebc5aa8).);
191 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(this, &Applicationcxx . . $ Application#::commitDataRequestcxx . . $ QGuiApplication#commitDataRequest(2966477dbe58cfb1)., this, &Applicationcxx . . $ Application#::onCommitDatacxx . . $ Application#onCommitData(2966477dbe58cfb1).);
192 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(this, &Applicationcxx . . $ Application#::saveStateRequestcxx . . $ QGuiApplication#saveStateRequest(2966477dbe58cfb1)., this, &Applicationcxx . . $ Application#::onSaveStatecxx . . $ Application#onSaveState(2966477dbe58cfb1).);
193
194 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_nodejscxx . . $ Application#m_nodejs., &NodeJscxx . . $ NodeJs#::packageErrorcxx . . $ NodeJs#packageError(c66daf909bbebbbc)., this, &Applicationcxx . . $ Application#::onNodeJsPackageUpdateErrorcxx . . $ Application#onNodeJsPackageUpdateError(c66daf909bbebbbc).);
195 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_nodejscxx . . $ Application#m_nodejs., &NodeJscxx . . $ NodeJs#::packageInstalledUpdatedcxx . . $ NodeJs#packageInstalledUpdated(34ac6af3085f0564)., this, &Applicationcxx . . $ Application#::onNodeJsPackageInstalledcxx . . $ Application#onNodeJsPackageInstalled(34ac6af3085f0564).);
196
197 #if defined(Q_OS_UNIXcxx . . $ `/usr/include/x86_64-linux-gnu/qt6/QtCore/qsystemdetection.h:149:11`!) && !defined(Q_OS_MACOS)
198 QStringcxx . . $ QString# app_dir = QStringcxx . . $ QString#::fromLocal8Bitcxx . . $ QString#fromLocal8Bit(4e15edac36d215be).(qgetenvcxx . . $ qgetenv(531409eeffcde449).("APPDIR"));
199
200 if (!app_dir.isEmptycxx . . $ QString#isEmpty(3482b152b9333168).()) {
201 bool success = qputenvcxx . . $ qputenv(ddaf2f46d2309f82).("GST_PLUGIN_SYSTEM_PATH_1_0",
202 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("%1/usr/lib/gstreamer-1.0:%2")
203 .argcxx . . $ QString#arg(89b093bd48b6d6c0).(app_dir, QStringcxx . . $ QString#::fromLocal8Bitcxx . . $ QString#fromLocal8Bit(4e15edac36d215be).(qgetenvcxx . . $ qgetenv(531409eeffcde449).("GST_PLUGIN_SYSTEM_PATH_1_0")))
204 .toLocal8Bitcxx . . $ QString#toLocal8Bit(7c2073558a834e49).());
205 success = qputenvcxx . . $ qputenv(ddaf2f46d2309f82).("GST_PLUGIN_SCANNER_1_0",
206 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("%1/usr/lib/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner").argcxx . . $ QString#arg(ad0bca07273edcc2).(app_dir).toLocal8Bitcxx . . $ QString#toLocal8Bit(7c2073558a834e49).()) &&
207 success;
208 if (!success) {
209 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). "Unable to set up GStreamer environment.";
210 }
211 }
212 #endif
213
214 if (!custom_ua.isEmptycxx . . $ QString#isEmpty(3482b152b9333168).()) {
215 m_webFactorycxx . . $ Application#m_webFactory.->setCustomUserAgentcxx . . $ WebFactory#setCustomUserAgent(3520e46b33348bf6).(custom_ua);
216 }
217 else {
218 custom_ua =cxx . . $ QString#`operator=`(4f35bf974e7f8568). qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(Network), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(Network::CustomUserAgent)).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).();
219 m_webFactorycxx . . $ Application#m_webFactory.->setCustomUserAgentcxx . . $ WebFactory#setCustomUserAgent(3520e46b33348bf6).(custom_ua);
220 }
221
222 #if defined(NO_LITEcxx . . $ `<built-in>:500:9`!)
223 m_webFactorycxx . . $ Application#m_webFactory.->urlIinterceptorcxx . . $ WebFactory#urlIinterceptor(f6291ca875afd988).()->loadcxx . . $ NetworkUrlInterceptor#load(49f6e7a06ebc5aa8).();
224
225 QStringcxx . . $ QString# engine_cache_foldercxx . . $ QString#QString(ced63f7c635d850d).;
226 QStringcxx . . $ QString# engine_storage_foldercxx . . $ QString#QString(ced63f7c635d850d).;
227
228 #if defined(NDEBUGcxx . . $ `<built-in>:531:9`!)
229 engine_cache_folder =cxx . . $ QString#`operator=`(4f35bf974e7f8568). cacheFoldercxx . . $ Application#cacheFolder(4365c3963150523e).();
230 engine_storage_folder =cxx . . $ QString#`operator=`(4f35bf974e7f8568). userDataFoldercxx . . $ Application#userDataFolder(4365c3963150523e).();
231 #else
232 engine_cache_folder = QStandardPaths::writableLocation(QStandardPaths::StandardLocation::TempLocation) +
233 QDir::separator() + QSL(APP_NAME) + QDir::separator() + QSL("cache");
234 engine_storage_folder = QStandardPaths::writableLocation(QStandardPaths::StandardLocation::TempLocation) +
235 QDir::separator() + QSL(APP_NAME) + QDir::separator() + QSL("storage");
236 #endif
237
238 m_webFactorycxx . . $ Application#m_webFactory.->engineProfilecxx . . $ WebFactory#engineProfile(294eeb6492764e8c).()->setCachePathcxx . . $ QWebEngineProfile#setCachePath(3520e46b33348bf6).(engine_cache_folder + QDircxx . . $ QDir#::separatorcxx . . $ QDir#separator(44eb9225326fcbf5).() + QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("web") + QDircxx . . $ QDir#::separatorcxx . . $ QDir#separator(44eb9225326fcbf5).() +
239 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("cache"));
240 m_webFactorycxx . . $ Application#m_webFactory.->engineProfilecxx . . $ WebFactory#engineProfile(294eeb6492764e8c).()->setPersistentStoragePathcxx . . $ QWebEngineProfile#setPersistentStoragePath(3520e46b33348bf6).(engine_storage_folder + QDircxx . . $ QDir#::separatorcxx . . $ QDir#separator(44eb9225326fcbf5).() + QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("web") +
241 QDircxx . . $ QDir#::separatorcxx . . $ QDir#separator(44eb9225326fcbf5).() + QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("storage"));
242 m_webFactorycxx . . $ Application#m_webFactory.->engineProfilecxx . . $ WebFactory#engineProfile(294eeb6492764e8c).()->setHttpCacheTypecxx . . $ QWebEngineProfile#setHttpCacheType(26a1dfbfff290c7d).(QWebEngineProfilecxx . . $ QWebEngineProfile#::HttpCacheTypecxx . . $ QWebEngineProfile#HttpCacheType#::DiskHttpCachecxx . . $ QWebEngineProfile#DiskHttpCache.);
243
244 m_webFactorycxx . . $ Application#m_webFactory.->loadCustomCsscxx . . $ WebFactory#loadCustomCss(7df51288a9ebd664).(userDataFoldercxx . . $ Application#userDataFolder(4365c3963150523e).() + QDircxx . . $ QDir#::separatorcxx . . $ QDir#separator(44eb9225326fcbf5).() + QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("web") + QDircxx . . $ QDir#::separatorcxx . . $ QDir#separator(44eb9225326fcbf5).() +
245 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("user-styles.css"));
246
247 if (custom_ua.isEmptycxx . . $ QString#isEmpty(3482b152b9333168).()) {
248 m_webFactorycxx . . $ Application#m_webFactory.->engineProfilecxx . . $ WebFactory#engineProfile(294eeb6492764e8c).()->setHttpUserAgentcxx . . $ QWebEngineProfile#setHttpUserAgent(3520e46b33348bf6).(QStringcxx . . $ QString#QString(45672f3c6961a244).(HTTP_COMPLETE_USERAGENTcxx . . $ `src/librssguard/definitions/definitions.h:196:9`!));
249 }
250 else {
251 m_webFactorycxx . . $ Application#m_webFactory.->engineProfilecxx . . $ WebFactory#engineProfile(294eeb6492764e8c).()->setHttpUserAgentcxx . . $ QWebEngineProfile#setHttpUserAgent(3520e46b33348bf6).(custom_ua);
252 }
253
254 qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_NETWORKcxx . . $ `src/librssguard/definitions/definitions.h:168:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Persistent web data storage path:"
255 <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(m_webFactory->engineProfile()->persistentStoragePath());
256
257 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_webFactorycxx . . $ Application#m_webFactory.->engineProfilecxx . . $ WebFactory#engineProfile(294eeb6492764e8c).(), &QWebEngineProfilecxx . . $ QWebEngineProfile#::downloadRequestedcxx . . $ QWebEngineProfile#downloadRequested(41198ee43c7b8fa9)., this, &Applicationcxx . . $ Application#::downloadRequestedcxx . . $ Application#downloadRequested(41198ee43c7b8fa9).);
258 #endif
259
260 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_webFactorycxx . . $ Application#m_webFactory.->adBlockcxx . . $ WebFactory#adBlock(dd9ae43777736cac).(), &AdBlockManagercxx . . $ AdBlockManager#::processTerminatedcxx . . $ AdBlockManager#processTerminated(49f6e7a06ebc5aa8)., this, &Applicationcxx . . $ Application#::onAdBlockFailurecxx . . $ Application#onAdBlockFailure(49f6e7a06ebc5aa8).);
261
262 QTimercxx . . $ QTimer#::singleShotcxx . . $ QTimer#singleShot(aa6a4c6cfc6f625a).(3000, this, [=]() {
263 try {
264 m_webFactorycxx . . $ Application#m_webFactory.->adBlockcxx . . $ WebFactory#adBlock(dd9ae43777736cac).()
265 ->setEnabledcxx . . $ AdBlockManager#setEnabled(b45ddcbc8423892c).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(AdBlock), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(AdBlock::AdBlockEnabled)).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).());
266 }
267 catch (...) {
268 onAdBlockFailurecxx . . $ Application#onAdBlockFailure(49f6e7a06ebc5aa8).();
269 }
270 });
271
272 m_webFactorycxx . . $ Application#m_webFactory.->updateProxycxx . . $ WebFactory#updateProxy(49f6e7a06ebc5aa8).();
273
274 if (isFirstRuncxx . . $ Application#isFirstRun(50ce9a9e25b4a850).()) {
275 m_notificationscxx . . $ Application#m_notifications.->savecxx . . $ NotificationFactory#save(2e6f17f64b96dd1f).({cxx . . $ QList#QList(b6da5b9a9f304025).Notificationcxx . . $ Notification#Notification(113beba568247365).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::GeneralEventcxx . . $ Notification#Event#GeneralEvent., true),
276 Notificationcxx . . $ Notification#Notification(113beba568247365).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::NewUnreadArticlesFetchedcxx . . $ Notification#Event#NewUnreadArticlesFetched.,
277 true,
278 false,
279 true,
280 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("%1/notify.wav").argcxx . . $ QString#arg(ad0bca07273edcc2).(SOUNDS_BUILTIN_DIRECTORYcxx . . $ `src/librssguard/definitions/definitions.h:56:9`!)),
281 Notificationcxx . . $ Notification#Notification(113beba568247365).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::NewAppVersionAvailablecxx . . $ Notification#Event#NewAppVersionAvailable., true),
282 Notificationcxx . . $ Notification#Notification(113beba568247365).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::LoginFailurecxx . . $ Notification#Event#LoginFailure., true),
283 Notificationcxx . . $ Notification#Notification(113beba568247365).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::ArticlesFetchingErrorcxx . . $ Notification#Event#ArticlesFetchingError., true),
284 Notificationcxx . . $ Notification#Notification(113beba568247365).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::NodePackageUpdatedcxx . . $ Notification#Event#NodePackageUpdated., true),
285 Notificationcxx . . $ Notification#Notification(113beba568247365).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::NodePackageFailedToUpdatecxx . . $ Notification#Event#NodePackageFailedToUpdate., true)},
286 settingscxx . . $ Application#settings(951936487a2d9252).());
287 }
288 else {
289 m_notificationscxx . . $ Application#m_notifications.->loadcxx . . $ NotificationFactory#load(2321cafd49114dd8).(settingscxx . . $ Application#settings(951936487a2d9252).());
290 }
291
292 QTimercxx . . $ QTimer#::singleShotcxx . . $ QTimer#singleShot(aa6a4c6cfc6f625a).(15000, systemcxx . . $ Application#system(4ec014040ff5a0f7).(), &SystemFactorycxx . . $ SystemFactory#::checkForUpdatesOnStartupcxx . . $ SystemFactory#checkForUpdatesOnStartup(49f6e7a06ebc5aa8).);
293
294 setupWorkHorsePoolcxx . . $ Application#setupWorkHorsePool(49f6e7a06ebc5aa8).();
295
296 #if QT_VERSIONcxx . . $ `<external>/3898848398875472725/qtversionchecks.h:17:9`! >= 0x060100 // Qt >= 6.1.0
297 QSslSocketcxx . . $ QSslSocket#::setActiveBackendcxx . . $ QSslSocket#setActiveBackend(e1defb592416720d).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("openssl"));
298 #endif
299
300 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). "Platform:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(QGuiApplication::platformName());
301 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). "SQLite version:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(SQLITE_VERSIONcxx . . $ `<external>/2400532043262193228/sqlite3.h:149:9`!);
302
303 #if QT_VERSIONcxx . . $ `<external>/3898848398875472725/qtversionchecks.h:17:9`! >= 0x060100 // Qt >= 6.1.0
304 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). "OpenSSL backends:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(QSslSocket::availableBackends());
305 #endif
306
307 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). "OpenSSL version:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(QSslSocket::sslLibraryVersionString());
308 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). "OpenSSL supported:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(QSslSocket::supportsSsl());
309 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). "Global thread pool has"
310 <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). NONQUOTE_W_SPACEcxx . . $ `src/librssguard/definitions/definitions.h:429:9`!(QThreadPool::globalInstance()->maxThreadCount()) <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "threads.";
311 }
312
313 Applicationcxx . . $ Application#::~cxx . . $ Application#`~Application`(ced63f7c635d850d).Applicationcxx . . $ Application#() {
314 #if defined(Q_OS_WIN)
315 if (m_windowsTaskBar != nullptr) {
316 m_windowsTaskBar->Release();
317 }
318 #endif
319
320 // Disable logging into the form.
321 m_logFormcxx . . $ Application#m_logForm. = nullptr;
322
323 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). "Destroying Application instance.";
324 }
325
326 QStringcxx . . $ QString# s_customLogFilecxx . . $ s_customLogFile. = QStringcxx . . $ QString#QString(ced63f7c635d850d).();
327 bool s_disableDebugcxx . . $ s_disableDebug. = false;
328
329 void Applicationcxx . . $ Application#::performLoggingcxx . . $ Application#performLogging(9b2ea6dfbcd5bc9f).(QtMsgTypecxx . . $ QtMsgType# type, const QMessageLogContextcxx . . $ QMessageLogContext#& context, const QStringcxx . . $ QString#& msg) {
330 #ifndef QT_NO_DEBUG_OUTPUT
331 QStringcxx . . $ QString# console_message = qFormatLogMessagecxx . . $ qFormatLogMessage(efdd3a4af0d4035).(type, context, msg);
332
333 if (!s_disableDebugcxx . . $ s_disableDebug.) {
334 stdcxx . . $ std/::cerrcxx . . $ std/cerr. <<cxx . . $ std/`operator<<`(88df5bef833f7f83). console_message.toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).;
335 }
336
337 if (!s_customLogFilecxx . . $ s_customLogFile..isEmptycxx . . $ QString#isEmpty(3482b152b9333168).()) {
338 static QFilecxx . . $ QFile#* log_file = new QFilecxx . . $ QFile#(s_customLogFilecxx . . $ s_customLogFile.);
339
340 if (log_file->isOpencxx . . $ QIODevice#isOpen(50ce9a9e25b4a850).() || log_file->opencxx . . $ QFile#open(da34f43c1eae080c).(QFilecxx . . $ QFile#::OpenModeFlagcxx . . $ QIODeviceBase#OpenModeFlag#::Appendcxx . . $ QIODeviceBase#Append. |cxx . . $ `operator|`(64b8367948668350). QFilecxx . . $ QFile#::OpenModeFlagcxx . . $ QIODeviceBase#OpenModeFlag#::Unbufferedcxx . . $ QIODeviceBase#Unbuffered.)) {
341 log_file->writecxx . . $ QIODevice#write(4ee2750a0be83987).(console_message.toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).());
342 log_file->writecxx . . $ QIODevice#write(4ee2750a0be83987).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("\r\n").toUtf8cxx . . $ QString#toUtf8(7c2073558a834e49).());
343 }
344 }
345
346 if (qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`! != nullptr) {
347 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->displayLogMessageInDialogcxx . . $ Application#displayLogMessageInDialog(3520e46b33348bf6).(console_message);
348 }
349 if (type == QtMsgTypecxx . . $ QtMsgType#::QtFatalMsgcxx . . $ QtFatalMsg.) {
350 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->exitcxx . . $ QCoreApplication#exit(d4f767463ce0a6b3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!);
351 }
352 #else
353 Q_UNUSED(type)
354 Q_UNUSED(context)
355 Q_UNUSED(msg)
356 #endif
357 }
358
359 void Applicationcxx . . $ Application#::reactOnForeignNotificationscxx . . $ Application#reactOnForeignNotifications(49f6e7a06ebc5aa8).() {
360 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(this, &Applicationcxx . . $ Application#::messageReceivedcxx . . $ SingleApplication#messageReceived(3520e46b33348bf6)., this, &Applicationcxx . . $ Application#::parseCmdArgumentsFromOtherInstancecxx . . $ Application#parseCmdArgumentsFromOtherInstance(3520e46b33348bf6).);
361 }
362
363 void Applicationcxx . . $ Application#::hideOrShowMainFormcxx . . $ Application#hideOrShowMainForm(49f6e7a06ebc5aa8).() {
364 // Display main window.
365 if (qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(GUI), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(GUI::MainWindowStartsHidden)).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()) {
366 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). "Hiding the main window when the application is starting.";
367 mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->switchVisibilitycxx . . $ FormMain#switchVisibility(b45ddcbc8423892c).(true);
368 }
369 else {
370 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). "Showing the main window when the application is starting.";
371 mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).();
372 }
373 }
374
375 void Applicationcxx . . $ Application#::loadDynamicShortcutscxx . . $ Application#loadDynamicShortcuts(49f6e7a06ebc5aa8).() {
376 DynamicShortcutscxx . . $ DynamicShortcuts#::loadcxx . . $ DynamicShortcuts#load(f6e011d6f114740d).(userAndExtraActionscxx . . $ Application#userAndExtraActions(c4b3bc0793dee689).());
377 }
378
379 void Applicationcxx . . $ Application#::offerPollscxx . . $ Application#offerPolls(83f5f38750778ac8).() const {
380 /*
381 if (isFirstRunCurrentVersion()) {
382 qApp->web()->openUrlInExternalBrowser(QSL("https://forms.gle/3CZm95W6vrBLfi5K9"));
383 }
384 */
385 }
386
387 void Applicationcxx . . $ Application#::offerChangescxx . . $ Application#offerChanges(83f5f38750778ac8).() const {
388 if (isFirstRunCurrentVersioncxx . . $ Application#isFirstRunCurrentVersion(50ce9a9e25b4a850).()) {
389 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::GeneralEventcxx . . $ Notification#Event#GeneralEvent.,
390 {cxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).trcxx . . $ Application#tr(75d9f1c324b4579d).("Welcome"),
391 trcxx . . $ Application#tr(75d9f1c324b4579d).("Welcome to %1.\n\nPlease, check NEW stuff included in this\n"
392 "version by clicking this popup notification.")
393 .argcxx . . $ QString#arg(ad0bca07273edcc2).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(APP_LONG_NAMEcxx . . $ `<built-in>:484:9`!)),
394 QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Informationcxx . . $ QSystemTrayIcon#Information.},
395 {cxx . . $ GuiMessageDestination#GuiMessageDestination(9e113dd3a0d25c95).},
396 {cxx . . $ GuiAction#GuiAction(7d816f6132cf943f).trcxx . . $ Application#tr(75d9f1c324b4579d).("Go to changelog"), [cxx . . $ std/function#function(bdc3712e480e4d04).] {
397 FormAboutcxx . . $ FormAbout#FormAbout(5ec17d2b6ec66c3a).(true, qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()).execcxx . . $ QDialog#exec(b126dc7c1de90089).();
398 }});
399 }
400 }
401
402 bool Applicationcxx . . $ Application#::isAlreadyRunningcxx . . $ Application#isAlreadyRunning(c9857a73d68e59ba).() {
403 return m_allowMultipleInstancescxx . . $ Application#m_allowMultipleInstances.
404 ? false
405 : sendMessagecxx . . $ SingleApplication#sendMessage(e1defb592416720d).((QStringListcxx . . $ QList#QList(ced63f7c635d850d).() <<cxx . . $ QList#`operator<<`(457f2c2a0db63381). QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("-%1").argcxx . . $ QString#arg(ad0bca07273edcc2).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_IS_RUNNINGcxx . . $ `src/librssguard/definitions/definitions.h:153:9`!)) <<cxx . . $ QList#`operator<<`(15ec5f0e45a4f6d6). Applicationcxx . . $ Application#::argumentscxx . . $ QCoreApplication#arguments(346f0183abd8f69).().midcxx . . $ QList#mid(fd9a63c599b3e300).(1))
406 .joincxx . . $ QListSpecialMethods#join(5555d9024dcf93fb).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(ARGUMENTS_LIST_SEPARATORcxx . . $ `src/librssguard/definitions/definitions.h:57:9`!)));
407 }
408
409 QStringListcxx . . $ QStringList# Applicationcxx . . $ Application#::builtinSoundscxx . . $ Application#builtinSounds(2b25566bdf736d18).() const {
410 auto builtin_sounds = QDircxx . . $ QDir#QDir(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(SOUNDS_BUILTIN_DIRECTORYcxx . . $ `src/librssguard/definitions/definitions.h:56:9`!)).entryInfoListcxx . . $ QDir#entryInfoList(c85cb969d00e05df).(QDircxx . . $ QFlags#QFlags(93d577a3e9528307).::Filtercxx . . $ QDir#Filter#::Filescxx . . $ QDir#Files., QDircxx . . $ QFlags#QFlags(93d577a3e9528307).::SortFlagcxx . . $ QDir#SortFlag#::Namecxx . . $ QDir#Name.);
411 auto iter = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(builtin_sounds)
412 .selectcxx . . $ boolinq/Linq#select(a3f5bd4cd382e0ee).([](const QFileInfocxx . . $ QFileInfo#& i) {
413 return i.absoluteFilePathcxx . . $ QFileInfo#absoluteFilePath(6ef7b6c27b00b43d).();
414 })
415 .toStdListcxx . . $ boolinq/Linq#toStdList(2989115be80c3067).();
416 auto descs = FROM_STD_LISTcxx . . $ `src/librssguard/definitions/definitions.h:405:9`!(QStringList, iter);
417
418 return descs;
419 }
420
421 FeedReadercxx . . $ FeedReader#* Applicationcxx . . $ Application#::feedReadercxx . . $ Application#feedReader(db5fdbb995cddeff).() {
422 return m_feedReadercxx . . $ Application#m_feedReader.;
423 }
424
425 QListcxx . . $ QList#<QActioncxx . . $ QAction#*> Applicationcxx . . $ Application#::userActionscxx . . $ Application#userActions(c4b3bc0793dee689).() {
426 if (m_mainFormcxx . . $ Application#m_mainForm. != nullptr && m_userActionscxx . . $ Application#m_userActions..isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
427 m_userActionscxx . . $ Application#m_userActions. =cxx . . $ QList#`operator=`(37f1c13f7fc0a39d). m_mainFormcxx . . $ Application#m_mainForm.->allActionscxx . . $ FormMain#allActions(6326ecb0baf05155).();
428 m_userActionscxx . . $ Application#m_userActions..appendcxx . . $ QList#append(200d2dc08238a4ed).(m_webFactorycxx . . $ Application#m_webFactory.->adBlockcxx . . $ WebFactory#adBlock(dd9ae43777736cac).()->adBlockIconcxx . . $ AdBlockManager#adBlockIcon(c28c2e98a16e03de).());
429 }
430
431 return m_userActionscxx . . $ Application#m_userActions.;
432 }
433
434 QListcxx . . $ QList#<QActioncxx . . $ QAction#*> Applicationcxx . . $ Application#::userAndExtraActionscxx . . $ Application#userAndExtraActions(c4b3bc0793dee689).() {
435 auto user_actions = userActionscxx . . $ Application#userActions(c4b3bc0793dee689).();
436
437 user_actions <<cxx . . $ QList#`operator<<`(15ec5f0e45a4f6d6). m_mainFormcxx . . $ Application#m_mainForm.->tabWidgetcxx . . $ FormMain#tabWidget(331dafdc3f7547ba).()->feedMessageViewercxx . . $ TabWidget#feedMessageViewer(f908a1dc9ca40ab9).()->feedsToolBarcxx . . $ FeedMessageViewer#feedsToolBar(b7ed835f9493853c).()->extraActionscxx . . $ FeedsToolBar#extraActions(6326ecb0baf05155).();
438 user_actions <<cxx . . $ QList#`operator<<`(15ec5f0e45a4f6d6). m_mainFormcxx . . $ Application#m_mainForm.->tabWidgetcxx . . $ FormMain#tabWidget(331dafdc3f7547ba).()->feedMessageViewercxx . . $ TabWidget#feedMessageViewer(f908a1dc9ca40ab9).()->messagesToolBarcxx . . $ FeedMessageViewer#messagesToolBar(fe38a660dd64a1aa).()->extraActionscxx . . $ MessagesToolBar#extraActions(6326ecb0baf05155).();
439 user_actions <<cxx . . $ QList#`operator<<`(15ec5f0e45a4f6d6). m_mainFormcxx . . $ Application#m_mainForm.->statusBarcxx . . $ FormMain#statusBar(ecad720b385065a4).()->extraActionscxx . . $ BaseBar#extraActions(6326ecb0baf05155).();
440
441 return user_actions;
442 }
443
444 bool Applicationcxx . . $ Application#::isFirstRuncxx . . $ Application#isFirstRun(50ce9a9e25b4a850).() const {
445 return m_firstRunEvercxx . . $ Application#m_firstRunEver.;
446 }
447
448 bool Applicationcxx . . $ Application#::isFirstRunCurrentVersioncxx . . $ Application#isFirstRunCurrentVersion(50ce9a9e25b4a850).() const {
449 return m_firstRunCurrentVersioncxx . . $ Application#m_firstRunCurrentVersion.;
450 }
451
452 QCommandLineParsercxx . . $ QCommandLineParser#* Applicationcxx . . $ Application#::cmdParsercxx . . $ Application#cmdParser(28f76cd94c3cf31d).() {
453 return &m_cmdParsercxx . . $ Application#m_cmdParser.;
454 }
455
456 WebFactorycxx . . $ WebFactory#* Applicationcxx . . $ Application#::webcxx . . $ Application#web(ad68e16c93841931).() const {
457 return m_webFactorycxx . . $ Application#m_webFactory.;
458 }
459
460 SystemFactorycxx . . $ SystemFactory#* Applicationcxx . . $ Application#::systemcxx . . $ Application#system(4ec014040ff5a0f7).() {
461 return m_systemcxx . . $ Application#m_system.;
462 }
463
464 SkinFactorycxx . . $ SkinFactory#* Applicationcxx . . $ Application#::skinscxx . . $ Application#skins(260b20d67347ae96).() {
465 return m_skinscxx . . $ Application#m_skins.;
466 }
467
468 Localizationcxx . . $ Localization#* Applicationcxx . . $ Application#::localizationcxx . . $ Application#localization(c0674a442c333122).() {
469 return m_localizationcxx . . $ Application#m_localization.;
470 }
471
472 DatabaseFactorycxx . . $ DatabaseFactory#* Applicationcxx . . $ Application#::databasecxx . . $ Application#database(4a253a6ca99872d8).() {
473 return m_databasecxx . . $ Application#m_database.;
474 }
475
476 void Applicationcxx . . $ Application#::eliminateFirstRunscxx . . $ Application#eliminateFirstRuns(49f6e7a06ebc5aa8).() {
477 settingscxx . . $ Application#settings(951936487a2d9252).()->setValuecxx . . $ Settings#setValue(365356ede4ebaabb).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(General), Generalcxx . . $ General/::FirstRuncxx . . $ General/FirstRun., falsecxx . . $ QVariant#QVariant(9f0ba574c1c44ffc).);
478 settingscxx . . $ Application#settings(951936487a2d9252).()->setValuecxx . . $ Settings#setValue(365356ede4ebaabb).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(General), QStringcxx . . $ QString#QString(132dd6869045752b).(Generalcxx . . $ General/::FirstRuncxx . . $ General/FirstRun.) + QL1Ccxx . . $ `src/librssguard/definitions/definitions.h:455:9`!('_') + APP_VERSIONcxx . . $ `<built-in>:496:9`!, falsecxx . . $ QVariant#QVariant(9f0ba574c1c44ffc).);
479 }
480
481 void Applicationcxx . . $ Application#::displayLogMessageInDialogcxx . . $ Application#displayLogMessageInDialog(3520e46b33348bf6).(const QStringcxx . . $ QString#& message) {
482 if (m_logFormcxx . . $ Application#m_logForm. != nullptr && m_logFormcxx . . $ Application#m_logForm.->isVisiblecxx . . $ QWidget#isVisible(50ce9a9e25b4a850).()) {
483 emitcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:51:10`! sendLogToDialogcxx . . $ Application#sendLogToDialog(7df51288a9ebd664).(messagecxx . . $ QString#QString(132dd6869045752b).);
484 }
485 }
486
487 ToastNotificationsManagercxx . . $ ToastNotificationsManager#* Applicationcxx . . $ Application#::toastNotificationscxx . . $ Application#toastNotifications(42426deec518347e).() const {
488 return m_toastNotificationscxx . . $ Application#m_toastNotifications.;
489 }
490
491 QThreadPoolcxx . . $ QThreadPool#* Applicationcxx . . $ Application#::workHorsePoolcxx . . $ Application#workHorsePool(a728214f96070c42).() const {
492 return m_workHorsePoolcxx . . $ Application#m_workHorsePool.;
493 }
494
495 int Applicationcxx . . $ Application#::customAdblockPortcxx . . $ Application#customAdblockPort(455f465bc33b4cdf).() const {
496 return m_customAdblockPortcxx . . $ Application#m_customAdblockPort.;
497 }
498
499 QStringListcxx . . $ QStringList# Applicationcxx . . $ Application#::rawCliArgscxx . . $ Application#rawCliArgs(2b25566bdf736d18).() const {
500 return m_rawCliArgscxx . . $ Application#m_rawCliArgs.;
501 }
502
503 #if defined(NO_LITEcxx . . $ `<built-in>:500:9`!)
504 bool Applicationcxx . . $ Application#::forcedLitecxx . . $ Application#forcedLite(50ce9a9e25b4a850).() const {
505 return m_forcedLitecxx . . $ Application#m_forcedLite.;
506 }
507 #endif
508
509 NodeJscxx . . $ NodeJs#* Applicationcxx . . $ Application#::nodejscxx . . $ Application#nodejs(37aaef0f1b724263).() const {
510 return m_nodejscxx . . $ Application#m_nodejs.;
511 }
512
513 NotificationFactorycxx . . $ NotificationFactory#* Applicationcxx . . $ Application#::notificationscxx . . $ Application#notifications(9f98bf21cc921225).() const {
514 return m_notificationscxx . . $ Application#m_notifications.;
515 }
516
517 void Applicationcxx . . $ Application#::setFeedReadercxx . . $ Application#setFeedReader(96eac250c17d4eb9).(FeedReadercxx . . $ FeedReader#* feed_reader) {
518 m_feedReadercxx . . $ Application#m_feedReader. = feed_reader;
519
520 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_feedReadercxx . . $ Application#m_feedReader., &FeedReadercxx . . $ FeedReader#::feedUpdatesStartedcxx . . $ FeedReader#feedUpdatesStarted(49f6e7a06ebc5aa8)., this, &Applicationcxx . . $ Application#::onFeedUpdatesStartedcxx . . $ Application#onFeedUpdatesStarted(49f6e7a06ebc5aa8).);
521 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_feedReadercxx . . $ Application#m_feedReader., &FeedReadercxx . . $ FeedReader#::feedUpdatesProgresscxx . . $ FeedReader#feedUpdatesProgress(e8151f2ee217e1b7)., this, &Applicationcxx . . $ Application#::onFeedUpdatesProgresscxx . . $ Application#onFeedUpdatesProgress(e8151f2ee217e1b7).);
522 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_feedReadercxx . . $ Application#m_feedReader., &FeedReadercxx . . $ FeedReader#::feedUpdatesFinishedcxx . . $ FeedReader#feedUpdatesFinished(c87b5265ecd7e3fb)., this, &Applicationcxx . . $ Application#::onFeedUpdatesFinishedcxx . . $ Application#onFeedUpdatesFinished(327d7267a1e3b8f3).);
523 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_feedReadercxx . . $ Application#m_feedReader.->feedsModelcxx . . $ FeedReader#feedsModel(9c5c1ec683fc5474).(), &FeedsModelcxx . . $ FeedsModel#::messageCountsChangedcxx . . $ FeedsModel#messageCountsChanged(918ebd27a9ddbad3)., this, &Applicationcxx . . $ Application#::showMessagesNumbercxx . . $ Application#showMessagesNumber(918ebd27a9ddbad3).);
524 }
525
526 IconFactorycxx . . $ IconFactory#* Applicationcxx . . $ Application#::iconscxx . . $ Application#icons(d976db2a0d825b70).() {
527 return m_iconscxx . . $ Application#m_icons.;
528 }
529
530 DownloadManagercxx . . $ DownloadManager#* Applicationcxx . . $ Application#::downloadManagercxx . . $ Application#downloadManager(456f9618ee541670).() {
531 if (m_downloadManagercxx . . $ Application#m_downloadManager. == nullptr) {
532 m_downloadManagercxx . . $ Application#m_downloadManager. = new DownloadManagercxx . . $ DownloadManager#DownloadManager(108f35f7aa7f3cf9).();
533 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_downloadManagercxx . . $ Application#m_downloadManager.,
534 &DownloadManagercxx . . $ DownloadManager#::downloadFinishedcxx . . $ DownloadManager#downloadFinished(49f6e7a06ebc5aa8).,
535 mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->statusBarcxx . . $ FormMain#statusBar(ecad720b385065a4).(),
536 &StatusBarcxx . . $ StatusBar#::clearProgressDownloadcxx . . $ StatusBar#clearProgressDownload(49f6e7a06ebc5aa8).);
537 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_downloadManagercxx . . $ Application#m_downloadManager.,
538 &DownloadManagercxx . . $ DownloadManager#::downloadProgressedcxx . . $ DownloadManager#downloadProgressed(4b11a7293b4ed91c).,
539 mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->statusBarcxx . . $ FormMain#statusBar(ecad720b385065a4).(),
540 &StatusBarcxx . . $ StatusBar#::showProgressDownloadcxx . . $ StatusBar#showProgressDownload(4b11a7293b4ed91c).);
541 }
542
543 return m_downloadManagercxx . . $ Application#m_downloadManager.;
544 }
545
546 Settingscxx . . $ Settings#* Applicationcxx . . $ Application#::settingscxx . . $ Application#settings(951936487a2d9252).() const {
547 return m_settingscxx . . $ Application#m_settings.;
548 }
549
550 Mutexcxx . . $ Mutex#* Applicationcxx . . $ Application#::feedUpdateLockcxx . . $ Application#feedUpdateLock(e340107b1702aef2).() {
551 return m_updateFeedsLockcxx . . $ Application#m_updateFeedsLock..datacxx . . $ QScopedPointer#data(34d6acfd341ba7ab).();
552 }
553
554 FormMaincxx . . $ FormMain#* Applicationcxx . . $ Application#::mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).() {
555 return m_mainFormcxx . . $ Application#m_mainForm.;
556 }
557
558 QWidgetcxx . . $ QWidget#* Applicationcxx . . $ Application#::mainFormWidgetcxx . . $ Application#mainFormWidget(9b769eeb00a33a04).() {
559 return m_mainFormcxx . . $ Application#m_mainForm.;
560 }
561
562 void Applicationcxx . . $ Application#::setMainFormcxx . . $ Application#setMainForm(65b5ce08a4f1bb4e).(FormMaincxx . . $ FormMain#* main_form) {
563 m_mainFormcxx . . $ Application#m_mainForm. = main_form;
564
565 if (m_toastNotificationscxx . . $ Application#m_toastNotifications. != nullptr) {
566 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_toastNotificationscxx . . $ Application#m_toastNotifications.,
567 &ToastNotificationsManagercxx . . $ ToastNotificationsManager#::reloadMessageListRequestedcxx . . $ ToastNotificationsManager#reloadMessageListRequested(b45ddcbc8423892c).,
568 m_mainFormcxx . . $ Application#m_mainForm.->tabWidgetcxx . . $ FormMain#tabWidget(331dafdc3f7547ba).()->feedMessageViewercxx . . $ TabWidget#feedMessageViewer(f908a1dc9ca40ab9).()->messagesViewcxx . . $ FeedMessageViewer#messagesView(fd6f766f8adc6afe).(),
569 &MessagesViewcxx . . $ MessagesView#::reloadSelectionscxx . . $ MessagesView#reloadSelections(49f6e7a06ebc5aa8).);
570 }
571 }
572
573 QStringcxx . . $ QString# Applicationcxx . . $ Application#::configFoldercxx . . $ Application#configFolder(6ef7b6c27b00b43d).() const {
574 return IOFactorycxx . . $ IOFactory#::getSystemFoldercxx . . $ IOFactory#getSystemFolder(7d8b34fbb6a9c1bf).(QStandardPathscxx . . $ QStandardPaths#::StandardLocationcxx . . $ QStandardPaths#StandardLocation#::GenericConfigLocationcxx . . $ QStandardPaths#GenericConfigLocation.);
575 }
576
577 QStringcxx . . $ QString# Applicationcxx . . $ Application#::userDataAppFoldercxx . . $ Application#userDataAppFolder(6ef7b6c27b00b43d).() const {
578 static int major_version = QVersionNumbercxx . . $ QVersionNumber#::fromStringcxx . . $ QVersionNumber#fromString(65c6dfcd1a357790).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(APP_VERSIONcxx . . $ `<built-in>:496:9`!)).majorVersioncxx . . $ QVersionNumber#majorVersion(ea6fe5115c70a13f).();
579
580 // In "app" folder, we would like to separate all user data into own subfolder,
581 // therefore stick to "data" folder in this mode.
582 return QDircxx . . $ QDir#::toNativeSeparatorscxx . . $ QDir#toNativeSeparators(fd988a2ab94d906b).(applicationDirPathcxx . . $ QCoreApplication#applicationDirPath(4365c3963150523e).() + QDircxx . . $ QDir#::separatorcxx . . $ QDir#separator(44eb9225326fcbf5).() + QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("data%1").argcxx . . $ QString#arg(ed67e9a87de2cd4e).(major_version));
583 }
584
585 QStringcxx . . $ QString# Applicationcxx . . $ Application#::userDataFoldercxx . . $ Application#userDataFolder(4365c3963150523e).() {
586 if (settingscxx . . $ Application#settings(951936487a2d9252).()->typecxx . . $ Settings#type(bae50ed5822231a).() == SettingsPropertiescxx . . $ SettingsProperties#::SettingsTypecxx . . $ SettingsProperties#SettingsType#::Customcxx . . $ SettingsProperties#SettingsType#Custom.) {
587 return customDataFoldercxx . . $ Application#customDataFolder(6ef7b6c27b00b43d).();
588 }
589 else if (settingscxx . . $ Application#settings(951936487a2d9252).()->typecxx . . $ Settings#type(bae50ed5822231a).() == SettingsPropertiescxx . . $ SettingsProperties#::SettingsTypecxx . . $ SettingsProperties#SettingsType#::Portablecxx . . $ SettingsProperties#SettingsType#Portable.) {
590 return userDataAppFoldercxx . . $ Application#userDataAppFolder(6ef7b6c27b00b43d).();
591 }
592 else {
593 return userDataHomeFoldercxx . . $ Application#userDataHomeFolder(6ef7b6c27b00b43d).();
594 }
595 }
596
597 QStringcxx . . $ QString# Applicationcxx . . $ Application#::cacheFoldercxx . . $ Application#cacheFolder(4365c3963150523e).() {
598 #if defined(Q_OS_LINUXcxx . . $ `/usr/include/x86_64-linux-gnu/qt6/QtCore/qsystemdetection.h:100:11`!)
599 return QStandardPathscxx . . $ QStandardPaths#::writableLocationcxx . . $ QStandardPaths#writableLocation(7d8b34fbb6a9c1bf).(QStandardPathscxx . . $ QStandardPaths#::StandardLocationcxx . . $ QStandardPaths#StandardLocation#::CacheLocationcxx . . $ QStandardPaths#CacheLocation.);
600 #else
601 return userDataFolder();
602 #endif
603 }
604
605 QStringcxx . . $ QString# Applicationcxx . . $ Application#::replaceUserDataFolderPlaceholdercxx . . $ Application#replaceUserDataFolderPlaceholder(f6736f2569bd2ccc).(QStringcxx . . $ QString# text) const {
606 auto user_data_folder = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->userDataFoldercxx . . $ Application#userDataFolder(4365c3963150523e).();
607
608 return textcxx . . $ QString#QString(132dd6869045752b)..replacecxx . . $ QString#replace(192e628656427d1c).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(USER_DATA_PLACEHOLDERcxx . . $ `src/librssguard/definitions/definitions.h:116:9`!), user_data_folder);
609 }
610
611 QStringListcxx . . $ QStringList# Applicationcxx . . $ Application#::replaceUserDataFolderPlaceholdercxx . . $ Application#replaceUserDataFolderPlaceholder(aa54cf59e2bd1ac7).(QStringListcxx . . $ QStringList# texts) const {
612 auto user_data_folder = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->userDataFoldercxx . . $ Application#userDataFolder(4365c3963150523e).();
613
614 return texts.replaceInStringscxx . . $ QListSpecialMethods#replaceInStrings(3fbdd914bebb84fe).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(USER_DATA_PLACEHOLDERcxx . . $ `src/librssguard/definitions/definitions.h:116:9`!), user_data_folder);
615 }
616
617 QStringcxx . . $ QString# Applicationcxx . . $ Application#::userDataHomeFoldercxx . . $ Application#userDataHomeFolder(6ef7b6c27b00b43d).() const {
618 QStringcxx . . $ QString# pthcxx . . $ QString#QString(ced63f7c635d850d).;
619 static int major_version = QVersionNumbercxx . . $ QVersionNumber#::fromStringcxx . . $ QVersionNumber#fromString(65c6dfcd1a357790).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(APP_VERSIONcxx . . $ `<built-in>:496:9`!)).majorVersioncxx . . $ QVersionNumber#majorVersion(ea6fe5115c70a13f).();
620
621 #if defined(Q_OS_ANDROID)
622 return pth = IOFactory::getSystemFolder(QStandardPaths::GenericDataLocation) + QDir::separator() + QSL(APP_NAME) +
623 QSL(" %1").arg(major_version);
624 #else
625 return pthcxx . . $ QString#QString(132dd6869045752b). =cxx . . $ QString#`operator=`(4f35bf974e7f8568). configFoldercxx . . $ Application#configFolder(6ef7b6c27b00b43d).() + QDircxx . . $ QDir#::separatorcxx . . $ QDir#separator(44eb9225326fcbf5).() + QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(APP_NAMEcxx . . $ `<built-in>:487:9`!) + QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(" %1").argcxx . . $ QString#arg(ed67e9a87de2cd4e).(major_version);
626 #endif
627
628 return QDircxx . . $ QDir#::toNativeSeparatorscxx . . $ QDir#toNativeSeparators(fd988a2ab94d906b).(pth);
629 }
630
631 QStringcxx . . $ QString# Applicationcxx . . $ Application#::tempFoldercxx . . $ Application#tempFolder(6ef7b6c27b00b43d).() const {
632 return IOFactorycxx . . $ IOFactory#::getSystemFoldercxx . . $ IOFactory#getSystemFolder(7d8b34fbb6a9c1bf).(QStandardPathscxx . . $ QStandardPaths#::StandardLocationcxx . . $ QStandardPaths#StandardLocation#::TempLocationcxx . . $ QStandardPaths#TempLocation.);
633 }
634
635 QStringcxx . . $ QString# Applicationcxx . . $ Application#::documentsFoldercxx . . $ Application#documentsFolder(6ef7b6c27b00b43d).() const {
636 return IOFactorycxx . . $ IOFactory#::getSystemFoldercxx . . $ IOFactory#getSystemFolder(7d8b34fbb6a9c1bf).(QStandardPathscxx . . $ QStandardPaths#::StandardLocationcxx . . $ QStandardPaths#StandardLocation#::DocumentsLocationcxx . . $ QStandardPaths#DocumentsLocation.);
637 }
638
639 QStringcxx . . $ QString# Applicationcxx . . $ Application#::homeFoldercxx . . $ Application#homeFolder(6ef7b6c27b00b43d).() const {
640 #if defined(Q_OS_ANDROID)
641 return IOFactory::getSystemFolder(QStandardPaths::StandardLocation::GenericDataLocation);
642 #else
643 return IOFactorycxx . . $ IOFactory#::getSystemFoldercxx . . $ IOFactory#getSystemFolder(7d8b34fbb6a9c1bf).(QStandardPathscxx . . $ QStandardPaths#::StandardLocationcxx . . $ QStandardPaths#StandardLocation#::HomeLocationcxx . . $ QStandardPaths#HomeLocation.);
644 #endif
645 }
646
647 void Applicationcxx . . $ Application#::backupDatabaseSettingscxx . . $ Application#backupDatabaseSettings(4ed09677d75f8bf9).(bool backup_database,
648 bool backup_settings,
649 const QStringcxx . . $ QString#& target_path,
650 const QStringcxx . . $ QString#& backup_name) {
651 if (!QFileInfocxx . . $ QFileInfo#QFileInfo(3520e46b33348bf6).(target_path).isWritablecxx . . $ QFileInfo#isWritable(50ce9a9e25b4a850).()) {
652 throw ApplicationExceptioncxx . . $ ApplicationException#(trcxx . . $ Application#tr(75d9f1c324b4579d).("Output directory is not writable."));
653 }
654
655 if (backup_settings) {
656 settingscxx . . $ Application#settings(951936487a2d9252).()->synccxx . . $ QSettings#sync(49f6e7a06ebc5aa8).();
657
658 if (!IOFactorycxx . . $ IOFactory#::copyFilecxx . . $ IOFactory#copyFile(edf9e4f73813982f).(settingscxx . . $ Application#settings(951936487a2d9252).()->fileNamecxx . . $ QSettings#fileName(6ef7b6c27b00b43d).(),
659 target_path + QDircxx . . $ QDir#::separatorcxx . . $ QDir#separator(44eb9225326fcbf5).() + backup_name + BACKUP_SUFFIX_SETTINGScxx . . $ `src/librssguard/definitions/definitions.h:218:9`!)) {
660 throw ApplicationExceptioncxx . . $ ApplicationException#(trcxx . . $ Application#tr(75d9f1c324b4579d).("Settings file not copied to output directory successfully."));
661 }
662 }
663
664 if (backup_database) {
665 databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->backupDatabasecxx . . $ DatabaseDriver#backupDatabase(c1427772cd1877b0).(target_path, backup_name);
666 }
667 }
668
669 void Applicationcxx . . $ Application#::restoreDatabaseSettingscxx . . $ Application#restoreDatabaseSettings(4ed09677d75f8bf9).(bool restore_database,
670 bool restore_settings,
671 const QStringcxx . . $ QString#& source_database_file_path,
672 const QStringcxx . . $ QString#& source_settings_file_path) {
673 if (restore_database) {
674 if (!qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->initiateRestorationcxx . . $ DatabaseDriver#initiateRestoration(e1defb592416720d).(source_database_file_path)) {
675 throw ApplicationExceptioncxx . . $ ApplicationException#(trcxx . . $ Application#tr(75d9f1c324b4579d).("Database restoration was not initiated. Make sure that output directory is "
676 "writable."));
677 }
678 }
679
680 if (restore_settings) {
681 if (!qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->initiateRestorationcxx . . $ Settings#initiateRestoration(e1defb592416720d).(source_settings_file_path)) {
682 throw ApplicationExceptioncxx . . $ ApplicationException#(trcxx . . $ Application#tr(75d9f1c324b4579d).("Settings restoration was not initiated. Make sure that output directory is "
683 "writable."));
684 }
685 }
686 }
687
688 SystemTrayIconcxx . . $ SystemTrayIcon#* Applicationcxx . . $ Application#::trayIconcxx . . $ Application#trayIcon(af2fac1265f46624).() {
689 if (m_trayIconcxx . . $ Application#m_trayIcon. == nullptr) {
690 if (qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(GUI), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(GUI::MonochromeTrayIcon)).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()) {
691 if (qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(GUI), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(GUI::ColoredBusyTrayIcon)).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()) {
692 m_trayIconcxx . . $ Application#m_trayIcon. = new SystemTrayIconcxx . . $ SystemTrayIcon#(APP_ICON_MONO_PATHcxx . . $ `src/librssguard/definitions/definitions.h:388:9`!, APP_ICON_PLAIN_PATHcxx . . $ `src/librssguard/definitions/definitions.h:386:9`!, m_mainFormcxx . . $ Application#m_mainForm.);
693 }
694 else {
695 m_trayIconcxx . . $ Application#m_trayIcon. = new SystemTrayIconcxx . . $ SystemTrayIcon#(APP_ICON_MONO_PATHcxx . . $ `src/librssguard/definitions/definitions.h:388:9`!, APP_ICON_MONO_PLAIN_PATHcxx . . $ `src/librssguard/definitions/definitions.h:389:9`!, m_mainFormcxx . . $ Application#m_mainForm.);
696 }
697 }
698 else {
699 m_trayIconcxx . . $ Application#m_trayIcon. = new SystemTrayIconcxx . . $ SystemTrayIcon#(APP_ICON_PATHcxx . . $ `src/librssguard/definitions/definitions.h:385:9`!, APP_ICON_PLAIN_PATHcxx . . $ `src/librssguard/definitions/definitions.h:386:9`!, m_mainFormcxx . . $ Application#m_mainForm.);
700 }
701
702 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_trayIconcxx . . $ Application#m_trayIcon., &SystemTrayIconcxx . . $ SystemTrayIcon#::showncxx . . $ SystemTrayIcon#shown(49f6e7a06ebc5aa8)., m_feedReadercxx . . $ Application#m_feedReader.->feedsModelcxx . . $ FeedReader#feedsModel(9c5c1ec683fc5474).(), &FeedsModelcxx . . $ FeedsModel#::notifyWithCountscxx . . $ FeedsModel#notifyWithCounts(49f6e7a06ebc5aa8).);
703 }
704
705 return m_trayIconcxx . . $ Application#m_trayIcon.;
706 }
707
708 QIconcxx . . $ QIcon# Applicationcxx . . $ Application#::desktopAwareIconcxx . . $ Application#desktopAwareIcon(952ef71f8967d9eb).() const {
709 auto from_theme = m_iconscxx . . $ Application#m_icons.->fromThemecxx . . $ IconFactory#fromTheme(e457fbbee8993f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(APP_LOW_NAMEcxx . . $ `<built-in>:486:9`!));
710
711 if (!from_theme.isNullcxx . . $ QIcon#isNull(50ce9a9e25b4a850).()) {
712 return from_themecxx . . $ QIcon#QIcon(44c9bbc25a297bfe).;
713 }
714 else {
715 return QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(APP_ICON_PATHcxx . . $ `src/librssguard/definitions/definitions.h:385:9`!);
716 }
717 }
718
719 void Applicationcxx . . $ Application#::showTrayIconcxx . . $ Application#showTrayIcon(49f6e7a06ebc5aa8).() {
720 // Display tray icon if it is enabled and available.
721 if (SystemTrayIconcxx . . $ SystemTrayIcon#::isSystemTrayDesiredcxx . . $ SystemTrayIcon#isSystemTrayDesired(c9857a73d68e59ba).()) {
722 qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_GUIcxx . . $ `src/librssguard/definitions/definitions.h:174:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "User wants to have tray icon.";
723
724 // Delay avoids race conditions and tray icon is properly displayed.
725 qWarningNNcxx . . $ `src/librssguard/definitions/definitions.h:417:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_GUIcxx . . $ `src/librssguard/definitions/definitions.h:174:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Showing tray icon with little delay.";
726
727 QTimercxx . . $ QTimer#::singleShotcxx . . $ QTimer#singleShot(aa6a4c6cfc6f625a).(
728 #if defined(Q_OS_WIN)
729 500,
730 #else
731 3000,
732 #endif
733 this,
734 [=]() {
735 if (SystemTrayIconcxx . . $ SystemTrayIcon#::isSystemTrayAreaAvailablecxx . . $ SystemTrayIcon#isSystemTrayAreaAvailable(c9857a73d68e59ba).()) {
736 qWarningNNcxx . . $ `src/librssguard/definitions/definitions.h:417:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_GUIcxx . . $ `src/librssguard/definitions/definitions.h:174:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Tray icon is available, showing now.";
737 trayIconcxx . . $ Application#trayIcon(af2fac1265f46624).()->showcxx . . $ SystemTrayIcon#show(49f6e7a06ebc5aa8).();
738 }
739 else {
740 m_feedReadercxx . . $ Application#m_feedReader.->feedsModelcxx . . $ FeedReader#feedsModel(9c5c1ec683fc5474).()->notifyWithCountscxx . . $ FeedsModel#notifyWithCounts(49f6e7a06ebc5aa8).();
741 }
742
743 // NOTE: Below things have to be performed after tray icon is (if enabled)
744 // initialized.
745 offerChangescxx . . $ Application#offerChanges(83f5f38750778ac8).();
746 offerPollscxx . . $ Application#offerPolls(83f5f38750778ac8).();
747
748 #if defined(Q_OS_WIN)
749 #if QT_VERSION_MAJOR == 6
750 // NOTE: Fixes https://github.com/martinrotter/rssguard/issues/953 for Qt 6.
751 using QWindowsWindow = QNativeInterface::Private::QWindowsWindow;
752 if (auto w_w = qApp->mainForm()->windowHandle()->nativeInterface<QWindowsWindow>()) {
753 w_w->setHasBorderInFullScreen(true);
754 }
755 #endif
756 #endif
757 });
758 }
759 else {
760 m_feedReadercxx . . $ Application#m_feedReader.->feedsModelcxx . . $ FeedReader#feedsModel(9c5c1ec683fc5474).()->notifyWithCountscxx . . $ FeedsModel#notifyWithCounts(49f6e7a06ebc5aa8).();
761 }
762 }
763
764 void Applicationcxx . . $ Application#::deleteTrayIconcxx . . $ Application#deleteTrayIcon(49f6e7a06ebc5aa8).() {
765 if (m_trayIconcxx . . $ Application#m_trayIcon. != nullptr) {
766 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). "Disabling tray icon, deleting it and raising main application window.";
767 m_mainFormcxx . . $ Application#m_mainForm.->displaycxx . . $ FormMain#display(49f6e7a06ebc5aa8).();
768 delete m_trayIconcxx . . $ Application#m_trayIcon.;
769 m_trayIconcxx . . $ Application#m_trayIcon. = nullptr;
770
771 // Make sure that application quits when last window is closed.
772 setQuitOnLastWindowClosedcxx . . $ QGuiApplication#setQuitOnLastWindowClosed(b45ddcbc8423892c).(true);
773 }
774 }
775
776 void Applicationcxx . . $ Application#::showGuiMessageCorecxx . . $ Application#showGuiMessageCore(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event# event,
777 const GuiMessagecxx . . $ GuiMessage#& msg,
778 GuiMessageDestinationcxx . . $ GuiMessageDestination# dest,
779 const GuiActioncxx . . $ GuiAction#& action,
780 QWidgetcxx . . $ QWidget#* parent) {
781 bool show_dialog = true;
782
783 if (m_notificationscxx . . $ Application#m_notifications.->areNotificationsEnabledcxx . . $ NotificationFactory#areNotificationsEnabled(50ce9a9e25b4a850).()) {
784 auto notification = m_notificationscxx . . $ Application#m_notifications.->notificationForEventcxx . . $ NotificationFactory#notificationForEvent(5f161bf92a98a4ee).(event);
785
786 show_dialog = notification.dialogEnabledcxx . . $ Notification#dialogEnabled(50ce9a9e25b4a850).();
787
788 if (notification.soundEnabledcxx . . $ Notification#soundEnabled(50ce9a9e25b4a850).()) {
789 notification.playSoundcxx . . $ Notification#playSound(20e408e26c1df836).(this);
790 }
791
792 if (notification.balloonEnabledcxx . . $ Notification#balloonEnabled(50ce9a9e25b4a850).() && dest.m_traycxx . . $ GuiMessageDestination#m_tray.) {
793 if (notification.eventcxx . . $ Notification#event(752d85c5520a3778).() == Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::ArticlesFetchingStartedcxx . . $ Notification#Event#ArticlesFetchingStarted. && m_mainFormcxx . . $ Application#m_mainForm. != nullptr &&
794 m_mainFormcxx . . $ Application#m_mainForm.->isActiveWindowcxx . . $ QWidget#isActiveWindow(50ce9a9e25b4a850).() && m_mainFormcxx . . $ Application#m_mainForm.->isVisiblecxx . . $ QWidget#isVisible(50ce9a9e25b4a850).()) {
795 // We do not need to display the notification because
796 // user will see that fetching is running because
797 // he will see progress bar.
798 return;
799 }
800
801 if (m_toastNotificationscxx . . $ Application#m_toastNotifications. != nullptr) {
802 // Toasts are enabled.
803 m_toastNotificationscxx . . $ Application#m_toastNotifications.->showNotificationcxx . . $ ToastNotificationsManager#showNotification(db35c252f9762c99).(event, msg, action);
804 }
805 else if (SystemTrayIconcxx . . $ SystemTrayIcon#::isSystemTrayDesiredcxx . . $ SystemTrayIcon#isSystemTrayDesired(c9857a73d68e59ba).() && SystemTrayIconcxx . . $ SystemTrayIcon#::isSystemTrayAreaAvailablecxx . . $ SystemTrayIcon#isSystemTrayAreaAvailable(c9857a73d68e59ba).()) {
806 // Use tray icon balloons (which are implemented as native notifications on most systems.
807 trayIconcxx . . $ Application#trayIcon(af2fac1265f46624).()->showMessagecxx . . $ SystemTrayIcon#showMessage(5a7ad92df912dbeb).(msg.m_titlecxx . . $ GuiMessage#m_title..simplifiedcxx . . $ QString#simplified(dca2c5857e9adf82).().isEmptycxx . . $ QString#isEmpty(3482b152b9333168).() ? Notificationcxx . . $ Notification#::nameForEventcxx . . $ Notification#nameForEvent(50042268f9318a56).(notification.eventcxx . . $ Notification#event(752d85c5520a3778).())
808 : msgcxx . . $ QString#QString(132dd6869045752b)..m_titlecxx . . $ GuiMessage#m_title.,
809 msg.m_messagecxx . . $ GuiMessage#m_message.,
810 msg.m_typecxx . . $ GuiMessage#m_type.,
811 TRAY_ICON_BUBBLE_TIMEOUTcxx . . $ `src/librssguard/definitions/definitions.h:72:9`!,
812 stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(action.m_actioncxx . . $ GuiAction#m_action.));
813 }
814
815 return;
816 }
817 }
818
819 if (show_dialog && (dest.m_messageBoxcxx . . $ GuiMessageDestination#m_messageBox. || msg.m_typecxx . . $ GuiMessage#m_type. == QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Criticalcxx . . $ QSystemTrayIcon#Critical.)) {
820 // Tray icon or OSD is not available, display simple text box.
821 MsgBoxcxx . . $ MsgBox#::showcxx . . $ MsgBox#show(699e792c6fa2d501).(parent == nullptr ? mainFormWidgetcxx . . $ Application#mainFormWidget(9b769eeb00a33a04).() : parent,
822 QMessageBoxcxx . . $ QMessageBox#::Iconcxx . . $ QMessageBox#Icon#(msg.m_typecxx . . $ GuiMessage#m_type.),
823 msg.m_titlecxx . . $ GuiMessage#m_title.,
824 msg.m_messagecxx . . $ GuiMessage#m_message.,
825 {cxx . . $ QString#QString(ced63f7c635d850d).},
826 {cxx . . $ QString#QString(ced63f7c635d850d).},
827 QMessageBoxcxx . . $ QFlags#QFlags(93d577a3e9528307).::StandardButtoncxx . . $ QMessageBox#StandardButton#::Okcxx . . $ QMessageBox#Ok.,
828 QMessageBoxcxx . . $ QMessageBox#::StandardButtoncxx . . $ QMessageBox#StandardButton#::Okcxx . . $ QMessageBox#Ok.,
829 {},
830 action.m_titlecxx . . $ GuiAction#m_title.,
831 action.m_actioncxx . . $ GuiAction#m_action.);
832 }
833 else if (dest.m_statusBarcxx . . $ GuiMessageDestination#m_statusBar. && mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->statusBarcxx . . $ FormMain#statusBar(ecad720b385065a4).() != nullptr && mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->statusBarcxx . . $ FormMain#statusBar(ecad720b385065a4).()->isVisiblecxx . . $ QWidget#isVisible(50ce9a9e25b4a850).()) {
834 mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->statusBarcxx . . $ FormMain#statusBar(ecad720b385065a4).()->showMessagecxx . . $ QStatusBar#showMessage(29ed8fcd127906b1).(msg.m_messagecxx . . $ GuiMessage#m_message., 3000);
835 }
836 else {
837 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). "Silencing GUI message:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(msg.m_message);
838 }
839 }
840
841 void Applicationcxx . . $ Application#::loadMessageToFeedAndArticleListcxx . . $ Application#loadMessageToFeedAndArticleList(12e982556975822d).(Feedcxx . . $ Feed#* feed, const Messagecxx . . $ Message#& message) {
842 m_mainFormcxx . . $ Application#m_mainForm.->displaycxx . . $ FormMain#display(49f6e7a06ebc5aa8).();
843 m_mainFormcxx . . $ Application#m_mainForm.->tabWidgetcxx . . $ FormMain#tabWidget(331dafdc3f7547ba).()->feedMessageViewercxx . . $ TabWidget#feedMessageViewer(f908a1dc9ca40ab9).()->loadMessageToFeedAndArticleListcxx . . $ FeedMessageViewer#loadMessageToFeedAndArticleList(12e982556975822d).(feed, message);
844 }
845
846 void Applicationcxx . . $ Application#::showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event# event,
847 const GuiMessagecxx . . $ GuiMessage#& msg,
848 GuiMessageDestinationcxx . . $ GuiMessageDestination# dest,
849 const GuiActioncxx . . $ GuiAction#& action,
850 QWidgetcxx . . $ QWidget#* parent) {
851 QMetaObjectcxx . . $ QMetaObject#::invokeMethodcxx . . $ QMetaObject#invokeMethod(8b0e30ae6de741c4).(this,
852 "showGuiMessageCore",
853 Qtcxx . . $ Qt/::ConnectionTypecxx . . $ Qt/ConnectionType#::QueuedConnectioncxx . . $ Qt/QueuedConnection.,
854 Q_ARGcxx . . $ `<external>/4766508314589701758/qobjectdefs.h:63:9`!(Notification::Event, event),
855 Q_ARGcxx . . $ `<external>/4766508314589701758/qobjectdefs.h:63:9`!(const GuiMessage&, msg),
856 Q_ARGcxx . . $ `<external>/4766508314589701758/qobjectdefs.h:63:9`!(GuiMessageDestination, dest),
857 Q_ARGcxx . . $ `<external>/4766508314589701758/qobjectdefs.h:63:9`!(const GuiAction&, action),
858 Q_ARGcxx . . $ `<external>/4766508314589701758/qobjectdefs.h:63:9`!(QWidget*, parent));
859 }
860
861 WebViewercxx . . $ WebViewer#* Applicationcxx . . $ Application#::createWebViewcxx . . $ Application#createWebView(34cea7e5e7d4c856).() {
862 #if !defined(NO_LITEcxx . . $ `<built-in>:500:9`!)
863 return new TextBrowserViewer();
864 #else
865 if (forcedLitecxx . . $ Application#forcedLite(50ce9a9e25b4a850).()) {
866 return new TextBrowserViewercxx . . $ TextBrowserViewer#TextBrowserViewer(108f35f7aa7f3cf9).();
867 }
868 else {
869 return new WebEngineViewercxx . . $ WebEngineViewer#WebEngineViewer(108f35f7aa7f3cf9).();
870 }
871 #endif
872 }
873
874 bool Applicationcxx . . $ Application#::usingLitecxx . . $ Application#usingLite(50ce9a9e25b4a850).() const {
875 #if !defined(NO_LITEcxx . . $ `<built-in>:500:9`!)
876 return true;
877 #else
878 return forcedLitecxx . . $ Application#forcedLite(50ce9a9e25b4a850).();
879 #endif
880 }
881
882 bool Applicationcxx . . $ Application#::isWaylandcxx . . $ Application#isWayland(50ce9a9e25b4a850).() const {
883 return QGuiApplicationcxx . . $ QGuiApplication#::platformNamecxx . . $ QGuiApplication#platformName(4365c3963150523e).() ==cxx . . $ `operator==`(5bc2975d2d751687). QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("wayland");
884 }
885
886 void Applicationcxx . . $ Application#::onCommitDatacxx . . $ Application#onCommitData(2966477dbe58cfb1).(QSessionManagercxx . . $ QSessionManager#& manager) {
887 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). "OS asked application to commit its data.";
888
889 onAboutToQuitcxx . . $ Application#onAboutToQuit(49f6e7a06ebc5aa8).();
890
891 manager.setRestartHintcxx . . $ QSessionManager#setRestartHint(1c7793fd1a76079).(QSessionManagercxx . . $ QSessionManager#::RestartHintcxx . . $ QSessionManager#RestartHint#::RestartNevercxx . . $ QSessionManager#RestartNever.);
892 manager.releasecxx . . $ QSessionManager#release(49f6e7a06ebc5aa8).();
893 }
894
895 void Applicationcxx . . $ Application#::onSaveStatecxx . . $ Application#onSaveState(2966477dbe58cfb1).(QSessionManagercxx . . $ QSessionManager#& manager) {
896 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). "OS asked application to save its state.";
897
898 manager.setRestartHintcxx . . $ QSessionManager#setRestartHint(1c7793fd1a76079).(QSessionManagercxx . . $ QSessionManager#::RestartHintcxx . . $ QSessionManager#RestartHint#::RestartNevercxx . . $ QSessionManager#RestartNever.);
899 manager.releasecxx . . $ QSessionManager#release(49f6e7a06ebc5aa8).();
900 }
901
902 void Applicationcxx . . $ Application#::onAboutToQuitcxx . . $ Application#onAboutToQuit(49f6e7a06ebc5aa8).() {
903 if (m_quitLogicDonecxx . . $ Application#m_quitLogicDone.) {
904 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). "On-close logic is already done.";
905 return;
906 }
907
908 m_quitLogicDonecxx . . $ Application#m_quitLogicDone. = true;
909
910 // Make sure that we obtain close lock BEFORE even trying to quit the application.
911 const bool locked_safely = feedUpdateLockcxx . . $ Application#feedUpdateLock(e340107b1702aef2).()->tryLockcxx . . $ Mutex#tryLock(83c267b20bac841a).(4 * CLOSE_LOCK_TIMEOUTcxx . . $ `src/librssguard/definitions/definitions.h:74:9`!);
912
913 QCoreApplicationcxx . . $ QCoreApplication#::processEventscxx . . $ QCoreApplication#processEvents(5ce75b802d22674c).();
914 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). "Cleaning up resources and saving application state.";
915
916 if (locked_safely) {
917 // Application obtained permission to close in a safe way.
918 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). "Close lock was obtained safely.";
919
920 // We locked the lock to exit peacefully, unlock it to avoid warnings.
921 feedUpdateLockcxx . . $ Application#feedUpdateLock(e340107b1702aef2).()->unlockcxx . . $ Mutex#unlock(49f6e7a06ebc5aa8).();
922 }
923 else {
924 // Request for write lock timed-out. This means
925 // that some critical action can be processed right now.
926 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). "Close lock timed-out.";
927 }
928
929 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->feedReadercxx . . $ Application#feedReader(db5fdbb995cddeff).()->quitcxx . . $ FeedReader#quit(49f6e7a06ebc5aa8).();
930
931 try {
932 databasecxx . . $ Application#database(4a253a6ca99872d8).()->drivercxx . . $ DatabaseFactory#driver(5299be7c9afd522d).()->saveDatabasecxx . . $ DatabaseDriver#saveDatabase(c9857a73d68e59ba).();
933 }
934 catch (const ApplicationExceptioncxx . . $ ApplicationException#& ex) {
935 qCriticalNNcxx . . $ `src/librssguard/definitions/definitions.h:421:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_DBcxx . . $ `src/librssguard/definitions/definitions.h:180:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Error when saving DB:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(ex.message());
936 }
937
938 if (mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).() != nullptr) {
939 mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->saveSizecxx . . $ FormMain#saveSize(49f6e7a06ebc5aa8).();
940 }
941
942 settingscxx . . $ Application#settings(951936487a2d9252).()->synccxx . . $ QSettings#sync(49f6e7a06ebc5aa8).();
943
944 // Now, we can check if application should just quit or restart itself.
945 if (m_shouldRestartcxx . . $ Application#m_shouldRestart.) {
946 finishcxx . . $ SingleApplication#finish(49f6e7a06ebc5aa8).();
947 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). "Killing local peer connection to allow another instance to start.";
948
949 if (QProcesscxx . . $ QProcess#::startDetachedcxx . . $ QProcess#startDetached(2f84d32cdf697f60).(QDircxx . . $ QDir#::toNativeSeparatorscxx . . $ QDir#toNativeSeparators(fd988a2ab94d906b).(applicationFilePathcxx . . $ QCoreApplication#applicationFilePath(4365c3963150523e).()), argumentscxx . . $ QCoreApplication#arguments(346f0183abd8f69).().midcxx . . $ QList#mid(fd9a63c599b3e300).(1))) {
950 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 application instance was started.";
951 }
952 else {
953 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 application instance was not started successfully.";
954 }
955 }
956 }
957
958 void Applicationcxx . . $ Application#::showMessagesNumbercxx . . $ Application#showMessagesNumber(918ebd27a9ddbad3).(int unread_messages, bool any_feed_has_new_unread_messages) {
959 if (m_trayIconcxx . . $ Application#m_trayIcon. != nullptr) {
960 m_trayIconcxx . . $ Application#m_trayIcon.->setNumbercxx . . $ SystemTrayIcon#setNumber(918ebd27a9ddbad3).(unread_messages, any_feed_has_new_unread_messages);
961 }
962
963 // Use Qt function to set "badge" number directly in some cases.
964 #if defined(Q_OS_MACOS) && QT_VERSIONcxx . . $ `<external>/3898848398875472725/qtversionchecks.h:17:9`! >= 0x060500 // Qt >= 6.5.0
965 qApp->setBadgeNumber(unread_messages);
966 #else
967 #if defined(Q_OS_UNIXcxx . . $ `/usr/include/x86_64-linux-gnu/qt6/QtCore/qsystemdetection.h:149:11`!) && !defined(Q_OS_MACOS)
968 // Use D-Bus "LauncherEntry" service on Linux.
969 bool task_bar_count_enabled = settingscxx . . $ Application#settings(951936487a2d9252).()->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(GUI), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(GUI::UnreadNumbersOnTaskBar)).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).();
970 QDBusMessagecxx . . $ QDBusMessage# signal = QDBusMessagecxx . . $ QDBusMessage#::createSignalcxx . . $ QDBusMessage#createSignal(129141009e452cc5).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("/"), QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("com.canonical.Unity.LauncherEntry"), QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Update"));
971
972 signal <<cxx . . $ QDBusMessage#`operator<<`(ef5601b8018cb889). QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("application://%1.desktop").argcxx . . $ QString#arg(ad0bca07273edcc2).(APP_REVERSE_NAMEcxx . . $ `<built-in>:488:9`!);
973
974 QVariantMapcxx . . $ QVariantMap# setPropertycxx . . $ QMap#QMap(49f6e7a06ebc5aa8).;
975
976 setProperty.insertcxx . . $ QMap#insert(929a1ed410fe8423).("count"cxx . . $ QString#QString(85c52e162fed56f9)., qint64cxx . . $ QVariant#QVariant(1ca78f0f7b9b0ce5).(unread_messages));
977 setProperty.insertcxx . . $ QMap#insert(929a1ed410fe8423).("count-visible"cxx . . $ QString#QString(85c52e162fed56f9)., task_bar_count_enabledcxx . . $ QVariant#QVariant(9f0ba574c1c44ffc). && unread_messages > 0);
978
979 signal <<cxx . . $ QDBusMessage#`operator<<`(ef5601b8018cb889). setPropertycxx . . $ QVariant#QVariant(32f373bacf5935f9).;
980
981 QDBusConnectioncxx . . $ QDBusConnection#::sessionBuscxx . . $ QDBusConnection#sessionBus(45d475f1888103b2).().sendcxx . . $ QDBusConnection#send(88cf1e7c0a6f9f8e).(signal);
982 #elif defined(Q_OS_WIN)
983 // Use SetOverlayIcon Windows API method on Windows.
984 bool task_bar_count_enabled = settings()->value(GROUP(GUI), SETTING(GUI::UnreadNumbersOnTaskBar)).toBool();
985
986 if (m_mainForm != nullptr) {
987 bool any_count = task_bar_count_enabled && unread_messages > 0;
988 HRESULT overlay_result;
989
990 if (any_count) {
991 QImage overlay_icon = generateOverlayIcon(unread_messages);
992
993 #if QT_VERSION_MAJOR == 5
994 HICON overlay_hicon = QtWin::toHICON(QPixmap::fromImage(overlay_icon));
995 #else
996 HICON overlay_hicon = overlay_icon.toHICON();
997 #endif
998
999 overlay_result =
1000 m_windowsTaskBar->SetOverlayIcon(reinterpret_cast<HWND>(m_mainForm->winId()), overlay_hicon, nullptr);
1001
1002 DestroyIcon(overlay_hicon);
1003 }
1004 else {
1005 overlay_result = m_windowsTaskBar->SetOverlayIcon(reinterpret_cast<HWND>(m_mainForm->winId()), nullptr, nullptr);
1006 }
1007
1008 if (FAILED(overlay_result)) {
1009 qCriticalNN << LOGSEC_GUI << "Failed to set overlay icon with HRESULT:" << QUOTE_W_SPACE_DOT(overlay_result);
1010 }
1011 }
1012 else {
1013 qCriticalNN << LOGSEC_GUI << "Main form not set for setting numbers.";
1014 }
1015 #endif
1016 #endif
1017
1018 if (m_mainFormcxx . . $ Application#m_mainForm. != nullptr) {
1019 m_mainFormcxx . . $ Application#m_mainForm.->setWindowTitlecxx . . $ QWidget#setWindowTitle(3520e46b33348bf6).(unread_messages > 0
1020 ? QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("[%2] %1").argcxx . . $ QString#arg(89b093bd48b6d6c0).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(APP_LONG_NAMEcxx . . $ `<built-in>:484:9`!), QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(unread_messages))
1021 : QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(APP_LONG_NAMEcxx . . $ `<built-in>:484:9`!));
1022 }
1023 }
1024
1025 #if defined(Q_OS_WIN)
1026 QImage Application::generateOverlayIcon(int number) const {
1027 QImage img(128, 128, QImage::Format::Format_ARGB32);
1028 QPainter p;
1029 QString num_txt;
1030
1031 if (number < 1000) {
1032 num_txt = QString::number(number);
1033 }
1034 else if (number < 100000) {
1035 num_txt = QSL("%1k").arg(int(number / 1000));
1036 }
1037 else {
1038 num_txt = QChar(8734);
1039 }
1040
1041 QPainterPath rounded_rectangle;
1042 rounded_rectangle.addRoundedRect(QRectF(img.rect()), 15, 15);
1043 QFont fon = font();
1044
1045 if (num_txt.size() == 3) {
1046 fon.setPixelSize(img.width() * 0.52);
1047 }
1048 else if (num_txt.size() == 2) {
1049 fon.setPixelSize(img.width() * 0.68);
1050 }
1051 else {
1052 fon.setPixelSize(img.width() * 0.79);
1053 }
1054
1055 p.begin(&img);
1056 p.setFont(fon);
1057
1058 p.setRenderHint(QPainter::RenderHint::SmoothPixmapTransform, true);
1059 p.setRenderHint(QPainter::RenderHint::TextAntialiasing, true);
1060
1061 img.fill(Qt::GlobalColor::transparent);
1062
1063 p.fillPath(rounded_rectangle, Qt::GlobalColor::white);
1064
1065 p.setPen(Qt::GlobalColor::black);
1066 p.drawPath(rounded_rectangle);
1067
1068 p.drawText(img.rect().marginsRemoved(QMargins(0, 0, 0, img.height() * 0.05)),
1069 num_txt,
1070 QTextOption(Qt::AlignmentFlag::AlignCenter));
1071 p.end();
1072
1073 return img;
1074 }
1075 #endif
1076
1077 void Applicationcxx . . $ Application#::setupFontAntialiasingcxx . . $ Application#setupFontAntialiasing(49f6e7a06ebc5aa8).() {
1078 bool aa_enabled = qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(GUI), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(GUI::FontAntialiasing)).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).();
1079
1080 QFontcxx . . $ QFont# fon = QApplicationcxx . . $ QApplication#::fontcxx . . $ QApplication#font(a5342c57202bca31).();
1081 fon.setStyleStrategycxx . . $ QFont#setStyleStrategy(4368996cc451f1f7).(aa_enabled ? QFontcxx . . $ QFont#::StyleStrategycxx . . $ QFont#StyleStrategy#::PreferAntialiascxx . . $ QFont#PreferAntialias.
1082 : QFontcxx . . $ QFont#::StyleStrategycxx . . $ QFont#StyleStrategy#(QFontcxx . . $ QFont#::StyleStrategycxx . . $ QFont#StyleStrategy#::NoAntialiascxx . . $ QFont#NoAntialias. |
1083 QFontcxx . . $ QFont#::StyleStrategycxx . . $ QFont#StyleStrategy#::NoSubpixelAntialiascxx . . $ QFont#NoSubpixelAntialias.));
1084 QApplicationcxx . . $ QApplication#::setFontcxx . . $ QApplication#setFont(c3e7276391a65422).(fon);
1085 }
1086
1087 void Applicationcxx . . $ Application#::restartcxx . . $ Application#restart(49f6e7a06ebc5aa8).() {
1088 m_shouldRestartcxx . . $ Application#m_shouldRestart. = true;
1089 quitcxx . . $ QCoreApplication#quit(49f6e7a06ebc5aa8).();
1090 }
1091
1092 #if defined(NO_LITEcxx . . $ `<built-in>:500:9`!)
1093
1094 #if QT_VERSION_MAJORcxx . . $ `<external>/9758848313111604122/qconfig.h:67:9`! == 6
1095 void Applicationcxx . . $ Application#::downloadRequestedcxx . . $ Application#downloadRequested(41198ee43c7b8fa9).(QWebEngineDownloadRequestcxx . . $ QWebEngineDownloadRequest#* download_item) {
1096 #else
1097 void Application::downloadRequested(QWebEngineDownloadItem* download_item) {
1098 #endif
1099 downloadManagercxx . . $ Application#downloadManager(456f9618ee541670).()->downloadcxx . . $ DownloadManager#download(37355d2f77053a23).(download_item->urlcxx . . $ QWebEngineDownloadRequest#url(36d9834fe7321282).());
1100 download_item->cancelcxx . . $ QWebEngineDownloadRequest#cancel(49f6e7a06ebc5aa8).();
1101 download_item->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).();
1102 }
1103
1104 #endif
1105
1106 void Applicationcxx . . $ Application#::onFeedUpdatesStartedcxx . . $ Application#onFeedUpdatesStarted(49f6e7a06ebc5aa8).() {
1107 #if defined(Q_OS_WIN)
1108 // Use SetOverlayIcon Windows API method on Windows.
1109 bool task_bar_count_enabled = settings()->value(GROUP(GUI), SETTING(GUI::UnreadNumbersOnTaskBar)).toBool();
1110
1111 if (task_bar_count_enabled && m_mainForm != nullptr && m_windowsTaskBar != nullptr) {
1112 m_windowsTaskBar->SetProgressValue(reinterpret_cast<HWND>(m_mainForm->winId()), 1ul, 100ul);
1113 }
1114 #endif
1115 }
1116
1117 void Applicationcxx . . $ Application#::onFeedUpdatesProgresscxx . . $ Application#onFeedUpdatesProgress(e8151f2ee217e1b7).(const Feedcxx . . $ Feed#* feed, int current, int total) {
1118 #if defined(Q_OS_WIN)
1119 // Use SetOverlayIcon Windows API method on Windows.
1120 bool task_bar_count_enabled = settings()->value(GROUP(GUI), SETTING(GUI::UnreadNumbersOnTaskBar)).toBool();
1121
1122 if (task_bar_count_enabled && m_mainForm != nullptr && m_windowsTaskBar != nullptr) {
1123 m_windowsTaskBar->SetProgressValue(reinterpret_cast<HWND>(m_mainForm->winId()), current, total);
1124 }
1125 #endif
1126 }
1127
1128 void Applicationcxx . . $ Application#::onFeedUpdatesFinishedcxx . . $ Application#onFeedUpdatesFinished(327d7267a1e3b8f3).(const FeedDownloadResultscxx . . $ FeedDownloadResults#& results) {
1129 auto fds = results.updatedFeedscxx . . $ FeedDownloadResults#updatedFeeds(d6158a28bfdf01c).().keyscxx . . $ QHash#keys(bf6c511543d55010).();
1130 bool some_unquiet_feed = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(fds).anycxx . . $ boolinq/Linq#any(992a0234366b9b4f).([cxx . . $ std/function#function(bdc3712e480e4d04).](Feedcxx . . $ Feed#* fd) {
1131 return !fd->isQuietcxx . . $ Feed#isQuiet(50ce9a9e25b4a850).();
1132 });
1133
1134 if (some_unquiet_feed) {
1135 GuiMessagecxx . . $ GuiMessage# msg = {cxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).trcxx . . $ Application#tr(75d9f1c324b4579d).("Unread articles fetched"), QStringcxx . . $ QString#QString(ced63f7c635d850d).(), QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::NoIconcxx . . $ QSystemTrayIcon#NoIcon.};
1136
1137 if (m_toastNotificationscxx . . $ Application#m_toastNotifications. != nullptr) {
1138 // Show custom and richer overview of updated feeds and articles.
1139 msg.m_feedFetchResultscxx . . $ GuiMessage#m_feedFetchResults. =cxx . . $ FeedDownloadResults#`operator=`(e1a8b493c569b7be). results;
1140 }
1141 else {
1142 // Show simpler overview of updated feeds.
1143 msg.m_messagecxx . . $ GuiMessage#m_message. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). results.overviewcxx . . $ FeedDownloadResults#overview(3f3c3d0e9c0eb37f).(10);
1144 }
1145
1146 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::NewUnreadArticlesFetchedcxx . . $ Notification#Event#NewUnreadArticlesFetched., msg);
1147 }
1148
1149 #if defined(Q_OS_WIN)
1150 // Use SetOverlayIcon Windows API method on Windows.
1151 bool task_bar_count_enabled = settings()->value(GROUP(GUI), SETTING(GUI::UnreadNumbersOnTaskBar)).toBool();
1152
1153 if (task_bar_count_enabled && m_mainForm != nullptr && m_windowsTaskBar != nullptr) {
1154 m_windowsTaskBar->SetProgressState(reinterpret_cast<HWND>(m_mainForm->winId()), TBPFLAG::TBPF_NOPROGRESS);
1155 }
1156 #endif
1157 }
1158
1159 void Applicationcxx . . $ Application#::setupCustomDataFoldercxx . . $ Application#setupCustomDataFolder(3520e46b33348bf6).(const QStringcxx . . $ QString#& data_folder) {
1160 if (!QDircxx . . $ QDir#QDir(3520e46b33348bf6).().mkpathcxx . . $ QDir#mkpath(48f7a61be61bdeff).(data_folder)) {
1161 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). "Failed to create custom data path" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACEcxx . . $ `src/librssguard/definitions/definitions.h:432:9`!(data_folder)
1162 <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "thus falling back to standard setup.";
1163 m_customDataFoldercxx . . $ Application#m_customDataFolder. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QStringcxx . . $ QString#QString(ced63f7c635d850d).();
1164 return;
1165 }
1166
1167 // Disable single instance mode.
1168 m_allowMultipleInstancescxx . . $ Application#m_allowMultipleInstances. = true;
1169
1170 // Save custom data folder.
1171 m_customDataFoldercxx . . $ Application#m_customDataFolder. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). data_folder;
1172 }
1173
1174 void Applicationcxx . . $ Application#::setupWorkHorsePoolcxx . . $ Application#setupWorkHorsePool(49f6e7a06ebc5aa8).() {
1175 auto ideal_th_count = QThreadcxx . . $ QThread#::idealThreadCountcxx . . $ QThread#idealThreadCount(9efc7249d839d30e).();
1176 int custom_threads = m_cmdParsercxx . . $ Application#m_cmdParser..valuecxx . . $ QCommandLineParser#value(5555d9024dcf93fb).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_THREADScxx . . $ `src/librssguard/definitions/definitions.h:155:9`!)).toIntcxx . . $ QString#toInt(d7972accae11ee1f).();
1177
1178 if (custom_threads > 0) {
1179 m_workHorsePoolcxx . . $ Application#m_workHorsePool.->setMaxThreadCountcxx . . $ QThreadPool#setMaxThreadCount(d4f767463ce0a6b3).((stdcxx . . $ std/::mincxx . . $ std/min(2a338fce5842aa6a).)(MAX_THREADPOOL_THREADScxx . . $ `src/librssguard/definitions/definitions.h:101:9`!, custom_threads));
1180 }
1181 else if (ideal_th_count > 1) {
1182 m_workHorsePoolcxx . . $ Application#m_workHorsePool.->setMaxThreadCountcxx . . $ QThreadPool#setMaxThreadCount(d4f767463ce0a6b3).((stdcxx . . $ std/::mincxx . . $ std/min(2a338fce5842aa6a).)(MAX_THREADPOOL_THREADScxx . . $ `src/librssguard/definitions/definitions.h:101:9`!, 2 * ideal_th_count));
1183 }
1184
1185 #if QT_VERSIONcxx . . $ `<external>/3898848398875472725/qtversionchecks.h:17:9`! >= 0x060200 // Qt >= 6.2.0
1186 // Avoid competing with interactive processes/threads by running the
1187 // worker pool at a very low priority
1188 m_workHorsePoolcxx . . $ Application#m_workHorsePool.->setThreadPrioritycxx . . $ QThreadPool#setThreadPriority(bd4fe741c868f69f).(QThreadcxx . . $ QThread#::Prioritycxx . . $ QThread#Priority#::LowestPrioritycxx . . $ QThread#LowestPriority.);
1189 #endif
1190
1191 // NOTE: Do not expire threads so that their IDs are not reused.
1192 // This fixes cross-thread QSqlDatabase access.
1193 m_workHorsePoolcxx . . $ Application#m_workHorsePool.->setExpiryTimeoutcxx . . $ QThreadPool#setExpiryTimeout(d4f767463ce0a6b3).(-1);
1194
1195 #if QT_VERSION_MAJORcxx . . $ `<external>/9758848313111604122/qconfig.h:67:9`! == 5
1196 // NOTE: Qt 5 sadly does not allow to specify custom thread pool for
1197 // QtConcurrent::mapped() method, so we have to use global thread pool
1198 // there.
1199 QThreadPool::globalInstance()->setMaxThreadCount(m_workHorsePool->maxThreadCount());
1200 QThreadPool::globalInstance()->setExpiryTimeout(m_workHorsePool->expiryTimeout());
1201 #endif
1202 }
1203
1204 void Applicationcxx . . $ Application#::onAdBlockFailurecxx . . $ Application#onAdBlockFailure(49f6e7a06ebc5aa8).() {
1205 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::GeneralEventcxx . . $ Notification#Event#GeneralEvent.,
1206 {cxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).trcxx . . $ Application#tr(75d9f1c324b4579d).("AdBlock needs to be configured"),
1207 trcxx . . $ Application#tr(75d9f1c324b4579d).("AdBlock is not configured properly or failed to start. Go to \"Settings\" -> \"Node.js\" "
1208 "and check "
1209 "if your Node.js is properly configured."),
1210 QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Criticalcxx . . $ QSystemTrayIcon#Critical.},
1211 {cxx . . $ GuiMessageDestination#GuiMessageDestination(9e113dd3a0d25c95).true, true, false});
1212
1213 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->settingscxx . . $ Application#settings(951936487a2d9252).()->setValuecxx . . $ Settings#setValue(365356ede4ebaabb).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(AdBlock), AdBlockcxx . . $ AdBlock/::AdBlockEnabledcxx . . $ AdBlock/AdBlockEnabled., falsecxx . . $ QVariant#QVariant(9f0ba574c1c44ffc).);
1214 }
1215
1216 void Applicationcxx . . $ Application#::reloadCurrentSkincxx . . $ Application#reloadCurrentSkin(b45ddcbc8423892c).(bool replace_existing_qss) {
1217 m_skinscxx . . $ Application#m_skins.->loadCurrentSkincxx . . $ SkinFactory#loadCurrentSkin(b0b38cda41d4ede4).(usingLitecxx . . $ Application#usingLite(50ce9a9e25b4a850).(), replace_existing_qss);
1218 }
1219
1220 void Applicationcxx . . $ Application#::determineFirstRunscxx . . $ Application#determineFirstRuns(49f6e7a06ebc5aa8).() {
1221 m_firstRunEvercxx . . $ Application#m_firstRunEver. = settingscxx . . $ Application#settings(951936487a2d9252).()->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(General), SETTINGcxx . . $ `src/librssguard/miscellaneous/settings.h:30:9`!(General::FirstRun)).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).();
1222 m_firstRunCurrentVersioncxx . . $ Application#m_firstRunCurrentVersion. =
1223 settingscxx . . $ Application#settings(951936487a2d9252).()->valuecxx . . $ Settings#value(8f1f29a69568d71a).(GROUPcxx . . $ `src/librssguard/miscellaneous/settings.h:32:9`!(General), QStringcxx . . $ QString#QString(132dd6869045752b).(Generalcxx . . $ General/::FirstRuncxx . . $ General/FirstRun.) + QL1Ccxx . . $ `src/librssguard/definitions/definitions.h:455:9`!('_') + APP_VERSIONcxx . . $ `<built-in>:496:9`!, truecxx . . $ QVariant#QVariant(9f0ba574c1c44ffc).).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).();
1224
1225 eliminateFirstRunscxx . . $ Application#eliminateFirstRuns(49f6e7a06ebc5aa8).();
1226 }
1227
1228 void Applicationcxx . . $ Application#::parseCmdArgumentsFromOtherInstancecxx . . $ Application#parseCmdArgumentsFromOtherInstance(3520e46b33348bf6).(const QStringcxx . . $ QString#& message) {
1229 if (message.isEmptycxx . . $ QString#isEmpty(3482b152b9333168).()) {
1230 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). "No execution message received from other app instances.";
1231 return;
1232 }
1233
1234 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). "Received" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACEcxx . . $ `src/librssguard/definitions/definitions.h:432:9`!(message) <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "execution message.";
1235
1236 #if QT_VERSIONcxx . . $ `<external>/3898848398875472725/qtversionchecks.h:17:9`! >= 0x050F00 // Qt >= 5.15.0
1237 QStringListcxx . . $ QStringList# messages = message.splitcxx . . $ QString#split(404c44787f61d3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(ARGUMENTS_LIST_SEPARATORcxx . . $ `src/librssguard/definitions/definitions.h:57:9`!), Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::SplitBehaviorFlagscxx . . $ Qt/SplitBehaviorFlags#::SkipEmptyPartscxx . . $ Qt/SkipEmptyParts.);
1238 #else
1239 QStringList messages = message.split(QSL(ARGUMENTS_LIST_SEPARATOR), QString::SplitBehavior::SkipEmptyParts);
1240 #endif
1241
1242 QCommandLineParsercxx . . $ QCommandLineParser# cmd_parsercxx . . $ QCommandLineParser#QCommandLineParser(49f6e7a06ebc5aa8).;
1243
1244 messages.prependcxx . . $ QList#prepend(1262c8661f7a27a7).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->applicationFilePathcxx . . $ QCoreApplication#applicationFilePath(4365c3963150523e).());
1245
1246 cmd_parser.addOptioncxx . . $ QCommandLineParser#addOption(785b7e1f8b52cda9).(QCommandLineOptioncxx . . $ QCommandLineOption#({QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_QUIT_INSTANCEcxx . . $ `src/librssguard/definitions/definitions.h:152:9`!)}));
1247 cmd_parser.addOptioncxx . . $ QCommandLineParser#addOption(785b7e1f8b52cda9).(QCommandLineOptioncxx . . $ QCommandLineOption#({QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_IS_RUNNINGcxx . . $ `src/librssguard/definitions/definitions.h:153:9`!)}));
1248
1249 fillCmdArgumentsParsercxx . . $ Application#fillCmdArgumentsParser(28eb7bbde1396136).(cmd_parser);
1250
1251 if (!cmd_parser.parsecxx . . $ QCommandLineParser#parse(c63a3976d2485717).(messages)) {
1252 qCriticalNNcxx . . $ `src/librssguard/definitions/definitions.h:421:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_COREcxx . . $ `src/librssguard/definitions/definitions.h:178:9`! <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). cmd_parser.errorTextcxx . . $ QCommandLineParser#errorText(6ef7b6c27b00b43d).();
1253 }
1254
1255 if (cmd_parser.isSetcxx . . $ QCommandLineParser#isSet(f3b39adf77d9c36c).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_QUIT_INSTANCEcxx . . $ `src/librssguard/definitions/definitions.h:152:9`!))) {
1256 quitcxx . . $ QCoreApplication#quit(49f6e7a06ebc5aa8).();
1257 return;
1258 }
1259 else if (cmd_parser.isSetcxx . . $ QCommandLineParser#isSet(f3b39adf77d9c36c).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_IS_RUNNINGcxx . . $ `src/librssguard/definitions/definitions.h:153:9`!))) {
1260 showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::GeneralEventcxx . . $ Notification#Event#GeneralEvent.,
1261 {cxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).trcxx . . $ Application#tr(75d9f1c324b4579d).("Already running"),
1262 trcxx . . $ Application#tr(75d9f1c324b4579d).("Application is already running."),
1263 QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Informationcxx . . $ QSystemTrayIcon#Information.});
1264 mainFormcxx . . $ Application#mainForm(da73b49c3e1670d9).()->displaycxx . . $ FormMain#display(49f6e7a06ebc5aa8).();
1265 }
1266
1267 messages =cxx . . $ QList#`operator=`(da1cd3e1ddeb0856). cmd_parser.positionalArgumentscxx . . $ QCommandLineParser#positionalArguments(2b25566bdf736d18).();
1268
1269 for (const QStringcxx . . $ QString#& msg : stdcxx . . $ std/::as_constcxx . . $ std/as_const(1dc117cbefefc300).(messages)) {
1270 // Application was running, and someone wants to add new feed.
1271 ServiceRootcxx . . $ ServiceRoot#* rt = boolinqcxx . . $ boolinq/::fromcxx . . $ boolinq/from(1a44d082b2747720).(feedReadercxx . . $ Application#feedReader(db5fdbb995cddeff).()->feedsModelcxx . . $ FeedReader#feedsModel(9c5c1ec683fc5474).()->serviceRootscxx . . $ FeedsModel#serviceRoots(af687dfb2ba79ab4).()).firstOrDefaultcxx . . $ boolinq/Linq#firstOrDefault(72be2761f3eff290).([cxx . . $ std/function#function(bdc3712e480e4d04).](ServiceRootcxx . . $ ServiceRoot#* root) {
1272 return root->supportsFeedAddingcxx . . $ ServiceRoot#supportsFeedAdding(50ce9a9e25b4a850).();
1273 });
1274
1275 if (rt != nullptr) {
1276 rt->addNewFeedcxx . . $ ServiceRoot#addNewFeed(d47fda0a57dac307).(nullptr, msg);
1277 }
1278 else {
1279 showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::GeneralEventcxx . . $ Notification#Event#GeneralEvent.,
1280 {cxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).trcxx . . $ Application#tr(75d9f1c324b4579d).("Cannot add feed"),
1281 trcxx . . $ Application#tr(75d9f1c324b4579d).("Feed cannot be added because there is no active account which can add feeds."),
1282 QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Warningcxx . . $ QSystemTrayIcon#Warning.});
1283 }
1284 }
1285 }
1286
1287 void Applicationcxx . . $ Application#::parseCmdArgumentsFromMyInstancecxx . . $ Application#parseCmdArgumentsFromMyInstance(f38fcaadfe6bbf92).(const QStringListcxx . . $ QStringList#& raw_cli_args, QStringcxx . . $ QString#& custom_ua) {
1288 fillCmdArgumentsParsercxx . . $ Application#fillCmdArgumentsParser(28eb7bbde1396136).(m_cmdParsercxx . . $ Application#m_cmdParser.);
1289
1290 m_cmdParsercxx . . $ Application#m_cmdParser..setApplicationDescriptioncxx . . $ QCommandLineParser#setApplicationDescription(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(APP_NAMEcxx . . $ `<built-in>:487:9`!));
1291 m_cmdParsercxx . . $ Application#m_cmdParser..setSingleDashWordOptionModecxx . . $ QCommandLineParser#setSingleDashWordOptionMode(6a29231968589d8).(QCommandLineParsercxx . . $ QCommandLineParser#::SingleDashWordOptionModecxx . . $ QCommandLineParser#SingleDashWordOptionMode#::ParseAsLongOptionscxx . . $ QCommandLineParser#ParseAsLongOptions.);
1292
1293 if (!m_cmdParsercxx . . $ Application#m_cmdParser..parsecxx . . $ QCommandLineParser#parse(c63a3976d2485717).(raw_cli_args)) {
1294 qCriticalNNcxx . . $ `src/librssguard/definitions/definitions.h:421:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_COREcxx . . $ `src/librssguard/definitions/definitions.h:178:9`! <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). m_cmdParsercxx . . $ Application#m_cmdParser..errorTextcxx . . $ QCommandLineParser#errorText(6ef7b6c27b00b43d).();
1295 }
1296
1297 s_customLogFilecxx . . $ s_customLogFile. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). m_cmdParsercxx . . $ Application#m_cmdParser..valuecxx . . $ QCommandLineParser#value(5555d9024dcf93fb).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_LOG_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:125:9`!));
1298
1299 if (s_customLogFilecxx . . $ s_customLogFile..startsWithcxx . . $ QString#startsWith(7cf081d1b6a1defd).('\''cxx . . $ QChar#QChar(93d577a3e9528307).)) {
1300 s_customLogFilecxx . . $ s_customLogFile. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). s_customLogFilecxx . . $ s_customLogFile..midcxx . . $ QString#mid(5eea715ff28b9227).(1);
1301 }
1302
1303 if (s_customLogFilecxx . . $ s_customLogFile..endsWithcxx . . $ QString#endsWith(7cf081d1b6a1defd).('\''cxx . . $ QChar#QChar(93d577a3e9528307).)) {
1304 s_customLogFilecxx . . $ s_customLogFile..chopcxx . . $ QString#chop(35cb52607f6af42f).(1);
1305 }
1306
1307 if (m_cmdParsercxx . . $ Application#m_cmdParser..isSetcxx . . $ QCommandLineParser#isSet(f3b39adf77d9c36c).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_NDEBUG_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:146:9`!))) {
1308 QLoggingCategorycxx . . $ QLoggingCategory#::setFilterRulescxx . . $ QLoggingCategory#setFilterRules(3520e46b33348bf6).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("*.debug=false"));
1309 }
1310
1311 if (!m_cmdParsercxx . . $ Application#m_cmdParser..valuecxx . . $ QCommandLineParser#value(5555d9024dcf93fb).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_DAT_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:128:9`!)).isEmptycxx . . $ QString#isEmpty(3482b152b9333168).()) {
1312 auto data_folder = QDircxx . . $ QDir#::toNativeSeparatorscxx . . $ QDir#toNativeSeparators(fd988a2ab94d906b).(m_cmdParsercxx . . $ Application#m_cmdParser..valuecxx . . $ QCommandLineParser#value(5555d9024dcf93fb).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_DAT_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:128:9`!)));
1313
1314 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). "User wants to use custom directory for user data (and disable single instance mode):"
1315 <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(data_folder);
1316
1317 setupCustomDataFoldercxx . . $ Application#setupCustomDataFolder(3520e46b33348bf6).(data_folder);
1318 }
1319 else {
1320 m_allowMultipleInstancescxx . . $ Application#m_allowMultipleInstances. = false;
1321 }
1322
1323 if (m_cmdParsercxx . . $ Application#m_cmdParser..isSetcxx . . $ QCommandLineParser#isSet(f3b39adf77d9c36c).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_HELP_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:122:9`!))) {
1324 m_cmdParsercxx . . $ Application#m_cmdParser..showHelpcxx . . $ QCommandLineParser#showHelp(d4f767463ce0a6b3).();
1325 }
1326 else if (m_cmdParsercxx . . $ Application#m_cmdParser..isSetcxx . . $ QCommandLineParser#isSet(f3b39adf77d9c36c).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_VER_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:119:9`!))) {
1327 m_cmdParsercxx . . $ Application#m_cmdParser..showVersioncxx . . $ QCommandLineParser#showVersion(49f6e7a06ebc5aa8).();
1328 }
1329
1330 #if defined(NO_LITEcxx . . $ `<built-in>:500:9`!)
1331 m_forcedLitecxx . . $ Application#m_forcedLite. = m_cmdParsercxx . . $ Application#m_cmdParser..isSetcxx . . $ QCommandLineParser#isSet(f3b39adf77d9c36c).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_FORCE_LITE_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:149:9`!));
1332
1333 if (m_forcedLitecxx . . $ Application#m_forcedLite.) {
1334 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). "Forcing no-web-engine.";
1335 }
1336 #endif
1337
1338 if (m_cmdParsercxx . . $ Application#m_cmdParser..isSetcxx . . $ QCommandLineParser#isSet(f3b39adf77d9c36c).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_SIN_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:131:9`!))) {
1339 m_allowMultipleInstancescxx . . $ Application#m_allowMultipleInstances. = true;
1340 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). "Explicitly allowing this instance to run.";
1341 }
1342
1343 if (m_cmdParsercxx . . $ Application#m_cmdParser..isSetcxx . . $ QCommandLineParser#isSet(f3b39adf77d9c36c).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_NSTDOUTERR_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:140:9`!))) {
1344 s_disableDebugcxx . . $ s_disableDebug. = true;
1345 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). "Disabling any stdout/stderr outputs.";
1346 }
1347
1348 if (!m_cmdParsercxx . . $ Application#m_cmdParser..valuecxx . . $ QCommandLineParser#value(5555d9024dcf93fb).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_ADBLOCKPORT_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:137:9`!)).isEmptycxx . . $ QString#isEmpty(3482b152b9333168).()) {
1349 m_customAdblockPortcxx . . $ Application#m_customAdblockPort. = m_cmdParsercxx . . $ Application#m_cmdParser..valuecxx . . $ QCommandLineParser#value(5555d9024dcf93fb).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_ADBLOCKPORT_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:137:9`!)).toIntcxx . . $ QString#toInt(d7972accae11ee1f).();
1350
1351 qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_ADBLOCKcxx . . $ `src/librssguard/definitions/definitions.h:169:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Setting custom server port.";
1352 }
1353 else {
1354 m_customAdblockPortcxx . . $ Application#m_customAdblockPort. = 0;
1355 }
1356
1357 custom_ua =cxx . . $ QString#`operator=`(4f35bf974e7f8568). m_cmdParsercxx . . $ Application#m_cmdParser..valuecxx . . $ QCommandLineParser#value(5555d9024dcf93fb).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_USERAGENT_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:134:9`!));
1358 }
1359
1360 void Applicationcxx . . $ Application#::displayLogcxx . . $ Application#displayLog(49f6e7a06ebc5aa8).() {
1361 if (m_logFormcxx . . $ Application#m_logForm. == nullptr) {
1362 m_logFormcxx . . $ Application#m_logForm. = new FormLogcxx . . $ FormLog#FormLog(108f35f7aa7f3cf9).(m_mainFormcxx . . $ Application#m_mainForm.);
1363
1364 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(this,
1365 &Applicationcxx . . $ Application#::sendLogToDialogcxx . . $ Application#sendLogToDialog(7df51288a9ebd664).,
1366 m_logFormcxx . . $ Application#m_logForm.,
1367 &FormLogcxx . . $ FormLog#::appendLogMessagecxx . . $ FormLog#appendLogMessage(3520e46b33348bf6).,
1368 Qtcxx . . $ Qt/::ConnectionTypecxx . . $ Qt/ConnectionType#::QueuedConnectioncxx . . $ Qt/QueuedConnection.);
1369 }
1370
1371 m_logFormcxx . . $ Application#m_logForm.->closecxx . . $ QWidget#close(c9857a73d68e59ba).();
1372 m_logFormcxx . . $ Application#m_logForm.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).();
1373 }
1374
1375 void Applicationcxx . . $ Application#::fillCmdArgumentsParsercxx . . $ Application#fillCmdArgumentsParser(28eb7bbde1396136).(QCommandLineParsercxx . . $ QCommandLineParser#& parser) {
1376 QCommandLineOptioncxx . . $ QCommandLineOption# helpcxx . . $ QCommandLineOption#QCommandLineOption(7e68d796f0dbdad8).({cxx . . $ QList#QList(b6da5b9a9f304025).QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_HELP_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:122:9`!), QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_HELP_LONGcxx . . $ `src/librssguard/definitions/definitions.h:123:9`!)}, QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Displays overview of CLI."));
1377 QCommandLineOptioncxx . . $ QCommandLineOption# versioncxx . . $ QCommandLineOption#QCommandLineOption(7e68d796f0dbdad8).({cxx . . $ QList#QList(b6da5b9a9f304025).QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_VER_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:119:9`!), QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_VER_LONGcxx . . $ `src/librssguard/definitions/definitions.h:120:9`!)}, QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Displays version of the application."));
1378 QCommandLineOptioncxx . . $ QCommandLineOption#
1379 log_filecxx . . $ QCommandLineOption#QCommandLineOption(7e68d796f0dbdad8).({cxx . . $ QList#QList(b6da5b9a9f304025).QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_LOG_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:125:9`!), QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_LOG_LONGcxx . . $ `src/librssguard/definitions/definitions.h:126:9`!)},
1380 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Write application debug log to file. Note that logging to file may slow application down."),
1381 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("log-file"));
1382 QCommandLineOptioncxx . . $ QCommandLineOption#
1383 custom_data_foldercxx . . $ QCommandLineOption#QCommandLineOption(7e68d796f0dbdad8).({cxx . . $ QList#QList(b6da5b9a9f304025).QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_DAT_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:128:9`!), QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_DAT_LONGcxx . . $ `src/librssguard/definitions/definitions.h:129:9`!)},
1384 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Use custom folder for user data and disable single instance application mode."),
1385 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("user-data-folder"));
1386 QCommandLineOptioncxx . . $ QCommandLineOption# disable_singleinstancecxx . . $ QCommandLineOption#QCommandLineOption(7e68d796f0dbdad8).({cxx . . $ QList#QList(b6da5b9a9f304025).QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_SIN_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:131:9`!), QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_SIN_LONGcxx . . $ `src/librssguard/definitions/definitions.h:132:9`!)},
1387 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Allow running of multiple application instances."));
1388
1389 #if defined(NO_LITEcxx . . $ `<built-in>:500:9`!)
1390 QCommandLineOptioncxx . . $ QCommandLineOption# force_litecxx . . $ QCommandLineOption#QCommandLineOption(7e68d796f0dbdad8).({cxx . . $ QList#QList(b6da5b9a9f304025).QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_FORCE_LITE_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:149:9`!), QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_FORCE_LITE_LONGcxx . . $ `src/librssguard/definitions/definitions.h:150:9`!)},
1391 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Force lite variant of application."));
1392 #endif
1393
1394 QCommandLineOptioncxx . . $ QCommandLineOption# disable_only_debugcxx . . $ QCommandLineOption#QCommandLineOption(7e68d796f0dbdad8).({cxx . . $ QList#QList(b6da5b9a9f304025).QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_NDEBUG_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:146:9`!), QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_NDEBUG_LONGcxx . . $ `src/librssguard/definitions/definitions.h:147:9`!)},
1395 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Disable just \"debug\" output."));
1396 QCommandLineOptioncxx . . $ QCommandLineOption# disable_debugcxx . . $ QCommandLineOption#QCommandLineOption(7e68d796f0dbdad8).({cxx . . $ QList#QList(b6da5b9a9f304025).QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_NSTDOUTERR_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:140:9`!), QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_NSTDOUTERR_LONGcxx . . $ `src/librssguard/definitions/definitions.h:141:9`!)},
1397 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Completely disable stdout/stderr outputs."));
1398 QCommandLineOptioncxx . . $ QCommandLineOption# forced_stylecxx . . $ QCommandLineOption#QCommandLineOption(7e68d796f0dbdad8).({cxx . . $ QList#QList(b6da5b9a9f304025).QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_STYLE_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:143:9`!), QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_STYLE_LONGcxx . . $ `src/librssguard/definitions/definitions.h:144:9`!)},
1399 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Force some application style."),
1400 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("style-name"));
1401
1402 QCommandLineOptioncxx . . $ QCommandLineOption# custom_uacxx . . $ QCommandLineOption#QCommandLineOption(7e68d796f0dbdad8).({cxx . . $ QList#QList(b6da5b9a9f304025).QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_USERAGENT_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:134:9`!), QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_USERAGENT_LONGcxx . . $ `src/librssguard/definitions/definitions.h:135:9`!)},
1403 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("User custom User-Agent HTTP header for all network requests. This option "
1404 "takes precedence over User-Agent set via application settings."),
1405 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("user-agent"));
1406 QCommandLineOptioncxx . . $ QCommandLineOption#
1407 adblock_portcxx . . $ QCommandLineOption#QCommandLineOption(7e68d796f0dbdad8).({cxx . . $ QList#QList(b6da5b9a9f304025).QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_ADBLOCKPORT_SHORTcxx . . $ `src/librssguard/definitions/definitions.h:137:9`!), QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_ADBLOCKPORT_LONGcxx . . $ `src/librssguard/definitions/definitions.h:138:9`!)},
1408 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Use custom port for AdBlock server. It is highly recommended to use values higher than 1024."),
1409 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("port"));
1410
1411 QCommandLineOptioncxx . . $ QCommandLineOption# custom_threadscxx . . $ QCommandLineOption#QCommandLineOption(6d8ce341bc76c5ea).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(CLI_THREADScxx . . $ `src/librssguard/definitions/definitions.h:155:9`!),
1412 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Specify number of threads. Note that number cannot be higher than %1.")
1413 .argcxx . . $ QString#arg(ed67e9a87de2cd4e).(MAX_THREADPOOL_THREADScxx . . $ `src/librssguard/definitions/definitions.h:101:9`!),
1414 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("count"));
1415
1416 parser.addOptionscxx . . $ QCommandLineParser#addOptions(fc0406408cd735d8).({cxx . . $ QList#QList(b6da5b9a9f304025).help,
1417 version,
1418 log_file,
1419 custom_data_folder,
1420 disable_singleinstance,
1421 disable_only_debug,
1422 disable_debug,
1423 #if defined(NO_LITEcxx . . $ `<built-in>:500:9`!)
1424 force_lite,
1425 #endif
1426 forced_style,
1427 adblock_port,
1428 custom_ua,
1429 custom_threads});
1430 parser.addPositionalArgumentcxx . . $ QCommandLineParser#addPositionalArgument(9f9ceb6f9de3a67b).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("urls"),
1431 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("List of URL addresses pointing to individual online feeds which should be added."),
1432 QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("[url-1 ... url-n]"));
1433 }
1434
1435 void Applicationcxx . . $ Application#::onNodeJsPackageUpdateErrorcxx . . $ Application#onNodeJsPackageUpdateError(c66daf909bbebbbc).(const QObjectcxx . . $ QObject#* sndr,
1436 const QListcxx . . $ QList#<NodeJscxx . . $ NodeJs#::PackageMetadatacxx . . $ NodeJs#PackageMetadata#>& pkgs,
1437 const QStringcxx . . $ QString#& error) {
1438 Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(sndr)
1439 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::NodePackageFailedToUpdatecxx . . $ Notification#Event#NodePackageFailedToUpdate.,
1440 {cxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("Node.js"),
1441 trcxx . . $ Application#tr(75d9f1c324b4579d).("Packages were NOT updated because of error: %2. Affected packages:\n%1")
1442 .argcxx . . $ QString#arg(89b093bd48b6d6c0).(NodeJscxx . . $ NodeJs#::packagesToStringcxx . . $ NodeJs#packagesToString(37164ffcabd0cc41).(pkgs), error),
1443 QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Criticalcxx . . $ QSystemTrayIcon#Critical.});
1444 }
1445
1446 void Applicationcxx . . $ Application#::onNodeJsPackageInstalledcxx . . $ Application#onNodeJsPackageInstalled(34ac6af3085f0564).(const QObjectcxx . . $ QObject#* sndr,
1447 const QListcxx . . $ QList#<NodeJscxx . . $ NodeJs#::PackageMetadatacxx . . $ NodeJs#PackageMetadata#>& pkgs,
1448 bool already_up_to_date) {
1449 Q_UNUSEDcxx . . $ `<external>/17563275351362271547/qtpreprocessorsupport.h:20:9`!(sndr)
1450 if (!already_up_to_date) {
1451 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->showGuiMessagecxx . . $ Application#showGuiMessage(cf433640a87c3b52).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event#::NodePackageUpdatedcxx . . $ Notification#Event#NodePackageUpdated.,
1452 {cxx . . $ GuiMessage#GuiMessage(b833bfd374dccacd).trcxx . . $ Application#tr(75d9f1c324b4579d).("Node.js"),
1453 trcxx . . $ Application#tr(75d9f1c324b4579d).("These packages were installed/updated:\n%1").argcxx . . $ QString#arg(ad0bca07273edcc2).(NodeJscxx . . $ NodeJs#::packagesToStringcxx . . $ NodeJs#packagesToString(37164ffcabd0cc41).(pkgs)),
1454 QSystemTrayIconcxx . . $ QSystemTrayIcon#::MessageIconcxx . . $ QSystemTrayIcon#MessageIcon#::Informationcxx . . $ QSystemTrayIcon#Information.});
1455 }
1456 }
1457
1458 QStringcxx . . $ QString# Applicationcxx . . $ Application#::customDataFoldercxx . . $ Application#customDataFolder(6ef7b6c27b00b43d).() const {
1459 return m_customDataFoldercxx . . $ QString#QString(132dd6869045752b).;
1460 }