8 #define RS_SYSTEM RS_System::instance()
11 * Class for some system methods such as file system operations.
12 * Implemented as singleton. Use init to Initialize the class
15 * @author Andrew Mustun
23 static RS_System * instance();
24 void init(const QString & appName, const QString & appVersion,
25 const QString & appDirName, const QString & appDir = "");
26 void initLanguageList();
28 bool createHomePath(const QString & p);
30 QString getCurrentDir();
32 QStringList getFontList();
33 QStringList getPatternList();
34 QStringList getScriptList();
35 QStringList getMachineList();
38 QString getAppVersion();
39 QStringList getFileList(const QString & subDirectory, const QString & fileExtension);
40 QStringList getDirectoryList(const QString& subDirectory);
41 QStringList getLanguageList();
43 static QString languageToSymbol(const QString & lang);
44 static QString symbolToLanguage(const QString & symb);
45 static QString getEncoding(const QString & str);
47 void loadTranslation(const QString & lang, const QString & langCmd);
50 /** Returns ISO code for given locale. Needed for win32 to convert
51 from system encodings. */
52 static QString localeToISO(const QString & locale);
55 static RS_System * uniqueInstance;
62 //! List of available translations
63 QStringList languageList;