pull/2/head
Timothy Pearson 12 years ago
parent a1b8986336
commit 31b5c99830

@ -42,7 +42,7 @@ sftpFileAttr::sftpFileAttr(KRemoteEncoding* encoding){
/** Constructor to initialize the file attributes on declaration. */
sftpFileAttr::sftpFileAttr(Q_ULLONG size, uid_t uid, gid_t gid,
sftpFileAttr::sftpFileAttr(TQ_ULLONG size, uid_t uid, gid_t gid,
mode_t permissions, time_t atime,
time_t mtime, TQ_UINT32 extendedCount) {
clear();
@ -127,7 +127,7 @@ TQDataStream& operator<< (TQDataStream& s, const sftpFileAttr& fa) {
s << (TQ_UINT32)fa.mFlags;
if( fa.mFlags & SSH2_FILEXFER_ATTR_SIZE )
{ s << (Q_ULLONG)fa.mSize; }
{ s << (TQ_ULLONG)fa.mSize; }
if( fa.mFlags & SSH2_FILEXFER_ATTR_UIDGID )
{ s << (TQ_UINT32)fa.mUid << (TQ_UINT32)fa.mGid; }
@ -170,7 +170,7 @@ TQDataStream& operator>> (TQDataStream& s, sftpFileAttr& fa) {
s >> fa.mFlags; // get flags
if( fa.mFlags & SSH2_FILEXFER_ATTR_SIZE ) {
Q_ULLONG fileSize;
TQ_ULLONG fileSize;
s >> fileSize;
fa.setFileSize(fileSize);
}

@ -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)

Loading…
Cancel
Save