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

//
// 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 <NSObject>
- (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