IOSAD-132 PEPEngineTypes uses NS_CLOSED_ENUM. IOSAD-132
authorDirk Zimmermann <dz@pep.security>
Fri, 20 Sep 2019 17:00:26 +0200
branchIOSAD-132
changeset 12637add799c474d
parent 1262 22d1370ec99b
child 1264 2f139296cbbd
IOSAD-132 PEPEngineTypes uses NS_CLOSED_ENUM.
pEpObjCAdapterFramework/PEPEngineTypes.h
     1.1 --- a/pEpObjCAdapterFramework/PEPEngineTypes.h	Fri Sep 20 17:00:26 2019 +0200
     1.2 +++ b/pEpObjCAdapterFramework/PEPEngineTypes.h	Fri Sep 20 17:00:26 2019 +0200
     1.3 @@ -21,7 +21,7 @@
     1.4      PEPDecryptFlagsDontTriggerSync = 0x200, // PEP_decrypt_flag_dont_trigger_sync
     1.5  };
     1.6  
     1.7 -typedef NS_ENUM(int, PEPEncFormat) {
     1.8 +typedef NS_CLOSED_ENUM(int, PEPEncFormat) {
     1.9      PEPEncFormatNone = 0, // PEP_enc_none
    1.10      PEPEncFormatPieces, // PEP_enc_pieces, PEP_enc_inline
    1.11      PEPEncFormatSMIME, // PEP_enc_S_MIME
    1.12 @@ -30,7 +30,7 @@
    1.13      PEPEncFormatPGPMIMEOutlook1 // PEP_enc_PGP_MIME_Outlook1
    1.14  };
    1.15  
    1.16 -typedef NS_ENUM(int, PEPRating) {
    1.17 +typedef NS_CLOSED_ENUM(int, PEPRating) {
    1.18      PEPRatingUndefined = 0, // PEP_rating_undefined
    1.19      PEPRatingCannotDecrypt, // PEP_rating_cannot_decrypt
    1.20      PEPRatingHaveNoKey, // PEP_rating_have_no_key
    1.21 @@ -47,7 +47,7 @@
    1.22      PEPRatingUnderAttack = -3 // PEP_rating_under_attack
    1.23  };
    1.24  
    1.25 -typedef NS_ENUM(int, PEPStatus) {
    1.26 +typedef NS_CLOSED_ENUM(int, PEPStatus) {
    1.27      PEPStatusOK = 0, // PEP_STATUS_OK
    1.28  
    1.29      PEPStatusInitCannotLoadGPME = 0x0110, // PEP_INIT_CANNOT_LOAD_GPGME
    1.30 @@ -149,7 +149,7 @@
    1.31      PEPStatusVersionMismatch = -7, // PEP_VERSION_MISMATCH
    1.32  };
    1.33  
    1.34 -typedef NS_ENUM(int, PEPIdentityFlags) {
    1.35 +typedef NS_CLOSED_ENUM(int, PEPIdentityFlags) {
    1.36      // the first octet flags are app defined settings
    1.37      PEPIdentityFlagsNotForSync = 0x0001, // PEP_idf_not_for_sync = 0x0001,   // don't use this identity for sync
    1.38      PEPIdentityFlagsList = 0x0002, // PEP_idf_list = 0x0002,           // identity of list of persons
    1.39 @@ -157,7 +157,7 @@
    1.40      PEPIdentityFlagsDeviceGroup = 0x0100 // PEP_idf_devicegroup = 0x0100     // identity of a device group member
    1.41  };
    1.42  
    1.43 -typedef NS_ENUM(int, PEPSyncHandshakeSignal) { // _sync_handshake_signal
    1.44 +typedef NS_CLOSED_ENUM(int, PEPSyncHandshakeSignal) { // _sync_handshake_signal
    1.45      PEPSyncHandshakeSignalUndefined = 0, // SYNC_NOTIFY_UNDEFINED = 0,
    1.46  
    1.47      // request show handshake dialog
    1.48 @@ -185,13 +185,13 @@
    1.49      PEPSyncHandshakeSignalInGroup = 255 // SYNC_NOTIFY_IN_GROUP = 255
    1.50  };
    1.51  
    1.52 -typedef NS_ENUM(int, PEPSyncHandshakeResult) {
    1.53 +typedef NS_CLOSED_ENUM(int, PEPSyncHandshakeResult) {
    1.54      PEPSyncHandshakeResultCancel = -1, // SYNC_HANDSHAKE_CANCEL = -1,
    1.55      PEPSyncHandshakeResultAccepted = 0, // SYNC_HANDSHAKE_ACCEPTED = 0,
    1.56      PEPSyncHandshakeResultRejected = 1 // SYNC_HANDSHAKE_REJECTED = 1
    1.57  };
    1.58  
    1.59 -typedef NS_ENUM(int, PEPCommType) {
    1.60 +typedef NS_CLOSED_ENUM(int, PEPCommType) {
    1.61      PEPCommTypeUnknown = 0, // PEP_ct_unknown = 0,
    1.62  
    1.63      // range 0x01 to 0x09: no encryption, 0x0a to 0x0e: nothing reasonable
    1.64 @@ -252,19 +252,19 @@
    1.65      PEPCommTypePEP = 0xff // PEP_ct_pEp = 0xff
    1.66  };
    1.67  
    1.68 -typedef NS_ENUM(int, PEPMsgDirection) {
    1.69 +typedef NS_CLOSED_ENUM(int, PEPMsgDirection) {
    1.70      PEPMsgDirectionIncoming = 0,
    1.71      PEPMsgDirectionOutgoing
    1.72  };
    1.73  
    1.74 -typedef NS_ENUM(int, PEPColor) {
    1.75 +typedef NS_CLOSED_ENUM(int, PEPColor) {
    1.76      PEPColorNoColor = 0,
    1.77      PEPColorYellow,
    1.78      PEPColorGreen,
    1.79      PEPColorRed = -1,
    1.80  };
    1.81  
    1.82 -typedef NS_ENUM(int, PEPContentDisposition) {
    1.83 +typedef NS_CLOSED_ENUM(int, PEPContentDisposition) {
    1.84      PEPContentDispositionAttachment = 0,
    1.85      PEPContentDispositionInline = 1,
    1.86      PEPContentDispositionOther = -1      // must be affirmatively set