filemanager/src/inc/fmdefine.h
changeset 46 d58987eac7e8
parent 37 15bc28c9dd51
equal deleted inserted replaced
37:15bc28c9dd51 46:d58987eac7e8
    65 #define Drive_Z ( QString( "Z:" ) + QDir::separator() )
    65 #define Drive_Z ( QString( "Z:" ) + QDir::separator() )
    66 #define Folder_C_Data ( QString( "C:" ) + QDir::separator() + QString( "Data" ) + QDir::separator() )
    66 #define Folder_C_Data ( QString( "C:" ) + QDir::separator() + QString( "Data" ) + QDir::separator() )
    67 
    67 
    68 // define  contact data path for view details.
    68 // define  contact data path for view details.
    69 #define FmViewDetail_Contacts ( "\\private\\10003a73\\SQLite__Contacts.cdb" )
    69 #define FmViewDetail_Contacts ( "\\private\\10003a73\\SQLite__Contacts.cdb" )
       
    70 // define message data path for view details
       
    71 #define FmViewDetail_Messages ( "\\private\\1000484b\\Mail2" )
    70 
    72 
    71 #define FmMaxLengthofDriveName           11
    73 #define FmMaxLengthofDriveName           11
    72 #define FmMaxLengthofDrivePassword       8
    74 #define FmMaxLengthofDrivePassword       8
    73 
    75 
    74 // used to match un-zeroLength string, empty character such as space is acceptable
    76 // used to match un-zeroLength string, empty character such as space is acceptable
    87 #define Regex_ValidFileFolderName QString( "^[^\\\\/:*?\"<>|]*[^\\\\/:*?\"<>|\\s][^\\\\/:*?\"<>|]*$" )
    89 #define Regex_ValidFileFolderName QString( "^[^\\\\/:*?\"<>|]*[^\\\\/:*?\"<>|\\s][^\\\\/:*?\"<>|]*$" )
    88 
    90 
    89 // is not end with dot( trim blank characters in the end first )
    91 // is not end with dot( trim blank characters in the end first )
    90 #define Regex_ValidNotEndWithDot QString( "^.*[^\\.\\s][\\s]*$" )
    92 #define Regex_ValidNotEndWithDot QString( "^.*[^\\.\\s][\\s]*$" )
    91 
    93 
       
    94 // use slash(/) not backslash(\) or QDir::separator() because QRegExp can not recognize BackSlash(\)
       
    95 #define RegexWidecard_SystemFolder      QString( "?:/system/*" )
       
    96 #define RegexWidecard_SysFolder         QString( "?:/sys/*" )
       
    97 #define RegexWidecard_PrivateFolder     QString( "?:/private/*" )
       
    98 #define RegexWidecard_ResourceFolder    QString( "?:/resource/*" )
       
    99 
       
   100 #define Char_Slash       QChar( '/' )
       
   101 #define Char_BackSlash   QChar( '\\' )
       
   102 
    92 #endif 
   103 #endif