filemanager/src/inc/fmutils_win.cpp
changeset 46 d58987eac7e8
parent 37 15bc28c9dd51
--- a/filemanager/src/inc/fmutils_win.cpp	Tue Aug 24 10:24:14 2010 +0800
+++ b/filemanager/src/inc/fmutils_win.cpp	Wed Sep 29 10:37:03 2010 +0800
@@ -32,6 +32,9 @@
 const int KMaxFileName=0x100;
 const int KMaxPath=0x100;
 
+// EDriveA means number of A drive
+const int EDriveA = 0;
+
 FmDriverInfo FmUtils::queryDriverInfo( const QString &driveName )
 {
     quint64 size = 0;
@@ -168,6 +171,19 @@
 }
 
 /*!
+    return localized file name by \a path, empty string returned for non-localized path.
+    In Symbian system, default folders will be localized.
+    So localize also can be used to check if a path is a default folder
+    Do not need localize on windows.
+    \sa isDefaultFolder
+*/
+QString FmUtils::localize( const QString &path )
+{
+    Q_UNUSED( path );
+    return QString();
+}
+
+/*!
     set the \a desFile attributes as the same with \a srcFile
 */
 int FmUtils::setFileAttributes( const QString &srcFile, const QString &desFile )
@@ -208,11 +224,6 @@
     }
 }
 
-void FmUtils::sendFiles( QStringList &filePathList )
-{
-    Q_UNUSED( filePathList );
-}
-
 QString FmUtils::getBurConfigPath( QString appPath )
 {
     QFileInfo fileInfo( appPath );
@@ -251,3 +262,15 @@
     }
     return true;
 }
+
+void FmUtils::setSystem( bool isSystem )
+{
+    Q_UNUSED( isSystem );
+}
+
+QString FmUtils::numberToDriveName( int drive )
+{
+    QChar driveChar( drive - EDriveA + 'A' );
+    QString driveName = QString( driveChar ) + ':';
+    return driveName;
+}