// // PEPObjCAdapterXpcApiProtocol.h // foundation.pEp.adapter.macOS // // Created by David Alarcon on 15/1/21. // Copyright © 2021 p≡p foundation. All rights reserved. // #import "PEPTypes.h" #import "PEPEngineTypes.h" static NSString * _Nonnull daemonLabel = @"pEp.foundation.pEpXPCAdapter_OpenStep"; @class PEPIdentity, PEPObjCAdapterXpcApiResult, PEPMessage; NS_ASSUME_NONNULL_BEGIN @protocol PEPObjCAdapterXpcApiProtocol - (void)myself:(PEPIdentity *)identity resultBlock:(void (^)(PEPObjCAdapterXpcApiResult *))resultCallback; - (void)encryptMessage:(PEPMessage *)message extraKeys:(PEPStringList *_Nullable)extraKeys encFormat:(PEPEncFormat)encFormat resultBlock:(void (^)(PEPObjCAdapterXpcApiResult *))resultCallback; - (void)outgoingRatingForMessage:(PEPMessage *)theMessage resultBlock:(void (^)(PEPObjCAdapterXpcApiResult *))resultCallback; - (void)colorFromRating:(PEPRating)rating resultBlock:(void (^)(PEPObjCAdapterXpcApiResult *))resultCallback; - (void)encryptMessage:(PEPMessage *)message forSelf:(PEPIdentity *)ownIdentity extraKeys:(PEPStringList *_Nullable)extraKeys resultBlock:(void (^)(PEPObjCAdapterXpcApiResult *))resultCallback; - (void)decryptMessage:(PEPMessage *)message flags:(PEPDecryptFlags)flags extraKeys:(PEPStringList *_Nullable)extraKeys resultBlock:(void (^)(PEPObjCAdapterXpcApiResult *))resultCallback; - (void)setPassiveModeEnabled:(BOOL)enabled; @end NS_ASSUME_NONNULL_END