Changeset View
Changeset View
Standalone View
Standalone View
src/GlobalCollectionActions.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 GLOBALCOLLECTIONACTIONS_H | 17 | #ifndef GLOBALCOLLECTIONACTIONS_H | ||
18 | #define GLOBALCOLLECTIONACTIONS_H | 18 | #define GLOBALCOLLECTIONACTIONS_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" | | |||
23 | 22 | | |||
24 | #include <QAction> | 23 | #include <QAction> | ||
25 | 24 | | |||
26 | 25 | | |||
27 | class AMAROK_EXPORT GlobalCollectionAction : public QAction | 26 | class AMAROK_EXPORT GlobalCollectionAction : public QAction | ||
28 | { | 27 | { | ||
29 | public: | 28 | public: | ||
30 | GlobalCollectionAction( const QString &text, QObject * parent ); | 29 | GlobalCollectionAction( const QString &text, QObject * parent ); | ||
▲ Show 20 Lines • Show All 121 Lines • ▼ Show 20 Line(s) | 148 | private: | |||
152 | 151 | | |||
153 | QList<QAction *> actionsFor( Meta::GenrePtr genre ); | 152 | QList<QAction *> actionsFor( Meta::GenrePtr genre ); | ||
154 | QList<QAction *> actionsFor( Meta::ArtistPtr artist ); | 153 | QList<QAction *> actionsFor( Meta::ArtistPtr artist ); | ||
155 | QList<QAction *> actionsFor( Meta::AlbumPtr album ); | 154 | QList<QAction *> actionsFor( Meta::AlbumPtr album ); | ||
156 | QList<QAction *> actionsFor( Meta::TrackPtr track ); | 155 | QList<QAction *> actionsFor( Meta::TrackPtr track ); | ||
157 | QList<QAction *> actionsFor( Meta::YearPtr year ); | 156 | QList<QAction *> actionsFor( Meta::YearPtr year ); | ||
158 | QList<QAction *> actionsFor( Meta::ComposerPtr composer ); | 157 | QList<QAction *> actionsFor( Meta::ComposerPtr composer ); | ||
159 | 158 | | |||
160 | SmartPointerList<GlobalCollectionGenreAction> m_genreActions; | 159 | QList<GlobalCollectionGenreAction*> m_genreActions; | ||
161 | SmartPointerList<GlobalCollectionArtistAction> m_artistActions; | 160 | QList<GlobalCollectionArtistAction*> m_artistActions; | ||
162 | SmartPointerList<GlobalCollectionAlbumAction> m_albumActions; | 161 | QList<GlobalCollectionAlbumAction*> m_albumActions; | ||
163 | SmartPointerList<GlobalCollectionTrackAction> m_trackActions; | 162 | QList<GlobalCollectionTrackAction*> m_trackActions; | ||
164 | SmartPointerList<GlobalCollectionYearAction> m_yearActions; | 163 | QList<GlobalCollectionYearAction*> m_yearActions; | ||
165 | SmartPointerList<GlobalCollectionComposerAction> m_composerActions; | 164 | QList<GlobalCollectionComposerAction*> m_composerActions; | ||
166 | }; | 165 | }; | ||
167 | 166 | | |||
168 | #endif | 167 | #endif |