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