1 /***************************************************************************
2 * Copyright (c) 2007 Nikolaj Hald Nielsen <nhnFreespirit@gmail.com> *
3 * (c) 2007 Adam Pigg <adam@piggz.co.uk> *
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. *
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. *
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"
30 DynamicServiceQueryMaker::DynamicServiceQueryMaker( )
35 QueryMaker
* DynamicServiceQueryMaker::addReturnValue(qint64 value
)
41 QueryMaker
* DynamicServiceQueryMaker::orderBy(qint64 value
, bool descending
)
44 Q_UNUSED( descending
);
48 QueryMaker
* DynamicServiceQueryMaker::includeCollection(const QString
& collectionId
)
50 Q_UNUSED( collectionId
);
54 QueryMaker
* DynamicServiceQueryMaker::excludeCollection(const QString
& collectionId
)
56 Q_UNUSED( collectionId
);
60 QueryMaker
* DynamicServiceQueryMaker::addMatch(const Meta::TrackPtr
& track
)
67 QueryMaker
* DynamicServiceQueryMaker::addMatch(const Meta::ArtistPtr
& artist
)
74 QueryMaker
* DynamicServiceQueryMaker::addMatch(const Meta::AlbumPtr
& album
)
81 QueryMaker
* DynamicServiceQueryMaker::addMatch(const Meta::GenrePtr
& genre
)
88 QueryMaker
* DynamicServiceQueryMaker::addMatch(const Meta::ComposerPtr
& composer
)
95 QueryMaker
* DynamicServiceQueryMaker::addMatch(const Meta::YearPtr
& year
)
102 QueryMaker
* DynamicServiceQueryMaker::addMatch(const Meta::DataPtr
& data
)
105 ( const_cast<DataPtr
&>(data
) )->addMatchTo( this );
109 QueryMaker
* DynamicServiceQueryMaker::addFilter(qint64 value
, const QString
& filter
, bool matchBegin
, bool matchEnd
)
113 Q_UNUSED( matchBegin
);
114 Q_UNUSED( matchEnd
);
118 QueryMaker
* DynamicServiceQueryMaker::excludeFilter(qint64 value
, const QString
& filter
, bool matchBegin
, bool matchEnd
)
122 Q_UNUSED( matchBegin
);
123 Q_UNUSED( matchEnd
);
127 QueryMaker
* DynamicServiceQueryMaker::limitMaxResultSize(int size
)
134 #include "DynamicServiceQueryMaker.moc"