pEpObjCAdapter/PEPSync.m
branchIOSAD-103
changeset 686 fec1eae409cd
parent 682 33e516b5e51e
child 688 1b3d9f1481df
     1.1 --- a/pEpObjCAdapter/PEPSync.m	Fri Oct 05 08:47:32 2018 +0200
     1.2 +++ b/pEpObjCAdapter/PEPSync.m	Fri Oct 05 12:09:01 2018 +0200
     1.3 @@ -8,6 +8,8 @@
     1.4  
     1.5  #import "PEPSync.h"
     1.6  
     1.7 +#import "PEPSyncSendMessageDelegate.h"
     1.8 +
     1.9  PEP_STATUS messageToSendObjc(struct _message *msg)
    1.10  {
    1.11      return PEP_STATUS_OK;
    1.12 @@ -18,6 +20,29 @@
    1.13      return 0;
    1.14  }
    1.15  
    1.16 +static __weak PEPSyncSendMessageDelegate *s_PEPSyncSendMessageDelegate;
    1.17 +
    1.18  @implementation PEPSync
    1.19  
    1.20 ++ (void)setPEPSyncSendMessageDelegate:
    1.21 +(PEPSyncSendMessageDelegate * _Nullable)syncSendMessageDelegate
    1.22 +{
    1.23 +    s_PEPSyncSendMessageDelegate = syncSendMessageDelegate;
    1.24 +}
    1.25 +
    1.26 ++ (PEPSyncSendMessageDelegate * _Nullable)syncSendMessageDelegate
    1.27 +{
    1.28 +    return s_PEPSyncSendMessageDelegate;
    1.29 +}
    1.30 +
    1.31 +- (void)setSyncSendMessageDelegate:(PEPSyncSendMessageDelegate *)syncSendMessageDelegate
    1.32 +{
    1.33 +    [PEPSync setPEPSyncSendMessageDelegate:syncSendMessageDelegate];
    1.34 +}
    1.35 +
    1.36 +- (PEPSyncSendMessageDelegate *)syncSendMessageDelegate
    1.37 +{
    1.38 +    return [PEPSync syncSendMessageDelegate];
    1.39 +}
    1.40 +
    1.41  @end