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.

47 lines
1.6 KiB

  1. //
  2. // PEPObjCAdapterXpcApiProtocol.h
  3. // foundation.pEp.adapter.macOS
  4. //
  5. // Created by David Alarcon on 15/1/21.
  6. // Copyright © 2021 p≡p foundation. All rights reserved.
  7. //
  8. #import "PEPTypes.h"
  9. #import "PEPEngineTypes.h"
  10. static NSString * _Nonnull daemonLabel = @"pEp.foundation.pEpXPCAdapter_OpenStep";
  11. @class PEPIdentity, PEPObjCAdapterXpcApiResult, PEPMessage;
  12. NS_ASSUME_NONNULL_BEGIN
  13. @protocol PEPObjCAdapterXpcApiProtocol <NSObject>
  14. - (void)myself:(PEPIdentity *)identity resultBlock:(void (^)(PEPObjCAdapterXpcApiResult *))resultCallback;
  15. - (void)encryptMessage:(PEPMessage *)message
  16. extraKeys:(PEPStringList *_Nullable)extraKeys
  17. encFormat:(PEPEncFormat)encFormat
  18. resultBlock:(void (^)(PEPObjCAdapterXpcApiResult *))resultCallback;
  19. - (void)outgoingRatingForMessage:(PEPMessage *)theMessage
  20. resultBlock:(void (^)(PEPObjCAdapterXpcApiResult *))resultCallback;
  21. - (void)colorFromRating:(PEPRating)rating
  22. resultBlock:(void (^)(PEPObjCAdapterXpcApiResult *))resultCallback;
  23. - (void)encryptMessage:(PEPMessage *)message
  24. forSelf:(PEPIdentity *)ownIdentity
  25. extraKeys:(PEPStringList *_Nullable)extraKeys
  26. resultBlock:(void (^)(PEPObjCAdapterXpcApiResult *))resultCallback;
  27. - (void)decryptMessage:(PEPMessage *)message
  28. flags:(PEPDecryptFlags)flags
  29. extraKeys:(PEPStringList *_Nullable)extraKeys
  30. resultBlock:(void (^)(PEPObjCAdapterXpcApiResult *))resultCallback;
  31. - (void)setPassiveModeEnabled:(BOOL)enabled;
  32. @end
  33. NS_ASSUME_NONNULL_END