31 #include <QMainWindow>
35 #include <QSystemTrayIcon>
43 class QFileSystemWatcher;
66 struct DownloadResult;
79 explicit MainWindow(QWidget *parent =
nullptr);
97 #if (defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)) && defined(QT_DBUS_LIB)
98 int getNotificationTimeout()
const;
99 void setNotificationTimeout(
int value);
191 void on_actionCloseWindow_triggered();
193 void toggleVisibility(
const QSystemTrayIcon::ActivationReason reason = QSystemTrayIcon::Trigger);
199 void setupDockClickHandler();
204 void installPython();
212 bool event(QEvent *
e)
override;
264 #if (defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)) && defined(QT_DBUS_LIB)
268 #if defined(Q_OS_WIN) || defined(Q_OS_MACOS)
269 void checkProgramUpdate(
bool invokedByUser);
270 void handleUpdateCheckFinished(
ProgramUpdater *updater,
bool invokedByUser);
272 QTimer *m_programUpdateTimer =
nullptr;
void handleDownloadFromUrlFailure(const QString &, const QString &) const
void showStatusBar(bool show)
void downloadFromURLList(const QStringList &urlList)
QPointer< AboutDialog > m_aboutDlg
void showNotificationBalloon(const QString &title, const QString &msg) const
PropertiesWidget * m_propertiesWidget
void toggleAlternativeSpeeds()
TransferListWidget * transferListWidget() const
SettingValue< bool > m_storeNotificationEnabled
void on_actionOptions_triggered()
void on_actionAutoHibernate_toggled(bool)
SettingValue< bool > m_storeNotificationTorrentAdded
void on_actionNormalMessages_triggered(bool checked)
QPointer< TorrentCreatorDialog > m_createTorrentDlg
void askRecursiveTorrentDownloadConfirmation(BitTorrent::Torrent *const torrent)
void on_actionAutoSuspend_toggled(bool)
void fullDiskError(BitTorrent::Torrent *const torrent, const QString &msg) const
void createKeyboardShortcuts()
PropertiesWidget * propertiesWidget() const
TransferListWidget * m_transferListWidget
void createTrayIconMenu()
void on_actionShowStatusbar_triggered()
void on_actionDonateMoney_triggered()
void finishedTorrent(BitTorrent::Torrent *const torrent) const
void on_actionOpen_triggered()
void closeEvent(QCloseEvent *) override
void toolbarMenuRequested(const QPoint &point)
void setExecutionLogEnabled(bool value)
void on_actionAbout_triggered()
void dragEnterEvent(QDragEnterEvent *event) override
Log::MsgTypes executionLogMsgTypes() const
void keyPressEvent(QKeyEvent *event) override
void setNotificationsEnabled(bool value)
void addToolbarContextMenu()
void on_actionCriticalMessages_triggered(bool checked)
QPointer< StatusBar > m_statusBar
void createTorrentTriggered(const QString &path={})
SettingValue< bool > m_storeExecutionLogEnabled
void clearUILockPassword()
void torrentNew(BitTorrent::Torrent *const torrent) const
SettingValue< bool > m_storeDownloadTrackerFavicon
void on_actionAutoExit_toggled(bool)
void on_actionSearchWidget_triggered()
void on_actionDocumentation_triggered() const
void updateAltSpeedsBtn(bool alternative)
QFileSystemWatcher * m_executableWatcher
void on_actionTopToolBar_triggered()
void tabChanged(int newTab)
void setTorrentAddedNotificationsEnabled(bool value)
QPointer< ExecutionLogWidget > m_executionLog
QPointer< OptionsDialog > m_options
QAction * m_queueSeparatorMenu
void showFilterContextMenu(const QPoint &)
void showConnectionSettings()
LineEdit * m_searchFilter
CachedSettingValue< Log::MsgTypes > m_storeExecutionLogTypes
bool m_displaySpeedInTitle
void on_actionInformationMessages_triggered(bool checked)
void updatePowerManagementState()
MainWindow(QWidget *parent=nullptr)
QPointer< QTabWidget > m_tabs
void addTorrentFailed(const QString &error) const
void displayExecutionLogTab()
void handleRSSUnreadCountUpdated(int count)
void reloadSessionStats()
QPointer< StatsDialog > m_statsDlg
void setExecutionLogMsgTypes(Log::MsgTypes value)
void on_actionAutoShutdown_toggled(bool)
bool isTorrentAddedNotificationsEnabled() const
QPointer< QSystemTrayIcon > m_systrayIcon
void on_actionExit_triggered()
void toolbarFollowSystem()
QPointer< DownloadFromURLDialog > m_downloadFromURLDialog
QPointer< SearchWidget > m_searchWidget
void showEvent(QShowEvent *) override
bool isDownloadTrackerFavicon() const
void on_actionRSSReader_triggered()
QWidget * currentTabWidget() const
bool defineUILockPassword()
void on_actionLock_triggered()
TransferListFiltersWidget * m_transferListFiltersWidget
void on_actionWarningMessages_triggered(bool checked)
void toggleVisibility(const QSystemTrayIcon::ActivationReason reason=QSystemTrayIcon::Trigger)
void on_actionSetGlobalSpeedLimits_triggered()
QPointer< RSSWidget > m_rssWidget
QAction * m_searchFilterAction
void displayTransferTab() const
void on_actionCreateTorrent_triggered()
QAction * m_queueSeparator
void on_actionDownloadFromURL_triggered()
bool isExecutionLogEnabled() const
void notifyOfUpdate(const QString &)
void on_actionStatistics_triggered()
void setDownloadTrackerFavicon(bool value)
void on_actionExecutionLogs_triggered(bool checked)
QPointer< QMenu > m_trayIconMenu
bool event(QEvent *e) override
void dropEvent(QDropEvent *event) override
void reloadTorrentStats(const QVector< BitTorrent::Torrent * > &torrents)
void createTrayIcon(int retries)
void on_actionSpeedInTitleBar_triggered()
bool isNotificationsEnabled() const
void systemTrayIconCreated()
T value(const QString &key, const T &defaultValue={})