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 ); | 
|    204     if( QDesktopServices::openUrl( QUrl::fromLocalFile( filePath ) ) ) { |    220     if( QDesktopServices::openUrl( QUrl::fromLocalFile( filePath ) ) ) { | 
|    205         return FmErrNone; |    221         return FmErrNone; | 
|    206     } else { |    222     } else { | 
|    207         return FmErrGeneral; |    223         return FmErrGeneral; | 
|    208     } |    224     } | 
|    209 } |         | 
|    210  |         | 
|    211 void FmUtils::sendFiles( QStringList &filePathList ) |         | 
|    212 { |         | 
|    213     Q_UNUSED( filePathList ); |         | 
|    214 } |    225 } | 
|    215  |    226  | 
|    216 QString FmUtils::getBurConfigPath( QString appPath ) |    227 QString FmUtils::getBurConfigPath( QString appPath ) | 
|    217 { |    228 { | 
|    218     QFileInfo fileInfo( appPath ); |    229     QFileInfo fileInfo( appPath ); | 
|    249     if( path.length() > KMaxPath ) { |    260     if( path.length() > KMaxPath ) { | 
|    250         return false; |    261         return false; | 
|    251     } |    262     } | 
|    252     return true; |    263     return true; | 
|    253 } |    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 } |