// // pEpUpdater.h // pEpMacOSAdapter // // Created by Volker Birk on 26.05.20. // Copyright © 2020 p≡p foundation. All rights reserved. // This file is under GNU General Public License 3.0 // #import #import "PEPMacOSAdapterProtocol.h" /// object encapsulating the update client functionality of downloadclient @interface pEpUpdater : NSObject /// default 2 hours = 7200 seconds @property (retain) NSTimer* timer; /// path with config files @property (retain) NSString* configPath; /// subscriber for notifications @property (retain) PEPNotification* subscriber; /// initializes the pEpUpdater - (id)init; /// schedules updates each 2 hours - (void)scheduleUpdates; /// stop auto updates - (void)stopUpdates; /// update all configured software - (void)updateAll:(NSTimer*)timer; /// update software described by config file - (void)updateWithFile:(NSString*)configFile error:(NSError **)err; /// update a product from URL of update server - (void)update:(NSString*)name usingUrl:(NSString*)url; @end