summaryrefslogblamecommitdiffstats
path: root/src/choosersettings.h
blob: ea0bb760263306bdbc0e2a04e83f9683ac2620e1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                            
                                                                    

                       

                                                       

        

                                            
 
                        
 

                               


                               
/*
 * choosersettings.h
 *
 *  Created on: Mar 24, 2014
 *      Author: nils
 */

#ifndef CHOOSERSETTINGS_H_
#define CHOOSERSETTINGS_H_

#include <QDebug>
#include <QSettings>
#include <QDir>

// TODO: Proper name. This is the user specific settings, not global
class ChooserSettings {
public:
    static QString getSetting(QString key);
    static bool setSetting(QString key, QString value);

private:
    static ChooserSettings* chooserSettings;
    static bool settingsLoaded;

    QSettings* settings;

    ChooserSettings();
    virtual ~ChooserSettings();
};

#endif /* CHOOSERSETTINGS_H_ */