146 // <QtBasedFunctions> |
147 // <QtBasedFunctions> |
147 static QString getDriveNameFromPath( const QString &path ); |
148 static QString getDriveNameFromPath( const QString &path ); |
148 static QString getDriveLetterFromPath( const QString &path ); |
149 static QString getDriveLetterFromPath( const QString &path ); |
149 static QString formatStorageSize( quint64 size ); |
150 static QString formatStorageSize( quint64 size ); |
150 static bool isDrive( const QString &path ); |
151 static bool isDrive( const QString &path ); |
151 static QString formatPath( const QString &path ); |
152 static QString formatPath( const QString &path, const QChar &splitter = QDir::separator() ); |
152 static QString fillPathWithSplash( const QString &filePath ); |
153 static QString fillPathWithSplash( const QString &filePath, const QChar &splitter = QDir::separator() ); |
153 static QString removePathSplash( const QString &filePath ); |
154 static QString removePathSplash( const QString &filePath ); |
154 static void getDriveList( QStringList &driveList, bool isHideUnAvailableDrive ); |
155 static void getDriveList( QStringList &driveList, bool isHideUnAvailableDrive ); |
155 static QString fillDriveVolume( QString driveName, bool isFillWithDefaultVolume ); |
156 static QString fillDriveVolume( QString driveName, bool isFillWithDefaultVolume ); |
156 static QString getDefaultVolumeName( const QString &driveName ); |
157 static QString getDefaultVolumeName( const QString &driveName ); |
157 static QString getVolumeNameWithDefaultNameIfNull( const QString &diskName, bool &defaultName ); |
158 static QString getVolumeNameWithDefaultNameIfNull( const QString &diskName, bool &defaultName ); |
158 static bool isPathEqual( const QString &pathFst, const QString &pathLast ); |
159 static bool isPathEqual( const QString &pathFst, const QString &pathLast ); |
159 static bool checkFolderFileName( const QString& name ); |
160 static bool checkFolderFileName( const QString& name ); |
160 static bool checkNewFolderOrFile( const QString& fileName, const QString &path, QString &errString ); |
161 static bool checkNewFolderOrFile( const QString& fileName, const QString &path, QString &errString ); |
161 static bool isSubLevelPath( const QString &src, const QString &dest ); |
162 static bool isSubLevelPath( const QString &src, const QString &dest ); |
|
163 static bool isSystemFolder( const QString &path ); |
162 // </QtBasedFunctions> |
164 // </QtBasedFunctions> |
163 ////////////////////////////////////////////////////////////////// |
165 ////////////////////////////////////////////////////////////////// |
164 |
166 |
165 |
167 |
166 ////////////////////////////////////////////////////////////////// |
168 ////////////////////////////////////////////////////////////////// |
200 static QString getBurConfigPath( QString appPath ); |
202 static QString getBurConfigPath( QString appPath ); |
201 static QString getFileType( const QString &filePath ); |
203 static QString getFileType( const QString &filePath ); |
202 static bool isDriveC( const QString &driverName ); |
204 static bool isDriveC( const QString &driverName ); |
203 static int getMaxFileNameLength(); |
205 static int getMaxFileNameLength(); |
204 static bool checkMaxPathLength( const QString& path ); |
206 static bool checkMaxPathLength( const QString& path ); |
|
207 static void setSystem( bool isSystem ); |
|
208 static QString numberToDriveName( int drive ); |
205 // </platformBasedFunctions> |
209 // </platformBasedFunctions> |
206 ////////////////////////////////////////////////////////////////// |
210 ////////////////////////////////////////////////////////////////// |
207 }; |
211 }; |
208 |
212 |
209 #endif |
213 #endif |