Browse Source

APPLEMAIL-33 Change documentation to PEPUpdateDownloader. Set to private unnecessary public properties.

APPLEMAIL-33
David Alarcon 1 year ago
parent
commit
d4634a9d6a
3 changed files with 17 additions and 19 deletions
  1. +10
    -0
      Submodules/PEPUpdatesXPCService/PEPUpdatesXPCService/PEPUpdateDownloadXPCService/PEPUpdateDownloadXPCService/UpdateDownloader/PEPUpdateDownloader.mm
  2. +1
    -1
      Submodules/PEPUpdatesXPCService/PEPUpdatesXPCService/PEPUpdateDownloadXPCService/Shared/PEPUpdateDownloadXPCApiProtocol.h
  3. +6
    -18
      Submodules/PEPUpdatesXPCService/PEPUpdatesXPCService/Shared/PEPUpdateDownloader.h

+ 10
- 0
Submodules/PEPUpdatesXPCService/PEPUpdatesXPCService/PEPUpdateDownloadXPCService/PEPUpdateDownloadXPCService/UpdateDownloader/PEPUpdateDownloader.mm View File

@ -14,6 +14,16 @@
const double CYCLE = 7200.0; // 7200 seconds = 2 hours
NSString* CONFIG_PATH = @"/Library/Application Support/pEp/Updater";
@interface PEPUpdateDownloader()
/// Default 2 hours = 7200 seconds
@property (retain) NSTimer* timer;
/// Path with config files
@property (retain) NSString* configPath;
@end
@implementation PEPUpdateDownloader
- (id)init


+ 1
- 1
Submodules/PEPUpdatesXPCService/PEPUpdatesXPCService/PEPUpdateDownloadXPCService/Shared/PEPUpdateDownloadXPCApiProtocol.h View File

@ -25,7 +25,7 @@ static NSString *pEpUpdateDownloadXPCMachName = @"foundation.pEp.adapter.macOS_O
/// Check for update downloads.
- (void)updateNow;
/// Schedules check for update downloads every 2 hours.
/// Schedules to check for update downloads every 2 hours.
- (void)scheduleUpdates;
/// Stop schedule the update downloads.


+ 6
- 18
Submodules/PEPUpdatesXPCService/PEPUpdatesXPCService/Shared/PEPUpdateDownloader.h View File

@ -10,34 +10,22 @@
#import <Foundation/Foundation.h>
#import "PEPNotificationXPCApiProtocol.h"
/// object encapsulating the update client functionality of downloadclient
/// Object encapsulating the update client functionality of downloadclient
@interface PEPUpdateDownloader : NSObject
/// default 2 hours = 7200 seconds
@property (retain) NSTimer* timer;
/// path with config files
@property (retain) NSString* configPath;
/// subscriber for notifications
/// Subscriber for update downloads notifications
@property (retain) id<PEPNotificationXPCApiProtocol> subscriber;
/// initializes the PEPUpdateDownloader
/// Initializes the PEPUpdateDownloader
- (id)init;
/// schedules updates each 2 hours
/// Schedules to check for update downloads every 2 hours.
- (void)scheduleUpdates;
/// stop auto updates
/// Stop schedule the update downloads.
- (void)stopUpdates;
/// update all configured software
/// Update download for all pEp products.
- (void)updateAll;
/// 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

Loading…
Cancel
Save