pEpObjCAdapterFramework/PEPSendMessageDelegate.h
author Dirk Zimmermann <dz@pep.security>
Thu, 12 Sep 2019 16:41:52 +0200
branchIOSAD-141
changeset 1244 d780d1356405
parent 1120 a393228d948d
permissions -rw-r--r--
IOSAD-141 Give the threads a name.
dirk@686
     1
//
dirk@732
     2
//  PEPSendMessageDelegate.h
dirk@686
     3
//  pEpObjCAdapter
dirk@686
     4
//
dirk@686
     5
//  Created by Dirk Zimmermann on 05.10.18.
dirk@686
     6
//  Copyright © 2018 p≡p. All rights reserved.
dirk@686
     7
//
dirk@686
     8
dirk@686
     9
#import <Foundation/Foundation.h>
dirk@686
    10
dz@947
    11
#import "PEPEngineTypes.h"
dz@947
    12
dirk@688
    13
@class PEPMessage;
dirk@686
    14
dz@1120
    15
/**
dz@1120
    16
 Delegate that receives notifications when the engine needs to send out messages on its behalf.
dz@1120
    17
 */
dirk@732
    18
@protocol PEPSendMessageDelegate <NSObject>
dirk@686
    19
dz@1120
    20
/**
dz@1120
    21
 Called when the engine wants to send out a message, which is generally invisible to the user.
dz@1120
    22
dz@1120
    23
 @param message The message to be sent out.
dz@1120
    24
 @return A status value that can indicate failure if it's already obvious at call-time (sync)
dz@1120
    25
         that there is something wrong with the message. Can only cover immediate problems.
dz@1120
    26
         Issues that can occur while sending the message (later) cannot (and should not)
dz@1120
    27
         be communicated back to the engine. The app should simply retry.
dz@1120
    28
 */
dz@947
    29
- (PEPStatus)sendMessage:(PEPMessage * _Nonnull)message;
dirk@688
    30
dirk@686
    31
@end