equal
deleted
inserted
replaced
125 static bool checkFolderFileName( const QString& name ); |
125 static bool checkFolderFileName( const QString& name ); |
126 |
126 |
127 /** |
127 /** |
128 * check file or folder path is illegal or not. |
128 * check file or folder path is illegal or not. |
129 * |
129 * |
130 * @param path file/folder path. |
130 * @param fileName file/folder name, used to check illegal characters |
|
131 * @param path file/folder path, used to check if path is available to use. |
131 * @param errString if return false, errString will be set for error note. |
132 * @param errString if return false, errString will be set for error note. |
132 * @return true for not illegal and false for illegal path. |
133 * @return true for not illegal and false for illegal path. |
133 */ |
134 */ |
134 static bool checkNewFolderOrFile( const QString &path, QString &errString ); |
135 static bool checkNewFolderOrFile( const QString& fileName, const QString &path, QString &errString ); |
|
136 |
|
137 /* |
|
138 * get the volume name of the disk, if it is null, then return the default name. |
|
139 * @param diskName the driver letter. |
|
140 * @param defaultName whether it is the default name. |
|
141 * @return the volume name. |
|
142 */ |
|
143 static QString getVolumeNameWithDefaultNameIfNull( const QString &diskName, bool &defaultName ); |
135 |
144 |
136 }; |
145 }; |
137 |
146 |
138 #endif |
147 #endif |
139 |
148 |