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.
     1 //
     2 //  PEPSendMessageDelegate.h
     3 //  pEpObjCAdapter
     4 //
     5 //  Created by Dirk Zimmermann on 05.10.18.
     6 //  Copyright © 2018 p≡p. All rights reserved.
     7 //
     8 
     9 #import <Foundation/Foundation.h>
    10 
    11 #import "PEPEngineTypes.h"
    12 
    13 @class PEPMessage;
    14 
    15 /**
    16  Delegate that receives notifications when the engine needs to send out messages on its behalf.
    17  */
    18 @protocol PEPSendMessageDelegate <NSObject>
    19 
    20 /**
    21  Called when the engine wants to send out a message, which is generally invisible to the user.
    22 
    23  @param message The message to be sent out.
    24  @return A status value that can indicate failure if it's already obvious at call-time (sync)
    25          that there is something wrong with the message. Can only cover immediate problems.
    26          Issues that can occur while sending the message (later) cannot (and should not)
    27          be communicated back to the engine. The app should simply retry.
    28  */
    29 - (PEPStatus)sendMessage:(PEPMessage * _Nonnull)message;
    30 
    31 @end