Browse Source

IOSAD-172 Define new error domains

IOSAD-172
Dirk Zimmermann 2 years ago
parent
commit
c1937a1da0
3 changed files with 23 additions and 0 deletions
  1. +13
    -0
      PEPObjCAdapterFramework/PEPSessionProtocol.m
  2. +4
    -0
      pEpObjCAdapter.xcodeproj/project.pbxproj
  3. +6
    -0
      pEpObjCAdapterFramework/PEPSessionProtocol.h

+ 13
- 0
PEPObjCAdapterFramework/PEPSessionProtocol.m View File

@ -0,0 +1,13 @@
//
// PEPSessionProtocol.m
// PEPObjCAdapterFramework
//
// Created by Dirk Zimmermann on 27.06.20.
// Copyright © 2020 pp. All rights reserved.
//
#import <Foundation/Foundation.h>
static NSString * _Nonnull PEPObjCAdapterEngineStatusErrorDomain = @"PEPObjCAdapterEngineStatusErrorDomain";
static NSString * _Nonnull PEPObjCAdapterErrorDomain = @"PEPObjCAdapterErrorDomain";

+ 4
- 0
pEpObjCAdapter.xcodeproj/project.pbxproj View File

@ -27,6 +27,7 @@
433DFBAD24A5E04000AB373B /* PEPPassphraseCacheEntry.m in Sources */ = {isa = PBXBuildFile; fileRef = 433DFBAB24A5E04000AB373B /* PEPPassphraseCacheEntry.m */; };
433DFBB724A61D4B00AB373B /* PEPInternalSession+PassphraseCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 433DFBB524A61D4B00AB373B /* PEPInternalSession+PassphraseCache.h */; };
433DFBB824A61D4B00AB373B /* PEPInternalSession+PassphraseCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 433DFBB624A61D4B00AB373B /* PEPInternalSession+PassphraseCache.m */; };
433DFBBC24A73AD400AB373B /* PEPSessionProtocol.m in Sources */ = {isa = PBXBuildFile; fileRef = 433DFBBB24A73AD400AB373B /* PEPSessionProtocol.m */; };
434226811D4F60000083ED79 /* PepTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 434226801D4F60000083ED79 /* PepTests.m */; };
43589EF724A4A3B70079BEA2 /* PEPPassphraseCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 43589EF524A4A3B70079BEA2 /* PEPPassphraseCache.h */; };
43589EF924A4A3B70079BEA2 /* PEPPassphraseCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 43589EF624A4A3B70079BEA2 /* PEPPassphraseCache.m */; };
@ -177,6 +178,7 @@
433DFBAE24A5ED0D00AB373B /* PEPPassphraseCacheInternal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PEPPassphraseCacheInternal.h; sourceTree = "<group>"; };
433DFBB524A61D4B00AB373B /* PEPInternalSession+PassphraseCache.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "PEPInternalSession+PassphraseCache.h"; sourceTree = "<group>"; };
433DFBB624A61D4B00AB373B /* PEPInternalSession+PassphraseCache.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "PEPInternalSession+PassphraseCache.m"; sourceTree = "<group>"; };
433DFBBB24A73AD400AB373B /* PEPSessionProtocol.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PEPSessionProtocol.m; sourceTree = "<group>"; };
433E28901FA741DE00E359B3 /* PEPIdentity.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PEPIdentity.m; sourceTree = "<group>"; };
434226801D4F60000083ED79 /* PepTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PepTests.m; sourceTree = "<group>"; };
434ED6D4207E27B8000A7590 /* PEPAutoPointer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PEPAutoPointer.h; sourceTree = "<group>"; };
@ -406,6 +408,7 @@
435C0CA022292E7C0025C6B5 /* PEPTypes.h */,
43FF2ECC2226AE7E000D9567 /* PEPEngineTypes.h */,
435F518F22204A67006EB11F /* PEPSessionProtocol.h */,
433DFBBB24A73AD400AB373B /* PEPSessionProtocol.m */,
435F5163222045FB006EB11F /* PEPIdentity.h */,
43E3985D221D7E56008E7983 /* PEPObjCAdapterFramework.h */,
43E3985E221D7E56008E7983 /* Info.plist */,
@ -654,6 +657,7 @@
435C0CAD222930340025C6B5 /* PEPConstants.m in Sources */,
433DFBAD24A5E04000AB373B /* PEPPassphraseCacheEntry.m in Sources */,
435F5169222046C2006EB11F /* PEPCSVScanner.m in Sources */,
433DFBBC24A73AD400AB373B /* PEPSessionProtocol.m in Sources */,
435F5179222046C2006EB11F /* NSNumber+PEPRating.m in Sources */,
435F516B222046C2006EB11F /* PEPMessageUtil.m in Sources */,
435F5171222046C2006EB11F /* PEPCopyableThread.m in Sources */,


+ 6
- 0
pEpObjCAdapterFramework/PEPSessionProtocol.h View File

@ -15,6 +15,12 @@
@class PEPIdentity;
@class PEPMessage;
/// Domain for errors indicated by the pEp engine.
static NSString * _Nonnull PEPObjCAdapterEngineStatusErrorDomain;
/// Domain for errors indicated by the pEp adapter itself.
static NSString * _Nonnull PEPObjCAdapterErrorDomain;
@protocol PEPSessionProtocol <NSObject>
/** Decrypt a message */


Loading…
Cancel
Save