13 #include "iberbox/config.h" 21 #include <scapix/bridge/object.h> 28 :
public scapix::bridge::object<TransferData>
62 static const char *sTransferNames[] =
69 static_assert((
sizeof(sTransferNames) /
sizeof(sTransferNames[0]) ==
TransferData::LAST_TYPE),
"Invalid number of transfer names");
86 static const char *sTransferStatusNames[] =
94 static_assert((
sizeof(sTransferStatusNames) /
sizeof(sTransferStatusNames[0]) ==
TransferData::LAST_STATUS),
"Invalid number of transfer status names");
165 std::vector<uint8_t>*
getKey()
const;
203 std::vector<uint8_t>*
getData();
229 uint64_t mPreviousProgress;
231 uint64_t mStartPosition;
232 uint64_t mEndPosition;
235 uint64_t mModificationTime;
236 std::vector<uint8_t> *mKey;
237 std::vector<uint8_t> *mFullHash;
238 std::vector<uint8_t> *mSparseHash;
239 std::vector<uint8_t> mData;
static const char * getStatusName(unsigned type)
Definition: transfer.h:84
uint64_t getSpeed() const
int getType() const
Gets the type of the transfer.
const std::string getFileString() const
Gets the File String object.
Definition: transfer.h:47
Definition: transfer.h:26
The iberbox namespace.
Definition: task.h:21
Definition: transfer.h:46
uint64_t getModificationTime() const
Definition: transfer.h:36
TransferType
Definition: transfer.h:32
Definition: transfer.h:37
static const std::string getTypeNameString(unsigned type)
Gets the transfer type name.
Definition: transfer.h:79
static const char * getTypeName(unsigned type)
Gets the transfer type name.
Definition: transfer.h:60
const char * getFile() const
Gets the path of the file being transferred.
std::vector< uint8_t > * getSparseHash() const
Gets the Sparse Hash object.
uint64_t getPriority() const
Gets the priority of the transfer.
std::vector< Transfer > TransferDataList
Definition: transfer.h:246
Definition: transfer.h:35
const char * getSession() const
Gets the Session object.
uint64_t getEndPosition() const
std::shared_ptr< NodeData > Node
Definition: node.h:666
const std::string getErrorNameString() const
std::vector< uint8_t > * getData()
Node getNode() const
Gets the Node object.
Definition: transfer.h:50
Definition: transfer.h:48
std::vector< uint8_t > * getKey() const
Gets the Key object.
uint64_t getNodeId() const
Gets the Node Id object.
int getNodeType() const
Gets the Node Type object.
Definition: transfer.h:38
std::shared_ptr< TransferData > Transfer
Definition: transfer.h:245
uint64_t getProgress() const
Gets the progress of the transfer.
Definition: transfer.h:49
uint64_t getPreviousProgress() const
Definition: transfer.h:51
std::shared_ptr< TransferDataList > TransferList
Definition: transfer.h:247
uint64_t getRetryTime() const
uint8_t getRetries() const
unsigned getCrypto() const
Gets the crypto...
The error class.
Definition: error.h:25
static const std::string getStatusNameString(unsigned type)
Definition: transfer.h:98
const char * getErrorName() const
std::vector< uint8_t > * getFullHash() const
Gets the Full Hash object.
int getTag() const
Gets the tag that identifies the transfer.
TransferStatus
The transfer status enum.
Definition: transfer.h:44
Definition: transfer.h:34
uint64_t getStartPosition() const
int getStatus() const
Gets the status of the transfer.