Changeset View
Changeset View
Standalone View
Standalone View
src/TrayIcon.h
Show All 16 Lines | |||||
17 | ****************************************************************************************/ | 17 | ****************************************************************************************/ | ||
18 | 18 | | |||
19 | #ifndef AMAROK_TRAYICON_H | 19 | #ifndef AMAROK_TRAYICON_H | ||
20 | #define AMAROK_TRAYICON_H | 20 | #define AMAROK_TRAYICON_H | ||
21 | 21 | | |||
22 | #include <KStatusNotifierItem> // baseclass | 22 | #include <KStatusNotifierItem> // baseclass | ||
23 | 23 | | |||
24 | #include "core/meta/forward_declarations.h" | 24 | #include "core/meta/forward_declarations.h" | ||
25 | #include "core/support/SmartPointerList.h" | | |||
26 | 25 | | |||
27 | #include <QPointer> | 26 | #include <QPointer> | ||
28 | 27 | | |||
28 | | ||||
29 | class QAction; | 29 | class QAction; | ||
30 | 30 | | |||
31 | namespace Amarok { | 31 | namespace Amarok { | ||
32 | 32 | | |||
33 | class TrayIcon : public KStatusNotifierItem | 33 | class TrayIcon : public KStatusNotifierItem | ||
34 | { | 34 | { | ||
35 | Q_OBJECT | 35 | Q_OBJECT | ||
36 | 36 | | |||
Show All 12 Lines | 40 | private Q_SLOTS: | |||
49 | void trackMetadataChanged( Meta::TrackPtr track ); | 49 | void trackMetadataChanged( Meta::TrackPtr track ); | ||
50 | void albumMetadataChanged( Meta::AlbumPtr album ); | 50 | void albumMetadataChanged( Meta::AlbumPtr album ); | ||
51 | 51 | | |||
52 | void slotScrollRequested( int delta, Qt::Orientation orientation ); | 52 | void slotScrollRequested( int delta, Qt::Orientation orientation ); | ||
53 | QAction* action( const QString& name, QMap<QString, QAction*> actionByName ); | 53 | QAction* action( const QString& name, QMap<QString, QAction*> actionByName ); | ||
54 | private: | 54 | private: | ||
55 | Meta::TrackPtr m_track; | 55 | Meta::TrackPtr m_track; | ||
56 | 56 | | |||
57 | SmartPointerList<QAction> m_extraActions; | 57 | QList<QAction*> m_extraActions; | ||
58 | QPointer<QAction> m_separator; | 58 | QPointer<QAction> m_separator; | ||
59 | }; | 59 | }; | ||
60 | 60 | | |||
61 | } | 61 | } | ||
62 | 62 | | |||
63 | #endif // AMAROK_TRAYICON_H | 63 | #endif // AMAROK_TRAYICON_H |