Browse Source

APPLEMAIL-33 Add typedef to NS_CLOSE_ENUM. Refactor name to xpcListenerEndpoint in PEPNotificationXPCService.

APPLEMAIL-33
David Alarcon 3 months ago
parent
commit
31bc955ef6
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      Submodules/PEPUpdatesXPCService/PEPUpdatesXPCService/PEPNotificationXPCService/PEPNotificationXPCService/Interface/PEPNotificationXPCService.h
  2. +1
    -1
      Submodules/PEPUpdatesXPCService/PEPUpdatesXPCService/PEPNotificationXPCService/PEPNotificationXPCService/XPCService/PEPNotificationXPCService.m
  3. +1
    -1
      Submodules/PEPUpdatesXPCService/PEPUpdatesXPCService/PEPNotificationXPCService/Shared/PEPNotificationXPCApiProtocol.h
  4. +1
    -1
      Submodules/pEpNotifications/PEPUpdatesApp/AppDelegate.swift

+ 1
- 1
Submodules/PEPUpdatesXPCService/PEPUpdatesXPCService/PEPNotificationXPCService/PEPNotificationXPCService/Interface/PEPNotificationXPCService.h View File

@ -14,7 +14,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface PEPNotificationXPCService : NSObject <NSXPCListenerDelegate>
@property (nonatomic) NSXPCListenerEndpoint *notificationEndpoint;
@property (nonatomic, readonly) NSXPCListenerEndpoint *xpcListenerEndpoint;
- (instancetype)initWithDelegate:(id<PEPNotificationXPCServiceDelegate>)delegate;
/// Begin listening for incoming XPC connections


+ 1
- 1
Submodules/PEPUpdatesXPCService/PEPUpdatesXPCService/PEPNotificationXPCService/PEPNotificationXPCService/XPCService/PEPNotificationXPCService.m View File

@ -31,7 +31,7 @@
NSLog(@"starting agent");
_listener.delegate = self;
_delegate = delegate;
_notificationEndpoint = _listener.endpoint;
_xpcListenerEndpoint = _listener.endpoint;
}
return self;


+ 1
- 1
Submodules/PEPUpdatesXPCService/PEPUpdatesXPCService/PEPNotificationXPCService/Shared/PEPNotificationXPCApiProtocol.h View File

@ -11,7 +11,7 @@
NS_ASSUME_NONNULL_BEGIN
/// Notification types
NS_CLOSED_ENUM(int, DNType) {
typedef NS_CLOSED_ENUM(int, DNType) {
ready = 0,
downloading,
downloadArrived,


+ 1
- 1
Submodules/pEpNotifications/PEPUpdatesApp/AppDelegate.swift View File

@ -111,7 +111,7 @@ extension AppDelegate {
}
private func setupServiceSubscription() {
updateDownloadClientService.subscribe(forUpdate:notificationService.notificationEndpoint)
updateDownloadClientService.subscribe(forUpdate:notificationService.xpcListenerEndpoint)
if UserDefaults.standard.bool(forKey: "ScheduleUpdates") {
updateDownloadClientService.scheduleUpdates()
scheduleUpdatesMenuItem.state = NSControl.StateValue.on


Loading…
Cancel
Save