filemanager/src/inc/fmutils_win.cpp
changeset 47 12b82dc0e8db
parent 40 4167eb56f30d
--- a/filemanager/src/inc/fmutils_win.cpp	Thu Sep 02 17:00:51 2010 +0800
+++ b/filemanager/src/inc/fmutils_win.cpp	Thu Sep 30 16:33:59 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 )
@@ -246,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;
+}