comparison kdiff3/src-QT4/fileaccess.h @ 101:8463601a34a7

Corrections for file sizes >2GB
author joachim99
date Sat, 31 Jul 2010 21:17:57 +0000
parents 6f42f5bd218e
children
comparison
equal deleted inserted replaced
100:519e1cf2dab9 101:8463601a34a7
38 bool isValid() const; 38 bool isValid() const;
39 bool isFile() const; 39 bool isFile() const;
40 bool isDir() const; 40 bool isDir() const;
41 bool isSymLink() const; 41 bool isSymLink() const;
42 bool exists() const; 42 bool exists() const;
43 long size() const; // Size as returned by stat(). 43 qint64 size() const; // Size as returned by stat().
44 long sizeForReading(); // If the size can't be determined by stat() then the file is copied to a local temp file. 44 qint64 sizeForReading(); // If the size can't be determined by stat() then the file is copied to a local temp file.
45 bool isReadable() const; 45 bool isReadable() const;
46 bool isWritable() const; 46 bool isWritable() const;
47 bool isExecutable() const; 47 bool isExecutable() const;
48 bool isHidden() const; 48 bool isHidden() const;
49 QString readLink() const; 49 QString readLink() const;
87 void setUdsEntry( const KIO::UDSEntry& e ); 87 void setUdsEntry( const KIO::UDSEntry& e );
88 KUrl m_url; 88 KUrl m_url;
89 bool m_bLocal; 89 bool m_bLocal;
90 bool m_bValidData; 90 bool m_bValidData;
91 91
92 unsigned long m_size; 92 qint64 m_size;
93 QDateTime m_modificationTime; 93 QDateTime m_modificationTime;
94 QDateTime m_accessTime; 94 QDateTime m_accessTime;
95 QDateTime m_creationTime; 95 QDateTime m_creationTime;
96 bool m_bReadable; 96 bool m_bReadable;
97 bool m_bWritable; 97 bool m_bWritable;
141 private: 141 private:
142 FileAccess* m_pFileAccess; 142 FileAccess* m_pFileAccess;
143 bool m_bSuccess; 143 bool m_bSuccess;
144 144
145 // Data needed during Job 145 // Data needed during Job
146 long m_transferredBytes; 146 qint64 m_transferredBytes;
147 char* m_pTransferBuffer; // Needed during get or put 147 char* m_pTransferBuffer; // Needed during get or put
148 long m_maxLength; 148 qint64 m_maxLength;
149 149
150 QString m_filePattern; 150 QString m_filePattern;
151 QString m_fileAntiPattern; 151 QString m_fileAntiPattern;
152 QString m_dirAntiPattern; 152 QString m_dirAntiPattern;
153 t_DirectoryList* m_pDirList; 153 t_DirectoryList* m_pDirList;