aboutsummaryrefslogtreecommitdiff
path: root/src/settings.h
blob: e05f216308eb6d839973330dc2a2e4012708308f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
 * Copyright (c) 2012 Nokia Corporation.
 * All rights reserved.
 *
 * For the applicable distribution terms see the license text file included in
 * the distribution.
 */

#ifndef SETTINGS_H
#define SETTINGS_H

#include <QtCore/QObject>
#include <QtCore/QVariant>


class Settings : public QObject
{
    Q_OBJECT

public:
    explicit Settings(QObject *parent = 0);
    explicit Settings(const Settings &settings);

public slots:
    void setSetting(const QString &setting, const QVariant &value);
    QVariant setting(const QString &setting, const QVariant &defaultValue);
    QVariant setting(const QString &setting);
    bool removeSetting(const QString &setting);
    void clear();

signals:
    void settingChanged(const QString &setting, const QVariant &value);
};

#endif // SETTINGS_H