Sayonara Player
SearchInformation.h
1/* SearchInformation.h */
2
3/* Copyright (C) 2011-2020 Michael Lugmair (Lucio Carreras)
4 *
5 * This file is part of sayonara player
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef SEARCHINFORMATION_H
22#define SEARCHINFORMATION_H
23
24#include "Utils/Pimpl.h"
25
26class QString;
27
28namespace SC
29{
31 {
33
34 public:
35 SearchInformation(int artistId, int albumId, int trackId, const QString& searchstring);
37
38 QString searchstring() const;
39 int artistId() const;
40 int albumId() const;
41 int trackId() const;
42 };
43
45 {
47
48 public:
51
52 IntSet artistIds(const QString& search_string) const;
53 IntSet albumIds(const QString& search_string) const;
54 IntSet trackIds(const QString& search_string) const;
55
56 SearchInformationList& operator<<(const SearchInformation& search_information);
57 bool isEmpty() const;
58 void clear();
59 };
60}
61
62#endif // SEARCHINFORMATION_H
Definition: SearchInformation.h:45
Definition: SearchInformation.h:31
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: Set.h:37