filemanager/src/inc/fmdefine.h
changeset 35 060d0b1ab845
parent 30 6e96d2143d46
child 41 fc4654ce4fcb
equal deleted inserted replaced
30:6e96d2143d46 35:060d0b1ab845
    69 #define FmViewDetail_Contacts ( "\\private\\10003a73\\SQLite__Contacts.cdb" )
    69 #define FmViewDetail_Contacts ( "\\private\\10003a73\\SQLite__Contacts.cdb" )
    70 
    70 
    71 #define FmMaxLengthofDriveName           11
    71 #define FmMaxLengthofDriveName           11
    72 #define FmMaxLengthofDrivePassword       8
    72 #define FmMaxLengthofDrivePassword       8
    73 
    73 
       
    74 // used to match un-zeroLength string, empty character such as space is acceptable
       
    75 #define Regex_ValidUnZeroLength QString( "^.+$" )
       
    76 
       
    77 // used to match un-empty string, and is not totally empty characters.
       
    78 #define Regex_ValidUnEmpty QString( "^.*[^\\s].*$" )
       
    79 
       
    80 // this is regexp for vaild file/folder name: no \/:*?"<>| and is not totally empty characters.
       
    81 // file name can not end with "." , but it is not include in this RegExp. It should be checked in Regex_ValidNotEndWithDot
       
    82 // this expression is composed by two expressions:
       
    83 // ^.*[^\\s].*$  used to match un-empty string and is not totally empty characters.
       
    84 // [^\\\\/:*?\"<>|] used to math valid file/folder name
       
    85 // merge the two regex together:
       
    86 // vaild file/folder name and is not totally empty.
       
    87 #define Regex_ValidFileFolderName QString( "^[^\\\\/:*?\"<>|]*[^\\\\/:*?\"<>|\\s][^\\\\/:*?\"<>|]*$" )
       
    88 
       
    89 // is not end with dot( trim blank characters in the end first )
       
    90 #define Regex_ValidNotEndWithDot QString( "^.*[^\\.\\s][\\s]*$" )
       
    91 
    74 #endif 
    92 #endif