pEp macOS Desktop adapter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.0 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. //
  2. // pEpUpdater.h
  3. // pEpMacOSAdapter
  4. //
  5. // Created by Volker Birk on 26.05.20.
  6. // Copyright © 2020 p≡p foundation. All rights reserved.
  7. // This file is under GNU General Public License 3.0
  8. //
  9. #import <Foundation/Foundation.h>
  10. #import "pEpMacOSAdapterProtocol.h"
  11. /// object encapsulating the update client functionality of downloadclient
  12. @interface pEpUpdater : NSObject
  13. /// default 2 hours = 7200 seconds
  14. @property (retain) NSTimer* timer;
  15. /// path with config files
  16. @property (retain) NSString* configPath;
  17. /// subscriber for notifications
  18. @property (retain) pEpNotification* subscriber;
  19. /// initializes the pEpUpdater
  20. - (id)init;
  21. /// schedules updates each 2 hours
  22. - (void)scheduleUpdates;
  23. /// stop auto updates
  24. - (void)stopUpdates;
  25. /// update all configured software
  26. - (void)updateAll:(NSTimer*)timer;
  27. /// update software described by config file
  28. - (void)updateWithFile:(NSString*)configFile error:(NSError **)err;
  29. /// update a product from URL of update server
  30. - (void)update:(NSString*)name usingUrl:(NSString*)url;
  31. @end