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 |
75 #define Regex_ValidUnZeroLength QString( "^.+$" ) |
77 #define Regex_ValidUnZeroLength QString( "^.+$" ) |
76 |
78 |
77 // used to match un-empty string, and is not totally empty characters. |
79 // used to match un-empty string, and is not totally empty characters. |
78 #define Regex_ValidUnEmpty QString( "^.*[^\\s].*$" ) |
80 #define Regex_ValidUnEmpty QString( "^.*[^\\s].*$" ) |
79 |
81 |
80 // this is regexp for vaild file/folder name: no \/:*?"<>| and is not totally empty characters. |
82 // this is regexp for valid 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 |
83 // 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: |
84 // this expression is composed by two expressions: |
83 // ^.*[^\\s].*$ used to match un-empty string and is not totally empty characters. |
85 // ^.*[^\\s].*$ used to match un-empty string and is not totally empty characters. |
84 // [^\\\\/:*?\"<>|] used to math valid file/folder name |
86 // [^\\\\/:*?\"<>|] used to math valid file/folder name |
85 // merge the two regex together: |
87 // merge the two regex together: |
86 // vaild file/folder name and is not totally empty. |
88 // valid file/folder name and is not totally empty. |
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 |