Extract desktop integration stuff into separate class

PR #17313.
This commit is contained in:
Vladimir Golovnev
2022-07-09 08:06:22 +03:00
committed by GitHub
parent 2ef059807a
commit 890630944d
12 changed files with 541 additions and 347 deletions

View File

@@ -67,6 +67,7 @@ namespace RSS
}
#ifndef DISABLE_GUI
class DesktopIntegration;
class MainWindow;
using BaseApplication = QApplication;
@@ -124,7 +125,11 @@ public:
#endif
#ifndef DISABLE_GUI
DesktopIntegration *desktopIntegration() override;
MainWindow *mainWindow() override;
bool isTorrentAddedNotificationsEnabled() const override;
void setTorrentAddedNotificationsEnabled(bool value) override;
#endif
private slots:
@@ -194,6 +199,9 @@ private:
#endif
#ifndef DISABLE_GUI
SettingValue<bool> m_storeNotificationTorrentAdded;
DesktopIntegration *m_desktopIntegration = nullptr;
MainWindow *m_window = nullptr;
#endif