Changeset View
Changeset View
Standalone View
Standalone View
src/GlobalCurrentTrackActions.h
Show All 13 Lines | |||||
14 | * this program. If not, see <http://www.gnu.org/licenses/>. * | 14 | * this program. If not, see <http://www.gnu.org/licenses/>. * | ||
15 | ****************************************************************************************/ | 15 | ****************************************************************************************/ | ||
16 | 16 | | |||
17 | #ifndef GLOBALCURRENTTRACKACTIONS_H | 17 | #ifndef GLOBALCURRENTTRACKACTIONS_H | ||
18 | #define GLOBALCURRENTTRACKACTIONS_H | 18 | #define GLOBALCURRENTTRACKACTIONS_H | ||
19 | 19 | | |||
20 | #include "amarok_export.h" | 20 | #include "amarok_export.h" | ||
21 | #include "core/meta/forward_declarations.h" | 21 | #include "core/meta/forward_declarations.h" | ||
22 | #include "core/support/SmartPointerList.h" | 22 | | ||
23 | #include <QObject> | ||||
24 | | ||||
23 | 25 | | |||
24 | class GlobalCurrentTrackActions; | 26 | class GlobalCurrentTrackActions; | ||
25 | class QAction; | 27 | class QAction; | ||
26 | 28 | | |||
27 | namespace The { | 29 | namespace The { | ||
28 | AMAROK_EXPORT GlobalCurrentTrackActions* globalCurrentTrackActions(); | 30 | AMAROK_EXPORT GlobalCurrentTrackActions* globalCurrentTrackActions(); | ||
29 | } | 31 | } | ||
30 | 32 | | |||
31 | /** | 33 | /** | ||
32 | A global list of actions that is made available to all playing tracks. | 34 | A global list of actions that is made available to all playing tracks. | ||
33 | 35 | | |||
34 | @author Nikolaj Hald Nielsen <nhn@kde.org> | 36 | @author Nikolaj Hald Nielsen <nhn@kde.org> | ||
35 | */ | 37 | */ | ||
36 | class AMAROK_EXPORT GlobalCurrentTrackActions | 38 | class AMAROK_EXPORT GlobalCurrentTrackActions : public QObject | ||
37 | { | 39 | { | ||
38 | friend GlobalCurrentTrackActions* The::globalCurrentTrackActions(); | 40 | friend GlobalCurrentTrackActions* The::globalCurrentTrackActions(); | ||
39 | 41 | | |||
40 | public: | 42 | public: | ||
41 | void addAction( QAction * action ); | 43 | void addAction( QAction * action ); | ||
42 | QList<QAction *> actions(); | 44 | QList<QAction *> actions(); | ||
43 | 45 | | |||
44 | private: | 46 | private: | ||
45 | GlobalCurrentTrackActions(); | 47 | GlobalCurrentTrackActions(); | ||
46 | ~GlobalCurrentTrackActions(); | 48 | ~GlobalCurrentTrackActions(); | ||
47 | 49 | | |||
48 | SmartPointerList<QAction> m_actions; | 50 | QList<QAction*> m_actions; | ||
49 | }; | 51 | }; | ||
50 | 52 | | |||
51 | #endif | 53 | #endif |