14 #include <scapix/bridge/object.h> 31 #include <scapix/bridge/object.h> 76 std::vector<uint8_t> *
mKey;
100 :
public scapix::bridge::object<NodeData>
154 BACKUP_STATUS_ENABLED = 0x00,
155 BACKUP_STATUS_DISABLED = 0x01,
156 BACKUP_STATUS_PENDING = 0x02,
167 TAG_CONFIDENTIAL = 4,
168 TAG_HIGHLY_CONFIDENTIAL = 5,
178 uint64_t getId()
const;
190 std::vector<uint8_t> *getKey()
const;
196 std::vector<uint8_t> *getSparseHash()
const;
202 std::vector<uint8_t> *getFullHash()
const;
208 std::vector<uint8_t> *getFingerprint()
const;
214 std::string getHumanKey()
const;
220 std::string getHumanHash()
const;
226 std::string getMetadataInfo()
const;
232 uint64_t getSize()
const;
238 const char *getName()
const;
244 const std::string getNameString()
const;
250 uint64_t getNumericId()
const;
262 const std::string getBase64Handle()
const;
268 const NodeHandle &getVirtualParentHandle()
const;
280 uint64_t getParentId()
const;
286 uint64_t getFilesystem()
const;
292 uint64_t getCreationTime()
const;
298 uint64_t getModificationtime()
const;
304 unsigned getCrypto()
const;
312 bool hasMetadataType(
int type);
319 uint8_t getMetadataServer(
int type);
326 uint64_t getMetadataHandle(
int type);
332 const char *getDevice()
const;
338 const std::string getDeviceNameString()
const;
344 uint64_t getStartTime()
const;
350 uint64_t getFinishTime()
const;
356 uint64_t getFolderCount()
const;
362 uint64_t getFileCount()
const;
368 uint64_t getTransferErrorCount()
const;
374 const char *getCronExpr()
const;
380 const std::string getCronExprString()
const;
386 const char *getLocalPath()
const;
392 const std::string getLocalPathString()
const;
398 int getMaxSnapshots()
const;
404 int getStatus()
const;
411 bool isEnabled()
const;
418 bool isPending()
const;
424 const char *getMessage()
const;
430 const std::string getMessageString()
const;
431 std::vector<uint8_t> *getInboxKey()
const;
437 const char *getInboxMessage()
const;
443 const std::string getInboxMessageString()
const;
449 const char *getRecordContactInfo()
const;
455 const std::string getRecordContactInfoString()
const;
460 const char *getRecordInboxName()
const;
465 const std::string getRecordInboxNameString()
const;
471 const char *getRecordSubject()
const;
477 const std::string getRecordSubjectString()
const;
483 const char *getRecordMessage()
const;
489 const std::string getRecordMessageString()
const;
494 uint64_t getContactAccountId()
const;
504 const char *getOutboxInboxLink()
const;
509 const std::string getOutboxInboxLinkString()
const;
514 const char *getRecordLink()
const;
520 const std::string getRecordLinkString()
const;
525 uint64_t getExtraNumber()
const;
530 std::vector<uint8_t> *getExtraData()
const;
531 std::vector<uint8_t> *getPublicHandle()
const;
542 uint8_t getDepth()
const;
547 uint8_t getTag()
const;
560 bool isMultipleRoot()
const;
572 bool isFolder()
const;
578 bool isPublic()
const;
591 bool isArchived()
const;
598 bool isExternal()
const;
605 bool isSynced()
const;
606 int getErrorType()
const;
607 const char* getErrorName()
const;
608 const std::string getErrorNameString()
const;
610 Error getError()
const;
622 NodeData(uint64_t
id,
int type,
const char *name, uint8_t crypto,
const std::vector<uint8_t> *key,
const uint8_t *metadata,
size_t metadataSize,
623 const std::vector<uint8_t> *sparseHash,
const std::vector<uint8_t> *fullHash, uint64_t size, uint64_t parentId, uint64_t filesystemId,
625 uint64_t extraNumber, std::vector<uint8_t> *extraData, std::vector<uint8_t> *publicHandle,
bool isPublic,
bool isFull,
bool isExternal,
bool isSynced, uint8_t tag);
630 std::vector<uint8_t> *mKey;
635 uint8_t mNumMetadata;
637 std::vector<uint8_t> *mSparseHash;
638 std::vector<uint8_t> *mFullHash;
641 std::string mParentHandle;
644 uint64_t mFilesystem;
645 uint64_t mCreationTime;
646 uint64_t mModificationTime;
650 uint64_t mExtraNumber;
651 std::vector<uint8_t> *mExtraData;
652 std::vector<uint8_t> *mPublicHandle;
666 typedef std::shared_ptr<NodeData>
Node;
MetadataType
The metadata type enum.
Definition: node.h:143
static const uint8_t METADATA_SIZE
Definition: node.h:617
static const std::string INVALID_NAME
Definition: node.h:616
uint64_t mFileCount
Definition: node.h:59
std::vector< Node > NodeDataList
Definition: node.h:667
uint64_t mStartTime
Definition: node.h:44
char * mDevice
Definition: node.h:43
The iberbox namespace.
Definition: task.h:21
char * mCronExpr
Definition: node.h:45
uint64_t NodeHandle
Definition: node.h:26
uint64_t AccountHandle
Definition: node.h:27
std::shared_ptr< NodeData > Node
Definition: node.h:666
uint8_t mStatus
Definition: node.h:48
std::vector< uint8_t > * mKey
Definition: node.h:76
char * mMessage
Definition: node.h:75
char * mTarget
Definition: node.h:94
uint64_t mTransferErrorCount
Definition: node.h:60
uint8_t mStatus
Definition: node.h:65
uint64_t mFinishTime
Definition: node.h:62
char * mLocalPath
Definition: node.h:46
std::shared_ptr< NodeDataList > NodeList
Definition: node.h:668
RecordStatus
Definition: node.h:82
char * mMessage
Definition: node.h:95
std::vector< std::string > StringVector
Definition: node.h:673
static const NodeHandle INVALID_HANDLE
Definition: node.h:614
std::shared_ptr< StringVector > StringList
Definition: node.h:674
char * mCronExpr
Definition: node.h:63
unsigned mMaxSnapshots
Definition: node.h:47
char * mLocalPath
Definition: node.h:64
The error class.
Definition: error.h:25
std::vector< int64_t > NumberVector
Definition: node.h:670
char * mContactInfo
Definition: node.h:93
TagType
The tag type enum.
Definition: node.h:162
NodeType
The node type enum.
Definition: node.h:107
uint64_t mFolderCount
Definition: node.h:58
std::shared_ptr< NumberVector > NumberList
Definition: node.h:671
static const unsigned DEFAULT_CRYPTO
Definition: node.h:615
static const uint64_t INVALID_ID
Definition: node.h:613
uint64_t mStartTime
Definition: node.h:61
BackupStatus
The backup status enum.
Definition: node.h:153