Revert previous commit, was incorrect
[amarok.git] / src / servicebrowser / DynamicServiceQueryMaker.cpp
blobdd445c1e2bdbc75c0390d845d9ff7696733da6c4
1 /***************************************************************************
2 * Copyright (c) 2007 Nikolaj Hald Nielsen <nhnFreespirit@gmail.com> *
3 * (c) 2007 Adam Pigg <adam@piggz.co.uk> *
4 * *
5 * *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, write to the *
18 * Free Software Foundation, Inc., *
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
20 ***************************************************************************/
22 #include "DynamicServiceQueryMaker.h"
24 #include "debug.h"
26 using namespace Meta;
30 DynamicServiceQueryMaker::DynamicServiceQueryMaker( )
31 : QueryMaker()
35 QueryMaker * DynamicServiceQueryMaker::addReturnValue(qint64 value)
37 Q_UNUSED( value );
38 return this;
41 QueryMaker * DynamicServiceQueryMaker::orderBy(qint64 value, bool descending)
43 Q_UNUSED( value );
44 Q_UNUSED( descending );
45 return this;
48 QueryMaker * DynamicServiceQueryMaker::includeCollection(const QString & collectionId)
50 Q_UNUSED( collectionId );
51 return this;
54 QueryMaker * DynamicServiceQueryMaker::excludeCollection(const QString & collectionId)
56 Q_UNUSED( collectionId );
57 return this;
60 QueryMaker * DynamicServiceQueryMaker::addMatch(const Meta::TrackPtr & track)
62 DEBUG_BLOCK
63 Q_UNUSED( track );
64 return this;
67 QueryMaker * DynamicServiceQueryMaker::addMatch(const Meta::ArtistPtr & artist)
69 DEBUG_BLOCK
70 Q_UNUSED( artist );
71 return this;
74 QueryMaker * DynamicServiceQueryMaker::addMatch(const Meta::AlbumPtr & album)
76 DEBUG_BLOCK
77 Q_UNUSED( album );
78 return this;
81 QueryMaker * DynamicServiceQueryMaker::addMatch(const Meta::GenrePtr & genre)
83 DEBUG_BLOCK
84 Q_UNUSED( genre );
85 return this;
88 QueryMaker * DynamicServiceQueryMaker::addMatch(const Meta::ComposerPtr & composer)
90 DEBUG_BLOCK
91 Q_UNUSED( composer );
92 return this;
95 QueryMaker * DynamicServiceQueryMaker::addMatch(const Meta::YearPtr & year)
97 DEBUG_BLOCK
98 Q_UNUSED( year );
99 return this;
102 QueryMaker * DynamicServiceQueryMaker::addMatch(const Meta::DataPtr & data)
104 DEBUG_BLOCK
105 ( const_cast<DataPtr&>(data) )->addMatchTo( this );
106 return this;
109 QueryMaker * DynamicServiceQueryMaker::addFilter(qint64 value, const QString & filter, bool matchBegin, bool matchEnd)
111 Q_UNUSED( value );
112 Q_UNUSED( filter );
113 Q_UNUSED( matchBegin );
114 Q_UNUSED( matchEnd );
115 return this;
118 QueryMaker * DynamicServiceQueryMaker::excludeFilter(qint64 value, const QString & filter, bool matchBegin, bool matchEnd)
120 Q_UNUSED( value );
121 Q_UNUSED( filter );
122 Q_UNUSED( matchBegin );
123 Q_UNUSED( matchEnd );
124 return this;
127 QueryMaker * DynamicServiceQueryMaker::limitMaxResultSize(int size)
129 Q_UNUSED( size );
130 return this;
134 #include "DynamicServiceQueryMaker.moc"