~ubuntu-branches/ubuntu/wily/libkscreen/wily-proposed

« back to all changes in this revision

Viewing changes to src/configmonitor.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-10-01 15:47:21 UTC
  • Revision ID: package-import@ubuntu.com-20141001154721-96ng88bgtxpj8sjv
Tags: upstream-5.1.0.1
Import upstream version 5.1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*************************************************************************************
 
2
 *  Copyright 2012, 2013  Daniel Vrátil <dvratil@redhat.com>                         *
 
3
 *                                                                                   *
 
4
 *  This library is free software; you can redistribute it and/or                    *
 
5
 *  modify it under the terms of the GNU Lesser General Public                       *
 
6
 *  License as published by the Free Software Foundation; either                     *
 
7
 *  version 2.1 of the License, or (at your option) any later version.               *
 
8
 *                                                                                   *
 
9
 *  This library is distributed in the hope that it will be useful,                  *
 
10
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of                   *
 
11
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                *
 
12
 *  Lesser General Public License for more details.                                  *
 
13
 *                                                                                   *
 
14
 *  You should have received a copy of the GNU Lesser General Public                 *
 
15
 *  License along with this library; if not, write to the Free Software              *
 
16
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA       *
 
17
 *************************************************************************************/
 
18
 
 
19
#ifndef KSCREEN_CONFIGMONITOR_H
 
20
#define KSCREEN_CONFIGMONITOR_H
 
21
 
 
22
#include <QtCore/QObject>
 
23
#include <QtCore/QPointer>
 
24
 
 
25
#include "config.h"
 
26
#include "kscreen_export.h"
 
27
 
 
28
 
 
29
namespace KScreen
 
30
{
 
31
 
 
32
class KSCREEN_EXPORT ConfigMonitor : public QObject
 
33
{
 
34
    Q_OBJECT
 
35
 
 
36
public:
 
37
    static ConfigMonitor* instance();
 
38
 
 
39
    void addConfig(KScreen::Config *config);
 
40
    void removeConfig(KScreen::Config *config);
 
41
 
 
42
public Q_SLOTS:
 
43
    void notifyUpdate();
 
44
 
 
45
Q_SIGNALS:
 
46
    void configurationChanged();
 
47
 
 
48
private:
 
49
    explicit ConfigMonitor();
 
50
    virtual ~ConfigMonitor();
 
51
 
 
52
    Q_DISABLE_COPY(ConfigMonitor)
 
53
 
 
54
    class Private;
 
55
    Private * const d;
 
56
    Q_PRIVATE_SLOT(d, void _k_configurationDestroyed(QObject *))
 
57
};
 
58
 
 
59
} /* namespace KScreen */
 
60
 
 
61
#endif // KSCREEN_CONFIGMONITOR_H