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.
 
 
 
 

40 lines
1.2 KiB

//
// PEPMacOSAdapterProtocol.h
// pEpMacOSAdapter
//
// Created by Volker Birk on 20.04.20.
// Copyleft © 2020 p≡p foundation.
// This file is under GNU General Public License 3.0
//
#import <Foundation/Foundation.h>
static NSString *pEpUpdateDownloadXPCMachName = @"foundation.pEp.adapter.macOS_OpenStep";
/// Provides the XPC interface for update downloads to pEp updates app.
@protocol PEPUpdateDownloadXPCApiProtocol
/// Subscribe to receive notifications about update downloads status.
/// @param xpcListenerEndpoint The endpoint from the notification status service.
/// @code
/// PEPNotificationXPCService *service = [[PEPNotificationXPCService alloc] initWithDelegate:self];
/// NSXPCListenerEndpoint *endpoint = service.xpcListenerEndpoint;
///
/// [self subscribeForUpdate:edpoint];
/// @endcode
/// @discussion Method where we combine the two services together
- (void)subscribeForUpdate:(NSXPCListenerEndpoint*)xpcListenerEndpoint;
/// Unsubscribe from receiving notifications about update downloads status.
- (void)unsubscribeForUpdate;
/// Check for update downloads.
- (void)updateNow;
/// Schedules to check for update downloads every 2 hours.
- (void)scheduleUpdates;
/// Stop schedule the update downloads.
- (void)stopUpdates;
@end