summaryrefslogblamecommitdiffstats
path: root/src/config.h
blob: 011e82a5df9455edb8c3277060c24f2cc080ee6c (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                           





                    
                                                               
























                                                     
                                                 



                                                                                        
                       





                  
#ifndef CONFIG_H
#define CONFIG_H

#include <QCoreApplication>

struct ConfigOption;

class Config
{
public:
    static const ConfigOption* const ALLOW_SCREENSAVER_DISABLE;
    static const ConfigOption* const ALLOW_VM_EDIT;
    static const ConfigOption* const AUTOQUIT;
    static const ConfigOption* const BASEDIR;
    static const ConfigOption* const CONFIG;
    static const ConfigOption* const DEBUG;
    static const ConfigOption* const DEFAULT_SESSION;
    static const ConfigOption* const EXAM_MODE;
    static const ConfigOption* const FULLSCREEN;
    static const ConfigOption* const INSECURE;
    static const ConfigOption* const LOCATIONS;
    static const ConfigOption* const PVS;
    static const ConfigOption* const PVS_CHECKED;
    static const ConfigOption* const RUNSCRIPT;
    static const ConfigOption* const WINDOW_SIZE;
    static const ConfigOption* const DEFAULT_TAB;
    static const ConfigOption* const THEME;
    static const ConfigOption* const URL_BASE;
    static const ConfigOption* const URL_LIST;
    static const ConfigOption* const URL_NEWS;
    static const ConfigOption* const URL_HELP;
    static const ConfigOption* const XSESSION_PATH;
    static const ConfigOption* const LOCATION_MODE;
    static const ConfigOption* const TEMPLATE_MODE;
    static const ConfigOption* const AUTOSTART_UUID;
    static const ConfigOption* const NO_VTX;
    static const ConfigOption* const DUMP_CONFIG;

    static bool init(const QCoreApplication& app, const ConfigOption* const configFile);
    static QString get(const ConfigOption* const option);
    static bool isSet(const ConfigOption* const option);
    static void dump();

private:
    Config() {}
};

#endif // CONFIG_H