|
|
|
@ -45,7 +45,7 @@ private: // Private attributes
|
|
|
|
|
TQ_UINT32 mFlags;
|
|
|
|
|
|
|
|
|
|
/** Size of the file in bytes. Should be 64 bit safe. */
|
|
|
|
|
Q_ULLONG mSize;
|
|
|
|
|
TQ_ULLONG mSize;
|
|
|
|
|
|
|
|
|
|
/** User id of the owner of the file. */
|
|
|
|
|
uid_t mUid;
|
|
|
|
@ -94,7 +94,7 @@ public:
|
|
|
|
|
~sftpFileAttr();
|
|
|
|
|
|
|
|
|
|
/** Constructor to initialize the file attributes on declaration. */
|
|
|
|
|
sftpFileAttr(Q_ULLONG size_, uid_t uid_, gid_t gid_, mode_t permissions_,
|
|
|
|
|
sftpFileAttr(TQ_ULLONG size_, uid_t uid_, gid_t gid_, mode_t permissions_,
|
|
|
|
|
time_t atime_, time_t mtime_, TQ_UINT32 extendedCount_ = 0);
|
|
|
|
|
|
|
|
|
|
/** Return the size of the sftp attribute not including filename or longname*/
|
|
|
|
@ -104,7 +104,7 @@ public:
|
|
|
|
|
void clear();
|
|
|
|
|
|
|
|
|
|
/** Set the size of the file. */
|
|
|
|
|
void setFileSize(Q_ULLONG s)
|
|
|
|
|
void setFileSize(TQ_ULLONG s)
|
|
|
|
|
{ mSize = s; mFlags |= SSH2_FILEXFER_ATTR_SIZE; }
|
|
|
|
|
|
|
|
|
|
/** The size file attribute will not be included in the UDSEntry
|
|
|
|
@ -113,7 +113,7 @@ public:
|
|
|
|
|
{ mSize = 0; mFlags &= ~SSH2_FILEXFER_ATTR_SIZE; }
|
|
|
|
|
|
|
|
|
|
/** Returns the size of the file. */
|
|
|
|
|
Q_ULLONG fileSize() const { return mSize; }
|
|
|
|
|
TQ_ULLONG fileSize() const { return mSize; }
|
|
|
|
|
|
|
|
|
|
/** Sets the POSIX permissions of the file. */
|
|
|
|
|
void setPermissions(mode_t p)
|
|
|
|
|