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.
pEpMacOSAdapter/pEpMacOSAdapter/pEpUpdater.h

44 lines
1.0 KiB

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