AlbumShaper  1.0a3
fileTools.h
Go to the documentation of this file.
1 //==============================================
2 // copyright : (C) 2003-2005 by Will Stokes
3 //==============================================
4 // This program is free software; you can redistribute it
5 // and/or modify it under the terms of the GNU General
6 // Public License as published by the Free Software
7 // Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //==============================================
10 
11 #ifndef BACKEND_TOOLS_FILETOOLS_H
12 #define BACKEND_TOOLS_FILETOOLS_H
13 
14 //--------------------
15 //forward declarations
16 //--------------------
17 class QString;
18 
19 //Moves a file from one location to another
20 bool moveFile( QString oldName, QString newName);
21 
23 bool copyFile(QString oldName, QString newName);
24 
26 QString fixFilename( QString filename );
27 
28 //PLATFORM_SPECIFIC_CODE
30 #if defined(Q_OS_WIN)
31 typedef enum
32 {
33  APPLICATION_DATA, // {user}/Application Data
34  LOCAL_SETTINGS_APPLICATION_DATA, //{user}/Local Settings/Application Data
35 } FOLDER_TYPE;
36 
38 bool getWindowsFolderLocation(FOLDER_TYPE type, QString& path);
39 #endif
40 
41 #endif //BACKEND_TOOLS_FILETOOLS_H
bool moveFile(QString oldName, QString newName)
Definition: fileTools.cpp:40
QString fixFilename(QString filename)
Replaces invalid characters in filenames with valid ones.
Definition: fileTools.cpp:137
bool copyFile(QString oldName, QString newName)
Copies a file from one location to another.
Definition: fileTools.cpp:61