1 /*
2  *  Copyright (c) 2017 Dmitry Kazakov <dimula73@gmail.com>
3  *
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation; either version 2 of the License, or
7  *  (at your option) any later version.
8  *
9  *  This program 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
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program; if not, write to the Free Software
16  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  */
18 
19 #ifndef KISIMAGECONFIGNOTIFIER_H
20 #define KISIMAGECONFIGNOTIFIER_H
21 
22 #include <QObject>
23 #include "kritaimage_export.h"
24 
25 class KRITAIMAGE_EXPORT KisImageConfigNotifier : public QObject
26 {
27     Q_OBJECT
28 public:
29     explicit KisImageConfigNotifier();
30     ~KisImageConfigNotifier() override;
31 
32     static KisImageConfigNotifier* instance();
33 
34     /**
35      * Notify that the configuration has changed. This will cause the
36      * configChanged() signal to be emitted.
37      */
38     void notifyConfigChanged(void);
39 
40 Q_SIGNALS:
41     /**
42      * This signal is emitted whenever notifyConfigChanged() is called.
43      */
44     void configChanged(void);
45 
46 private:
47     Q_DISABLE_COPY(KisImageConfigNotifier)
48 
49 private:
50     struct Private;
51     const QScopedPointer<Private> m_d;
52 };
53 
54 #endif // KISIMAGECONFIGNOTIFIER_H
55