Browse Source

APPLEMAIL-55 XPC passive mode.

APPLEMAIL-55
David Alarcon 11 months ago
parent
commit
4cfda81a0d
3 changed files with 16 additions and 0 deletions
  1. +8
    -0
      Subprojects/PEPObjCAdapterXPCService/PEPObjCAdapterXPCApiClient/XPCService/PEPObjCAdapterXPCApiClientService.m
  2. +6
    -0
      Subprojects/PEPObjCAdapterXPCService/PEPObjCAdapterXPCService/XPCService/PEPObjCAdapterXPCApi.m
  3. +2
    -0
      Subprojects/PEPObjCAdapterXPCService/Shared/PEPObjCAdapterXpcApiProtocol.h

+ 8
- 0
Subprojects/PEPObjCAdapterXPCService/PEPObjCAdapterXPCApiClient/XPCService/PEPObjCAdapterXPCApiClientService.m View File

@ -155,4 +155,12 @@ successCallback:(nonnull void (^)(PEPIdentity * _Nonnull))successCallback {
}];
}
// MARK: - PEPObjCAdapterConfigurationProtocol
- (void)setPassiveModeEnabled:(BOOL)enabled {
[[self.connection remoteObjectProxyWithErrorHandler:^(NSError * _Nonnull error) {
NSLog(@"[PEP4APPLEMAIL] Passive Mode Error: %@", error);
}] setPassiveModeEnabled:enabled];
}
@end

+ 6
- 0
Subprojects/PEPObjCAdapterXPCService/PEPObjCAdapterXPCService/XPCService/PEPObjCAdapterXPCApi.m View File

@ -11,6 +11,7 @@
#import "PEPSession.h"
#import "PEPIdentity.h"
#import "PEPObjCAdapterXpcApiResult.h"
#import "PEPObjcAdapter.h"
@implementation PEPObjCAdapterXPCApi
@ -125,4 +126,9 @@
}];
}
- (void)setPassiveModeEnabled:(BOOL)enabled {
NSLog(@"%s <%@>", __PRETTY_FUNCTION__, enabled ? @"ON" : @"OFF");
[PEPObjCAdapter setPassiveModeEnabled:enabled];
}
@end

+ 2
- 0
Subprojects/PEPObjCAdapterXPCService/Shared/PEPObjCAdapterXpcApiProtocol.h View File

@ -40,6 +40,8 @@ NS_ASSUME_NONNULL_BEGIN
extraKeys:(PEPStringList *_Nullable)extraKeys
resultBlock:(void (^)(PEPObjCAdapterXpcApiResult *))resultCallback;
- (void)setPassiveModeEnabled:(BOOL)enabled;
@end
NS_ASSUME_NONNULL_END

Loading…
Cancel
Save