~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to src/plugins/macros/macromanager.h

  • Committer: Timo Jyrinki
  • Date: 2013-11-15 12:25:23 UTC
  • mfrom: (1.1.28)
  • Revision ID: timo.jyrinki@canonical.com-20131115122523-i2kyamsu4gs2mu1m
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#ifndef MACROSPLUGIN_MACROMANAGER_H
31
31
#define MACROSPLUGIN_MACROMANAGER_H
32
32
 
33
 
#include "macros_global.h"
34
 
 
35
33
#include <QObject>
36
34
#include <QMap>
37
35
 
40
38
QT_END_NAMESPACE
41
39
 
42
40
namespace Macros {
 
41
namespace Internal {
43
42
 
 
43
class IMacroHandler;
44
44
class Macro;
45
 
class IMacroHandler;
46
 
 
47
 
namespace Internal {
48
 
    class MacroOptionsWidget;
49
 
}
50
 
 
51
 
class MACROS_EXPORT MacroManager : public QObject
 
45
class MacroOptionsWidget;
 
46
class MacrosPlugin;
 
47
 
 
48
class MacroManager : public QObject
52
49
{
53
50
    Q_OBJECT
54
51
public:
55
 
    explicit MacroManager(QObject *parent = 0);
56
 
    ~MacroManager();
57
 
 
58
52
    static MacroManager *instance();
59
53
 
60
 
    const QMap<QString, Macro *> &macros() const;
61
 
 
62
 
    void registerMacroHandler(IMacroHandler *handler);
63
 
 
64
 
    QString macrosDirectory() const;
 
54
    static const QMap<QString, Macro *> &macros();
 
55
 
 
56
    static void registerMacroHandler(IMacroHandler *handler);
 
57
 
 
58
    static QString macrosDirectory();
65
59
 
66
60
public slots:
67
61
    void startMacro();
77
71
    void changeMacro(const QString &name, const QString &description);
78
72
 
79
73
private:
 
74
    explicit MacroManager(QObject *parent = 0);
 
75
    ~MacroManager();
 
76
 
80
77
    static MacroManager *m_instance;
81
78
 
82
79
    class MacroManagerPrivate;
83
80
    MacroManagerPrivate* d;
 
81
 
 
82
    friend class Internal::MacrosPlugin;
84
83
};
85
84
 
 
85
} // namespace Internal
86
86
} // namespace Macros
87
87
 
88
88
#endif // MACROSPLUGIN_MACROMANAGER_H