X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fsystem.h;fp=src%2Fbase%2Fsystem.h;h=0000000000000000000000000000000000000000;hb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;hp=8933f28dc325c82e960dafe885a857277d38acb5;hpb=43c13b052d069ba435277d93867380d00c04931f;p=architektonas diff --git a/src/base/system.h b/src/base/system.h deleted file mode 100644 index 8933f28..0000000 --- a/src/base/system.h +++ /dev/null @@ -1,69 +0,0 @@ -#ifndef __SYSTEM_H__ -#define __SYSTEM_H__ - -#include -#include -#include "debug.h" - -#define SYSTEM System::instance() - -/** - * Class for some system methods such as file system operations. - * Implemented as singleton. Use init to Initialize the class - * before you use it. (LAME! It should detect this condition transparently!) - * - * @author James Hammons - * @author Andrew Mustun - */ -class System -{ - protected: - System(); - - public: - static System * instance(); - void init(const QString & appName, const QString & appVersion, - const QString & appDirName, const QString & appDir = ""); - void initLanguageList(); - bool checkInit(); - bool createHomePath(const QString & p); - QString getHomeDir(); - QString getCurrentDir(); - QString getAppDir(); - QStringList getFontList(); - QStringList getPatternList(); - QStringList getScriptList(); - QStringList getMachineList(); - QString getDocPath(); - QString getAppName(); - QString getAppVersion(); - QStringList getFileList(const QString & subDirectory, const QString & fileExtension); - QStringList getDirectoryList(const QString& subDirectory); - QStringList getLanguageList(); - - static QString languageToSymbol(const QString & lang); - static QString symbolToLanguage(const QString & symb); - static QString getEncoding(const QString & str); - - void loadTranslation(const QString & lang, const QString & langCmd); - static bool test(); - - /** Returns ISO code for given locale. Needed for win32 to convert - from system encodings. */ - static QString localeToISO(const QString & locale); - - protected: - static System * uniqueInstance; - - QString appName; - QString appVersion; - QString appDirName; - QString appDir; - - //! List of available translations - QStringList languageList; - - bool initialized; -}; - -#endif // __SYSTEM_H__