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

//
// pEpUpdater.h
// pEpMacOSAdapter
//
// Created by Volker Birk on 26.05.20.
// Copyleft © 2020 p≡p foundation.
// This file is under GNU General Public License 3.0
//
#import <Foundation/Foundation.h>
#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