@@ -32,13 +32,7 @@ enum tm_updater_state {
3232
3333class tm_updater {
3434protected:
35- static const int MinimumCheckInterval= 24 ; // <! in hours
36- static const int MaximumCheckInterval= 24 * 31 ; // <! in hours
37-
38- url appcast;
39- int interval;
40-
41- tm_updater () : interval (0 ) {}
35+ tm_updater () {}
4236 tm_updater (const tm_updater&);
4337 void operator = (const tm_updater&);
4438 virtual ~tm_updater () {};
@@ -47,15 +41,8 @@ class tm_updater {
4741 static tm_updater* instance ();
4842
4943 virtual bool checkInBackground () { return false ; } // non-blocking
50- virtual bool checkInForeground () { return false ; } // non-blocking
51- virtual bool isRunning () const { return false ; }
5244
5345 virtual time_t lastCheck () const { return 0 ; }
54- virtual bool getCheckInterval () const { return interval; }
55- virtual bool setCheckInterval (int hours) {
56- (void ) hours;
57- return false ;
58- }
5946
6047 virtual tm_updater_state state () const { return UPDATER_IDLE ; }
6148 virtual string availableVersion () const { return string (); }
@@ -64,20 +51,13 @@ class tm_updater {
6451 virtual string errorCode () const { return string (); }
6552 virtual bool downloadUpdate () { return false ; }
6653 virtual bool applyUpdate () { return false ; }
67- virtual bool setAppcast (url _url) {
68- appcast= _url;
69- return true ;
70- }
7154};
7255
7356/* *****************************************************************************
7457 * Scheme interface
7558 ******************************************************************************/
7659
77- bool updater_is_running ();
7860bool updater_check_background ();
79- bool updater_check_foreground ();
80- bool updater_set_interval (int hours);
8161time_t updater_last_check ();
8262
8363int updater_state ();
0 commit comments