Check for program updates every 15min and allow the user to manually check for updates through the help menu.

This commit is contained in:
sledgehammer999
2013-11-23 14:58:03 +02:00
parent 45d1e93ad2
commit 17188e31c5
3 changed files with 53 additions and 9 deletions

View File

@@ -199,6 +199,10 @@ private:
// Power Management
PowerManagement *m_pwr;
QTimer *preventTimer;
#if defined(Q_WS_WIN) || defined(Q_WS_MAC)
QTimer programUpdateTimer;
bool checkingProgramUpdate;
#endif
private slots:
void on_actionSearch_engine_triggered();
@@ -213,6 +217,9 @@ private slots:
void on_actionAutoShutdown_system_toggled(bool );
// Check for active torrents and set preventing from suspend state
void checkForActiveTorrents();
#if defined(Q_WS_WIN) || defined(Q_WS_MAC)
void checkProgramUpdate();
#endif
};
#endif