8 #define SYSTEM System::instance()
11 * Class for some system methods such as file system operations.
12 * Implemented as singleton. Use init to Initialize the class
13 * before you use it. (LAME! It should detect this condition transparently!)
15 * @author James Hammons
16 * @author Andrew Mustun
24 static System * instance();
25 void init(const QString & appName, const QString & appVersion,
26 const QString & appDirName, const QString & appDir = "");
27 void initLanguageList();
29 bool createHomePath(const QString & p);
31 QString getCurrentDir();
33 QStringList getFontList();
34 QStringList getPatternList();
35 QStringList getScriptList();
36 QStringList getMachineList();
39 QString getAppVersion();
40 QStringList getFileList(const QString & subDirectory, const QString & fileExtension);
41 QStringList getDirectoryList(const QString& subDirectory);
42 QStringList getLanguageList();
44 static QString languageToSymbol(const QString & lang);
45 static QString symbolToLanguage(const QString & symb);
46 static QString getEncoding(const QString & str);
48 void loadTranslation(const QString & lang, const QString & langCmd);
51 /** Returns ISO code for given locale. Needed for win32 to convert
52 from system encodings. */
53 static QString localeToISO(const QString & locale);
56 static System * uniqueInstance;
63 //! List of available translations
64 QStringList languageList;
69 #endif // __SYSTEM_H__