equal
deleted
inserted
replaced
30 |
30 |
31 #define BURCONFIGFILE "burconfig.xml" |
31 #define BURCONFIGFILE "burconfig.xml" |
32 const int KMaxFileName=0x100; |
32 const int KMaxFileName=0x100; |
33 const int KMaxPath=0x100; |
33 const int KMaxPath=0x100; |
34 |
34 |
|
35 // EDriveA means number of A drive |
|
36 const int EDriveA = 0; |
|
37 |
35 FmDriverInfo FmUtils::queryDriverInfo( const QString &driveName ) |
38 FmDriverInfo FmUtils::queryDriverInfo( const QString &driveName ) |
36 { |
39 { |
37 quint64 size = 0; |
40 quint64 size = 0; |
38 quint64 freeSize = 0; |
41 quint64 freeSize = 0; |
39 QString drive = driveName; |
42 QString drive = driveName; |
166 { |
169 { |
167 Q_UNUSED( driveName ); |
170 Q_UNUSED( driveName ); |
168 } |
171 } |
169 |
172 |
170 /*! |
173 /*! |
|
174 return localized file name by \a path, empty string returned for non-localized path. |
|
175 In Symbian system, default folders will be localized. |
|
176 So localize also can be used to check if a path is a default folder |
|
177 Do not need localize on windows. |
|
178 \sa isDefaultFolder |
|
179 */ |
|
180 QString FmUtils::localize( const QString &path ) |
|
181 { |
|
182 Q_UNUSED( path ); |
|
183 return QString(); |
|
184 } |
|
185 |
|
186 /*! |
171 set the \a desFile attributes as the same with \a srcFile |
187 set the \a desFile attributes as the same with \a srcFile |
172 */ |
188 */ |
173 int FmUtils::setFileAttributes( const QString &srcFile, const QString &desFile ) |
189 int FmUtils::setFileAttributes( const QString &srcFile, const QString &desFile ) |
174 { |
190 { |
175 Q_UNUSED( srcFile ); |
191 Q_UNUSED( srcFile ); |
244 if( path.length() > KMaxPath ) { |
260 if( path.length() > KMaxPath ) { |
245 return false; |
261 return false; |
246 } |
262 } |
247 return true; |
263 return true; |
248 } |
264 } |
|
265 |
|
266 void FmUtils::setSystem( bool isSystem ) |
|
267 { |
|
268 Q_UNUSED( isSystem ); |
|
269 } |
|
270 |
|
271 QString FmUtils::numberToDriveName( int drive ) |
|
272 { |
|
273 QChar driveChar( drive - EDriveA + 'A' ); |
|
274 QString driveName = QString( driveChar ) + ':'; |
|
275 return driveName; |
|
276 } |