|
//
|
|
// PEPUpdateDownloader.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 <Foundation/Foundation.h>
|
|
#import "PEPNotificationXPCApiProtocol.h"
|
|
|
|
/// Object encapsulating the update client functionality of downloadclient
|
|
@interface PEPUpdateDownloader : NSObject
|
|
|
|
/// Subscriber for update downloads notifications
|
|
@property (retain) id<PEPNotificationXPCApiProtocol> subscriber;
|
|
|
|
/// Initializes the PEPUpdateDownloader
|
|
- (id)init;
|
|
|
|
/// Schedules to check for update downloads every 2 hours.
|
|
- (void)scheduleUpdates;
|
|
|
|
/// Stop schedule the update downloads.
|
|
- (void)stopUpdates;
|
|
|
|
/// Trigger the download of available updates for all installed pEp products.
|
|
/// Informs and notifies the subscriber if there are updates available.
|
|
- (void)updateAll;
|
|
|
|
@end
|