pEpObjCAdapterFramework/PEPConstants.h
author Dirk Zimmermann <dz@pep.security>
Thu, 12 Sep 2019 16:41:52 +0200
branchIOSAD-141
changeset 1244 d780d1356405
parent 966 38b7edcbbaf9
child 1396 dd79b44a1352
permissions -rw-r--r--
IOSAD-141 Give the threads a name.
     1 //
     2 //  PEPConstants.h
     3 //  PEPObjCAdapterFramework
     4 //
     5 //  Created by Dirk Zimmermann on 01.03.19.
     6 //  Copyright © 2019 p≡p. All rights reserved.
     7 //
     8 
     9 #import <Foundation/Foundation.h>
    10 
    11 #pragma mark - Constants
    12 
    13 /** The name of the user */
    14 extern NSString *const _Nonnull kPepUsername;
    15 
    16 /** Email address of the contact */
    17 extern NSString *const _Nonnull kPepAddress;
    18 
    19 /**
    20  A user ID, used by pEp to map multiple identities to a single user.
    21  This should be a stable ID.
    22  pEp identities set up with mySelf() get a special user ID.
    23  */
    24 extern NSString *const _Nonnull kPepUserID;
    25 
    26 /**
    27  Dict key for value isOwn/me.
    28  isOwn indicates the identity is representing me.
    29  */
    30 extern NSString *const _Nonnull kPepIsOwn;
    31 
    32 /** The fingerprint for the key for this contact. */
    33 extern NSString *const _Nonnull kPepFingerprint;
    34 
    35 /** In an email, the identity this email is from */
    36 extern NSString *const _Nonnull kPepFrom;
    37 
    38 /** In an email, the `NSArray` of to recipients */
    39 extern NSString *const _Nonnull kPepTo;
    40 
    41 /** In an email, the `NSArray` of CC recipients */
    42 extern NSString *const _Nonnull kPepCC;
    43 
    44 /** In an email, the `NSArray` of BCC recipients */
    45 extern NSString *const _Nonnull kPepBCC;
    46 
    47 /** The subject of an email */
    48 extern NSString *const _Nonnull kPepShortMessage;
    49 
    50 /** The text message of an email */
    51 extern NSString *const _Nonnull kPepLongMessage;
    52 
    53 /** HTML message part, if any */
    54 extern NSString *const _Nonnull kPepLongMessageFormatted;
    55 
    56 /** NSNumber denoting a boolean. True if that message is supposed to be sent. */
    57 extern NSString *const _Nonnull kPepOutgoing;
    58 
    59 /** Sent date of the message (NSDate) */
    60 extern NSString *const _Nonnull kPepSent;
    61 
    62 /** Received date of the message (NSDate) */
    63 extern NSString *const _Nonnull kPepReceived;
    64 
    65 /** The message ID */
    66 extern NSString *const _Nonnull kPepID;
    67 
    68 extern NSString *const _Nonnull kPepReceivedBy;
    69 extern NSString *const _Nonnull kPepReplyTo;
    70 extern NSString *const _Nonnull kPepInReplyTo;
    71 extern NSString *const _Nonnull kPepReferences;
    72 extern NSString *const _Nonnull kPepKeywords;
    73 extern NSString *const _Nonnull kPepOptFields;
    74 
    75 /** NSArray of attachment dicts */
    76 extern NSString *const _Nonnull kPepAttachments;
    77 
    78 /** The pEp internal communication type */
    79 extern NSString *const _Nonnull kPepCommType;
    80 
    81 /** The raw message created by pEp (NSData) */
    82 extern NSString *const _Nonnull kPepRawMessage;
    83 
    84 /** NSError parameters will use this domain */
    85 extern NSString *const _Nonnull PEPSessionErrorDomain;
    86 
    87 /** Optional field "X-pEp-Version" */
    88 extern NSString *const _Nonnull kXpEpVersion;
    89 
    90 /** Optional field "X-EncStatus" */
    91 extern NSString *const _Nonnull kXEncStatus;
    92 
    93 /** Optional field "X-KeyList" */
    94 extern NSString *const _Nonnull kXKeylist;
    95 
    96 /** Key for the boolean flag that denotes own identities */
    97 extern NSString *const _Nonnull kPepIsOwnIdentity;
    98 
    99 /** The key of the header for certain sync messages, "pEp-auto-consume". */
   100 extern NSString *const _Nonnull kPepHeaderAutoConsume;
   101 
   102 /** The positive value of the header for "pEp-auto-consume". */
   103 extern NSString *const _Nonnull kPepValueAutoConsumeYes;