Fix use of singleton pattern.
[tagua/yd.git] / src / actioncollection.h
blob2a32f67b22b9ab10043d152e0367c7e3e636fe61
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2007 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #ifndef ACTIONCOLLECTION_H
12 #define ACTIONCOLLECTION_H
14 #include <boost/function.hpp>
15 #include <QList>
16 #include <QHash>
17 #include <QObject>
19 class QAction;
21 class ActionCollection : public QObject {
22 Q_OBJECT
23 QList<QAction*> m_actions;
24 public:
25 ActionCollection();
27 void add(QAction* action);
28 QList<QAction*> actions() const;
31 #endif // ACTIONCOLLECTION_H