filemanager/src/inc/fmdefine.h
changeset 30 6e96d2143d46
parent 29 b3155376f2b4
child 35 060d0b1ab845
--- a/filemanager/src/inc/fmdefine.h	Wed Jun 23 18:03:11 2010 +0300
+++ b/filemanager/src/inc/fmdefine.h	Tue Jul 06 14:06:28 2010 +0300
@@ -18,48 +18,55 @@
 #define FMDEFINE_H
 
 // define for filemanager error
-#define  FmErrNone                       0
-#define  FmErrNotFound                  -1
-#define  FmErrGeneral                   -2
-#define  FmErrAlreadyExists             -3
-#define  FmErrAccessDenied              -4
-#define  FmErrCannotRemove              -5
-#define  FmErrCannotCopy                -6
-#define  FmErrDiskFull                  -7
-#define  FmErrFileUsed                  -8
-#define  FmErrFolderUsed                -9
-#define  FmErrTypeFormatFailed          -10
-#define  FmErrTypeFormatFailedUsed      -11
-#define  FmErrAlreadyStarted            -12
-#define  FmErrCancel                    -13
-#define  FmErrWrongParam                -14
-#define  FmErrUnKnown                   -15
-#define  FmErrIsNotFileOrFolder         -16
-#define  FmErrCannotMakeDir             -17
-#define  FmErrSrcPathDoNotExist         -18
-#define  FmErrDestPathDoNotExist        -19
-#define  FmErrCopyDestToSubFolderInSrc  -20
-#define  FmErrMoveDestToSubFolderInSrc  -21
-#define  FmErrNotSupported              -22
-#define  FmErrNotReady                  -23
-#define  FmErrInUse                     -24
-#define  FmErrPermissionDenied          -25
-#define  FmErrBadName                   -26
-#define  FmErrPathNotFound              -27
-#define  FmErrRemoveDefaultFolder       -28
-#define  FmErrLocked                    -29
-#define  FmErrCorrupt                   -30
-#define  FmErrDisMounted                -31
+#define  FmErrNone                       0  // No Error
+#define  FmErrNotFound                  -1  // General error for things requested is not found 
+#define  FmErrGeneral                   -2  // General error
+#define  FmErrAlreadyExists             -3  // General for already existed. for example if unlock a drive but it has already been unlocked
+#define  FmErrAccessDenied              -4  // General for Access is denied, for example, format a drive but access is denied.
+#define  FmErrCannotRemove              -5  // General error for can not performance remove
+#define  FmErrCannotCopy                -6  // General error for can not performance copy
+#define  FmErrDiskFull                  -7  // Error for disk is full
+#define  FmErrFileUsed                  -8  // Error for file is in use
+#define  FmErrFolderUsed                -9  // Error for folder is in use
+#define  FmErrTypeFormatFailed          -10 // Error reported when format failed
+#define  FmErrTypeFormatFailedUsed      -11 // Error reported when user try to format a drive but it is in use 
+#define  FmErrAlreadyStarted            -12 // General error for operation is already started
+#define  FmErrCancel                    -13 // General error for operation canceled
+#define  FmErrWrongParam                -14 // General error for wrong parameter
+#define  FmErrUnKnown                   -15 // Unknown error
+#define  FmErrIsNotFileOrFolder         -16 // Error for a path which is not a fild or folder.
+#define  FmErrCannotMakeDir             -17 // Error for can not create directory.
+#define  FmErrSrcPathDoNotExist         -18 // Error for source path is not exist.
+#define  FmErrDestPathDoNotExist        -19 // Error for destination path is not exist.
+#define  FmErrCopyDestToSubFolderInSrc  -20 // If user try to copy a folder to its sub folder, error will occur
+#define  FmErrMoveDestToSubFolderInSrc  -21 // If user try to move a folder to its sub folder, error will occur
+#define  FmErrNotSupported              -22 // feature not supported, for example, lock an drive which can not be locked
+#define  FmErrNotReady                  -23 // Error when drive is not ready( means drive is not present )
+#define  FmErrInUse                     -24 // Error for drive is in use.
+#define  FmErrPermissionDenied          -25 // Permission Denied 
+#define  FmErrBadName                   -26 // Bad Drive or file/folder name, currently used when rename drive
+#define  FmErrPathNotFound              -27 // Error for path is not found
+#define  FmErrRemoveDefaultFolder       -28 // Error when user try to remove default folder, such as C:/data/images...
+#define  FmErrLocked                    -29 // Disk is locked
+#define  FmErrCorrupt                   -30 // Disk is corrupt
+#define  FmErrDisMounted                -31 // e.g. If disk dis mounted while backuping.
+#define  FmErrDriveNotAvailable         -32 // e.g. if user want to access MMC but it is not available
+#define  FmErrPathDenied                -33 // if user want to access path but it is denied, e.g c:/private
+#define  FmErrDriveDenied               -34 // if user want to access drive but it is denied, e.g D:/
+#define  FmErrPathNotExist              -35 // path not existed.
 
 #define FmEstimateUpperLimit 90 // available mem/backup size*100%=90%, User selectable continuation
 #define FmEstimateLowerLimit 10 // available mem/backup size*100%=10%, Backup will be interrupted
 
 #define FmPlaceholderString " " // Placeholder for HbLabel because layout will be wrong when HbLabel is empty
 
-#define Drive_C QString( "C:" ) + QDir::separator() 
-#define Drive_D QString( "D:" ) + QDir::separator()
-#define Drive_Z QString( "Z:" ) + QDir::separator()
-#define Folder_C_Data QString( "C:" ) + QDir::separator() + QString( "Data" ) + QDir::separator()
+#define Drive_C ( QString( "C:" ) + QDir::separator() ) 
+#define Drive_D ( QString( "D:" ) + QDir::separator() )
+#define Drive_Z ( QString( "Z:" ) + QDir::separator() )
+#define Folder_C_Data ( QString( "C:" ) + QDir::separator() + QString( "Data" ) + QDir::separator() )
+
+// define  contact data path for view details.
+#define FmViewDetail_Contacts ( "\\private\\10003a73\\SQLite__Contacts.cdb" )
 
 #define FmMaxLengthofDriveName           11
 #define FmMaxLengthofDrivePassword       8