UniversalIndentGUI 1.2.0
SettingsPaths.h
Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2006-2012 by Thomas Schweitzer                          *
00003  *   thomas-schweitzer(at)arcor.de                                         *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License version 2.0 as   *
00007  *   published by the Free Software Foundation.                            *
00008  *                                                                         *
00009  *   This program is distributed in the hope that it will be useful,       *
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00012  *   GNU General Public License for more details.                          *
00013  *                                                                         *
00014  *   You should have received a copy of the GNU General Public License     *
00015  *   along with this program in the file LICENSE.GPL; if not, write to the *
00016  *   Free Software Foundation, Inc.,                                       *
00017  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00018  ***************************************************************************/
00019 
00020 #ifndef SETTINGSPATHS_H
00021 #define SETTINGSPATHS_H
00022 
00023 class QString;
00024 
00025 
00026 class SettingsPaths
00027 {
00028 public:
00029     static void init();
00030     static const QString getApplicationBinaryPath();
00031     static const QString getSettingsPath();
00032     static const QString getGlobalFilesPath();
00033     static const QString getIndenterPath();
00034     static const QString getTempPath();
00035     static bool getPortableMode();
00036     static void cleanAndRemoveTempDir();
00037 
00038 private:
00039     SettingsPaths();
00040 
00041     static bool _alreadyInitialized;
00042     static QString _applicationBinaryPath;
00043     static QString _settingsPath;
00044     static QString _globalFilesPath;
00045     static QString _indenterPath;
00046     static QString _tempPath;
00047     static bool _portableMode;
00048 };
00049 
00050 #endif // SETTINGSPATHS_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines