iberbox
2.1.2
|
Public Types | |
enum | BackupStatus { BACKUP_STATUS_ENABLED = 0x00, BACKUP_STATUS_DISABLED = 0x01, BACKUP_STATUS_PENDING = 0x02 } |
The backup status enum. More... | |
enum | MetadataType { META_SIGNATURE = 0, META_THUMBNAIL = 1, META_PREVIEW = 2, META_LAST } |
The metadata type enum. More... | |
enum | NodeType { INVALID = -1, CLOUD_ROOT = 0, BACKUP_ROOT, RUBBISH_ROOT, REGISTER_ROOT, SHARED_ROOT, LAST_REGULAR_ROOT, SECRET_ROOT, CONTACT_ROOT, SHARED_DRIVE_ROOT, LAST_ROOT, FILE = 20, FOLDER, LAST_REGULAR, DEVICE = 40, BACKUP, SNAPSHOT, INBOX, RECORD, SHARE, CONTACT, OUTBOX, LAST } |
The node type enum. More... | |
enum | TagType { TAG_UNSET = 0, TAG_PERSONAL = 1, TAG_PUBLIC = 2, TAG_GENERAL = 3, TAG_CONFIDENTIAL = 4, TAG_HIGHLY_CONFIDENTIAL = 5, TAG_LAST } |
The tag type enum. More... | |
Public Member Functions | |
const std::string | getBase64Handle () const |
Gets the Base64 Handle object. More... | |
AccountHandle | getContactAccountHandle () const |
Gets the contact account handle. More... | |
uint64_t | getContactAccountId () const |
Gets the contact account id. More... | |
uint64_t | getCreationTime () const |
Gets the Creation Time object. More... | |
const char * | getCronExpr () const |
Gets the Cron Expr object. More... | |
const std::string | getCronExprString () const |
Gets the Cron Expr String object. More... | |
unsigned | getCrypto () const |
Gets the Crypto object. More... | |
uint8_t | getDepth () const |
Gets the depth of the node. More... | |
const char * | getDevice () const |
Gets the Device object. More... | |
const std::string | getDeviceNameString () const |
Gets the Device Name String object. More... | |
Error | getError () const |
const char * | getErrorName () const |
const std::string | getErrorNameString () const |
int | getErrorType () const |
std::vector< uint8_t > * | getExtraData () const |
Gets the extra data vector. More... | |
uint64_t | getExtraNumber () const |
Gets the extra number. More... | |
uint64_t | getFileCount () const |
Gets the File Count object. More... | |
uint64_t | getFilesystem () const |
Gets the Filesystem object. More... | |
std::vector< uint8_t > * | getFingerprint () const |
Gets the Fingerprint object. More... | |
uint64_t | getFinishTime () const |
Gets the Finish Time object. More... | |
uint64_t | getFolderCount () const |
Gets the Folder Count object. More... | |
std::vector< uint8_t > * | getFullHash () const |
Gets the Full Hash object. More... | |
const NodeHandle & | getHandle () const |
Gets the Handle object. More... | |
std::string | getHumanHash () const |
Gets the Human Hash object. More... | |
std::string | getHumanKey () const |
Gets the Human Key object. More... | |
uint64_t | getId () const |
Gets the identifier of the node. More... | |
std::vector< uint8_t > * | getInboxKey () const |
const char * | getInboxMessage () const |
Gets the Inbox Message object. More... | |
const std::string | getInboxMessageString () const |
Gets the Inbox Message String object. More... | |
std::vector< uint8_t > * | getKey () const |
Gets the Key object. More... | |
const char * | getLocalPath () const |
Gets the Local Path object. More... | |
const std::string | getLocalPathString () const |
Gets the Local Path String object. More... | |
int | getMaxSnapshots () const |
Gets the maximum number of snapshots of the backup will be stored at a time. More... | |
const char * | getMessage () const |
Gets the Message object. More... | |
const std::string | getMessageString () const |
Gets the Message String object. More... | |
uint64_t | getMetadataHandle (int type) |
Gets the Metadata Handle object. More... | |
std::string | getMetadataInfo () const |
Gets the Metadata Info object. More... | |
uint8_t | getMetadataServer (int type) |
Gets the Metadata Server object. More... | |
uint64_t | getModificationtime () const |
Gets the Modificationtime object. More... | |
const char * | getName () const |
Gets the Name object. More... | |
const std::string | getNameString () const |
Gets the Name String object. More... | |
uint64_t | getNumericId () const |
Gets the Numeric Id object. More... | |
const char * | getOutboxInboxLink () const |
Gets the link of the inbox which this outbox refers to. More... | |
const std::string | getOutboxInboxLinkString () const |
Gets the link of the inbox which this outbox refers to. More... | |
const NodeHandle & | getParentHandle () const |
Gets the Parent Handle object. More... | |
uint64_t | getParentId () const |
Gets the Parent Id object. More... | |
std::vector< uint8_t > * | getPublicHandle () const |
const char * | getRecordContactInfo () const |
Gets the Record Contact Info object. More... | |
const std::string | getRecordContactInfoString () const |
Gets the Record Contact Info String object. More... | |
const char * | getRecordInboxName () const |
Gets the name of the inbox this record belongs to. More... | |
const std::string | getRecordInboxNameString () const |
Gets the name of the inbox this record belongs to. More... | |
const char * | getRecordLink () const |
Gets the link to this record object. More... | |
const std::string | getRecordLinkString () const |
Gets the link to this record object. More... | |
const char * | getRecordMessage () const |
Gets the Record Message object. More... | |
const std::string | getRecordMessageString () const |
Gets the Record Message String object. More... | |
const char * | getRecordSubject () const |
Gets the Record Subject object. More... | |
const std::string | getRecordSubjectString () const |
Gets the Record Subject String object. More... | |
uint64_t | getSize () const |
Gets the Size object. More... | |
AccountHandle | getSourceHandle () const |
Gets the handle of the account that shared the drive. More... | |
std::vector< uint8_t > * | getSparseHash () const |
Gets the Sparse Hash object. More... | |
uint64_t | getStartTime () const |
Gets the Start Time object. More... | |
int | getStatus () const |
Gets the status of the node. More... | |
uint8_t | getTag () const |
Gets the tag of the node (file/folder) More... | |
uint64_t | getTransferErrorCount () const |
Gets the Transfer Error Count object. More... | |
int | getType () const |
Gets the type of the node. More... | |
const NodeHandle & | getVirtualParentHandle () const |
Gets the Virtual Parent Handle object. More... | |
bool | hasMetadataType (int type) |
bool | isArchived () const |
Gets whether the shared drive is archived or not. More... | |
bool | isEnabled () const |
Gets whether the backup is enabled or not. More... | |
bool | isExternal () const |
Gets whether the node belongs to another account. More... | |
bool | isFile () const |
Gets whether the node is a file or not. More... | |
bool | isFolder () const |
Gets whether the node is a folder or not. More... | |
bool | isFull () const |
Gets whether node's descendants, if any, have been loaded locally. More... | |
bool | isMultipleRoot () const |
Gets whether the node is a root node which may co-exist with many of its same type. More... | |
bool | isPending () const |
Gets whether the backup is pending or not. More... | |
bool | isPublic () const |
Gets whether the node is public or not. More... | |
bool | isRoot () const |
Gets whether the node is a root node or not. More... | |
bool | isSynced () const |
Gets whether the node is being synced in a configured device. More... | |
virtual | ~NodeData () |
Static Public Attributes | |
static const unsigned | DEFAULT_CRYPTO |
static const NodeHandle | INVALID_HANDLE |
static const uint64_t | INVALID_ID |
static const std::string | INVALID_NAME |
static const uint8_t | METADATA_SIZE |
|
virtual |
const std::string iberbox::NodeData::getBase64Handle | ( | ) | const |
AccountHandle iberbox::NodeData::getContactAccountHandle | ( | ) | const |
Gets the contact account handle.
uint64_t iberbox::NodeData::getContactAccountId | ( | ) | const |
Gets the contact account id.
uint64_t iberbox::NodeData::getCreationTime | ( | ) | const |
const char* iberbox::NodeData::getCronExpr | ( | ) | const |
const std::string iberbox::NodeData::getCronExprString | ( | ) | const |
unsigned iberbox::NodeData::getCrypto | ( | ) | const |
uint8_t iberbox::NodeData::getDepth | ( | ) | const |
Gets the depth of the node.
const char* iberbox::NodeData::getDevice | ( | ) | const |
const std::string iberbox::NodeData::getDeviceNameString | ( | ) | const |
Error iberbox::NodeData::getError | ( | ) | const |
const char* iberbox::NodeData::getErrorName | ( | ) | const |
const std::string iberbox::NodeData::getErrorNameString | ( | ) | const |
int iberbox::NodeData::getErrorType | ( | ) | const |
std::vector<uint8_t>* iberbox::NodeData::getExtraData | ( | ) | const |
Gets the extra data vector.
uint64_t iberbox::NodeData::getExtraNumber | ( | ) | const |
Gets the extra number.
uint64_t iberbox::NodeData::getFileCount | ( | ) | const |
uint64_t iberbox::NodeData::getFilesystem | ( | ) | const |
std::vector<uint8_t>* iberbox::NodeData::getFingerprint | ( | ) | const |
uint64_t iberbox::NodeData::getFinishTime | ( | ) | const |
uint64_t iberbox::NodeData::getFolderCount | ( | ) | const |
std::vector<uint8_t>* iberbox::NodeData::getFullHash | ( | ) | const |
const NodeHandle& iberbox::NodeData::getHandle | ( | ) | const |
std::string iberbox::NodeData::getHumanHash | ( | ) | const |
std::string iberbox::NodeData::getHumanKey | ( | ) | const |
uint64_t iberbox::NodeData::getId | ( | ) | const |
Gets the identifier of the node.
std::vector<uint8_t>* iberbox::NodeData::getInboxKey | ( | ) | const |
const char* iberbox::NodeData::getInboxMessage | ( | ) | const |
const std::string iberbox::NodeData::getInboxMessageString | ( | ) | const |
std::vector<uint8_t>* iberbox::NodeData::getKey | ( | ) | const |
const char* iberbox::NodeData::getLocalPath | ( | ) | const |
const std::string iberbox::NodeData::getLocalPathString | ( | ) | const |
int iberbox::NodeData::getMaxSnapshots | ( | ) | const |
Gets the maximum number of snapshots of the backup will be stored at a time.
const char* iberbox::NodeData::getMessage | ( | ) | const |
const std::string iberbox::NodeData::getMessageString | ( | ) | const |
uint64_t iberbox::NodeData::getMetadataHandle | ( | int | type | ) |
std::string iberbox::NodeData::getMetadataInfo | ( | ) | const |
uint8_t iberbox::NodeData::getMetadataServer | ( | int | type | ) |
uint64_t iberbox::NodeData::getModificationtime | ( | ) | const |
const char* iberbox::NodeData::getName | ( | ) | const |
const std::string iberbox::NodeData::getNameString | ( | ) | const |
uint64_t iberbox::NodeData::getNumericId | ( | ) | const |
const char* iberbox::NodeData::getOutboxInboxLink | ( | ) | const |
Gets the link of the inbox which this outbox refers to.
const std::string iberbox::NodeData::getOutboxInboxLinkString | ( | ) | const |
Gets the link of the inbox which this outbox refers to.
const NodeHandle& iberbox::NodeData::getParentHandle | ( | ) | const |
uint64_t iberbox::NodeData::getParentId | ( | ) | const |
std::vector<uint8_t>* iberbox::NodeData::getPublicHandle | ( | ) | const |
const char* iberbox::NodeData::getRecordContactInfo | ( | ) | const |
const std::string iberbox::NodeData::getRecordContactInfoString | ( | ) | const |
const char* iberbox::NodeData::getRecordInboxName | ( | ) | const |
Gets the name of the inbox this record belongs to.
const std::string iberbox::NodeData::getRecordInboxNameString | ( | ) | const |
Gets the name of the inbox this record belongs to.
const char* iberbox::NodeData::getRecordLink | ( | ) | const |
Gets the link to this record object.
const std::string iberbox::NodeData::getRecordLinkString | ( | ) | const |
Gets the link to this record object.
const char* iberbox::NodeData::getRecordMessage | ( | ) | const |
const std::string iberbox::NodeData::getRecordMessageString | ( | ) | const |
const char* iberbox::NodeData::getRecordSubject | ( | ) | const |
const std::string iberbox::NodeData::getRecordSubjectString | ( | ) | const |
uint64_t iberbox::NodeData::getSize | ( | ) | const |
AccountHandle iberbox::NodeData::getSourceHandle | ( | ) | const |
Gets the handle of the account that shared the drive.
Node must be an external SHARED_DRIVE_ROOT.
std::vector<uint8_t>* iberbox::NodeData::getSparseHash | ( | ) | const |
uint64_t iberbox::NodeData::getStartTime | ( | ) | const |
int iberbox::NodeData::getStatus | ( | ) | const |
uint8_t iberbox::NodeData::getTag | ( | ) | const |
Gets the tag of the node (file/folder)
uint64_t iberbox::NodeData::getTransferErrorCount | ( | ) | const |
int iberbox::NodeData::getType | ( | ) | const |
Gets the type of the node.
The valid node type values are described by NodeData::NodeType.
const NodeHandle& iberbox::NodeData::getVirtualParentHandle | ( | ) | const |
bool iberbox::NodeData::hasMetadataType | ( | int | type | ) |
bool iberbox::NodeData::isArchived | ( | ) | const |
Gets whether the shared drive is archived or not.
If the node is not a shared drive, then it cannot be archived.
bool iberbox::NodeData::isEnabled | ( | ) | const |
Gets whether the backup is enabled or not.
Only used when the node represents a backup.
bool iberbox::NodeData::isExternal | ( | ) | const |
Gets whether the node belongs to another account.
Node must be a SHARED_DRIVE_ROOT.
bool iberbox::NodeData::isFile | ( | ) | const |
Gets whether the node is a file or not.
bool iberbox::NodeData::isFolder | ( | ) | const |
Gets whether the node is a folder or not.
bool iberbox::NodeData::isFull | ( | ) | const |
Gets whether node's descendants, if any, have been loaded locally.
bool iberbox::NodeData::isMultipleRoot | ( | ) | const |
Gets whether the node is a root node which may co-exist with many of its same type.
bool iberbox::NodeData::isPending | ( | ) | const |
Gets whether the backup is pending or not.
Only used when the node represents a backup.
bool iberbox::NodeData::isPublic | ( | ) | const |
Gets whether the node is public or not.
bool iberbox::NodeData::isRoot | ( | ) | const |
Gets whether the node is a root node or not.
bool iberbox::NodeData::isSynced | ( | ) | const |
Gets whether the node is being synced in a configured device.
Node must be a FOLDER.
|
static |
|
static |
|
static |
|
static |
|
static |