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//--------------------
17class QString;
18
19//Moves a file from one location to another
20bool moveFile( QString oldName, QString newName);
21
23bool copyFile(QString oldName, QString newName);
24
26QString fixFilename( QString filename );
27
28//PLATFORM_SPECIFIC_CODE
30#if defined(Q_OS_WIN)
31typedef enum
32{
33 APPLICATION_DATA, // {user}/Application Data
34 LOCAL_SETTINGS_APPLICATION_DATA, //{user}/Local Settings/Application Data
35} FOLDER_TYPE;
36
38bool getWindowsFolderLocation(FOLDER_TYPE type, QString& path);
39#endif
40
41#endif //BACKEND_TOOLS_FILETOOLS_H
bool copyFile(QString oldName, QString newName)
Copies a file from one location to another.
Definition fileTools.cpp:61
QString fixFilename(QString filename)
Replaces invalid characters in filenames with valid ones.
bool moveFile(QString oldName, QString newName)
Definition fileTools.cpp:40