Other Enumerations

The following enumerations are available globally.

  • ZeroDarkCloud supports 2 types of encrypted files.

    See more

    Declaration

    Objective-C

    enum ZDCCryptoFileFormat {}

    Swift

    enum ZDCCryptoFileFormat : Int
  • Log flags are a bitmask, which are biwise-OR’d with the log level to determine if the log message should be emitted.

    See more

    Declaration

    Objective-C

    enum ZDCLogFlag {}

    Swift

    struct ZDCLogFlag : OptionSet
  • Log levels are used to filter out logs. Used together with flags.

    See more

    Declaration

    Objective-C

    enum ZDCLogLevel {}

    Swift

    enum ZDCLogLevel : UInt
  • Bitmask for specifiying which meta components to download from the cloud.

    See more

    Declaration

    Objective-C

    enum ZDCNodeMetaComponents {}

    Swift

    struct ZDCNodeMetaComponents : OptionSet
  • Represents the type of operation being tracked by the progress item.

    See more

    Declaration

    Objective-C

    enum ZDCProgressType {}

    Swift

    enum ZDCProgressType : Int
  • Specifies the final result of a pull attempt.

    See more

    Declaration

    Objective-C

    enum ZDCPullResult {}

    Swift

    enum ZDCPullResult : Int
  • The SyncManager broadcasts several types of notifications for changes in the sync state. This tells you what change caused the notification.

    See more

    Declaration

    Objective-C

    enum ZDCSyncStatusNotificationType {}

    Swift

    enum ZDCSyncStatusNotificationType : Int
  • When you perform a search, the framework actually searches 3 different sources:

    • the local database (for ZDCUser’s & ZDCLocalUser’s)
    • the local cache (from previous queries to the server)
    • the remote server

    The matches from each of these sources will be returned to you independently. This gives you the option of populating the UI immediately (with local matches), rather than waiting for a round-trip to the server.

    Note

    The order of the stages is not guaranteed. You may receive results from stages in any order. However, you will receive a ZDCSearchResultStage_Done at the end.
    See more

    Declaration

    Objective-C

    enum ZDCSearchResultStage {}

    Swift

    enum ZDCSearchResultStage : Int
  • Permissions are represented as a string, where each character in the string has a special meaning.

    See more

    Declaration

    Objective-C

    enum ZDCSharePermission {}

    Swift

    struct ZDCSharePermission : OptionSet
  • A cloudfile is composed of several sections.

    When reading from a CloudFile2CleartextInputStream, the stream will perform a soft break between each section via the -read:maxLength: method. That is, the ‘read:maxLength’ method will return a 0 (zero) when you reach the end of a section. This ensures you will only ever receive data from a single section at a time.

    See more

    Declaration

    Objective-C

    enum ZDCCloudFileSection {}

    Swift

    enum ZDCCloudFileSection : Int
  • ZDCProgress is a container for 1 or more children (of type NSProgress). Children can optionally be marked with a special progress type for improved progress reporting.

    See more

    Declaration

    Objective-C

    enum ZDCChildProgressType {}

    Swift

    enum ZDCChildProgressType : Int
  • The type of operation to be performed.

    See more

    Declaration

    Objective-C

    enum ZDCCloudOperationType {}

    Swift

    enum ZDCCloudOperationType : UInt
  • If the type is ‘put’, this specifies the type of the put operation. That is, the type of node being uploaded to the cloud.

    See more

    Declaration

    Objective-C

    enum ZDCCloudOperationPutType {}

    Swift

    enum ZDCCloudOperationPutType : UInt
  • When you queue an operation to delete a node in the cloud, it’s possible the state of the cloud may change between when you issued the delete request, and when the request arrives at the server.

    These options specify how you’d like the server to handle the request, in the event it finds changes.

    See more

    Declaration

    Objective-C

    enum ZDCDeleteNodeOptions {}

    Swift

    struct ZDCDeleteNodeOptions : OptionSet
  • A cloudPath has the form: {treeID}/{dirPrefix}/{filename}

    See more

    Declaration

    Objective-C

    enum ZDCCloudPathComponents {}

    Swift

    struct ZDCCloudPathComponents : OptionSet
  • All errors returned from ZDCCloudTransaction will use an error code defined in this enumeration.

    See more

    Declaration

    Objective-C

    enum ZDCCloudErrorCode {}

    Swift

    enum ZDCCloudErrorCode : Int
  • Bitmask for specifiying which components that need to be downloaded from the cloud.

    See more

    Declaration

    Objective-C

    enum ZDCNodeComponents {}

    Swift

    struct ZDCNodeComponents : OptionSet