Changeset View
Changeset View
Standalone View
Standalone View
src/core-impl/collections/aggregate/AggregateQueryMaker.h
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 42 | public: | |||
---|---|---|---|---|---|
71 | virtual QueryMaker* beginAnd(); | 71 | virtual QueryMaker* beginAnd(); | ||
72 | virtual QueryMaker* beginOr(); | 72 | virtual QueryMaker* beginOr(); | ||
73 | virtual QueryMaker* endAndOr(); | 73 | virtual QueryMaker* endAndOr(); | ||
74 | 74 | | |||
75 | virtual QueryMaker* setAlbumQueryMode( AlbumQueryMode mode ); | 75 | virtual QueryMaker* setAlbumQueryMode( AlbumQueryMode mode ); | ||
76 | virtual QueryMaker* setLabelQueryMode( LabelQueryMode mode ); | 76 | virtual QueryMaker* setLabelQueryMode( LabelQueryMode mode ); | ||
77 | 77 | | |||
78 | private: | 78 | private: | ||
79 | template <class PointerType> | | |||
80 | void emitProperResult( const QList<PointerType> &list ); | | |||
81 | | ||||
82 | void handleResult(); | 79 | void handleResult(); | ||
83 | 80 | | |||
84 | private Q_SLOTS: | 81 | private Q_SLOTS: | ||
85 | void slotQueryDone(); | 82 | void slotQueryDone(); | ||
86 | void slotNewResultReady( const Meta::TrackList &tracks ); | 83 | void slotNewTracksReady( const Meta::TrackList &tracks ); | ||
87 | void slotNewResultReady( const Meta::ArtistList &artists ); | 84 | void slotNewArtistsReady( const Meta::ArtistList &artists ); | ||
88 | void slotNewResultReady( const Meta::AlbumList &albums ); | 85 | void slotNewAlbumsReady( const Meta::AlbumList &albums ); | ||
89 | void slotNewResultReady( const Meta::GenreList &genres ); | 86 | void slotNewGenresReady( const Meta::GenreList &genres ); | ||
90 | void slotNewResultReady( const Meta::ComposerList &composers ); | 87 | void slotNewComposersReady( const Meta::ComposerList &composers ); | ||
91 | void slotNewResultReady( const Meta::YearList &years ); | 88 | void slotNewYearsReady( const Meta::YearList &years ); | ||
92 | void slotNewResultReady( const Meta::LabelList &labels ); | 89 | void slotNewLabelsReady( const Meta::LabelList &labels ); | ||
93 | 90 | | |||
94 | private: | 91 | private: | ||
95 | AggregateCollection *m_collection; | 92 | AggregateCollection *m_collection; | ||
96 | QList<QueryMaker*> m_builders; | 93 | QList<QueryMaker*> m_builders; | ||
97 | int m_queryDoneCount; | 94 | int m_queryDoneCount; | ||
98 | bool m_returnDataPointers; | 95 | bool m_returnDataPointers; | ||
99 | int m_maxResultSize; | 96 | int m_maxResultSize; | ||
100 | QueryType m_queryType; | 97 | QueryType m_queryType; | ||
Show All 20 Lines |