fileTools.h

Go to the documentation of this file.
00001 //==============================================
00002 //  copyright            : (C) 2003-2005 by Will Stokes
00003 //==============================================
00004 //  This program is free software; you can redistribute it
00005 //  and/or modify it under the terms of the GNU General
00006 //  Public License as published by the Free Software
00007 //  Foundation; either version 2 of the License, or
00008 //  (at your option) any later version.
00009 //==============================================
00010 
00011 #ifndef BACKEND_TOOLS_FILETOOLS_H
00012 #define BACKEND_TOOLS_FILETOOLS_H
00013 
00014 //--------------------
00015 //forward declarations
00016 //--------------------
00017 class QString;
00018 
00019 //Moves a file from one location to another
00020 bool moveFile( QString oldName, QString newName);
00021 
00023 bool copyFile(QString oldName, QString newName);
00024 
00026 QString fixFilename( QString filename );
00027 
00028 //PLATFORM_SPECIFIC_CODE
00030 #if defined(Q_OS_WIN)
00031 typedef enum
00032 {
00033   APPLICATION_DATA,                // {user}/Application Data
00034   LOCAL_SETTINGS_APPLICATION_DATA, //{user}/Local Settings/Application Data
00035 } FOLDER_TYPE;
00036   
00038 bool getWindowsFolderLocation(FOLDER_TYPE type, QString& path);
00039 #endif
00040 
00041 #endif //BACKEND_TOOLS_FILETOOLS_H

Generated on Wed Nov 8 16:37:13 2006 for AlbumShaper by  doxygen 1.4.7