Debian Codegraph @

src/filter.h

raw symbols SCIP
1 /*
2 Copyright (C) 2005-2014 Mario Stephan <[email protected]>
3
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published
6 by the Free Software Foundation; either version 2.1 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef FILTER_H
19 #define FILTER_H
20
21 #include <QObject>
22
23 class Filter: public QObject
24 {
25
26 Q_OBJECT
27
28 public:
29
30 explicit Filter();
31 explicit Filter(QString genre, int grade);
32 ~Filter();
33 int maxUsage();
34 void setMaxUsage(int);
35 int usage();
36 void setUsage(int);
37 QString genre();
38 QString path();
39 QString artist();
40 QString description();
41 int count();
42 long length();
43 void setPath(QString);
44 void setGenre(QString);
45 void setArtist(QString);
46 void setCount(int);
47 void setLength(long);
48 bool active();
49 void setActive(bool);
50 void update();
51
52 Q_SIGNALS:
53 void statusChanged(bool status);
54 void countChanged();
55 void usageChanged();
56 void maxUsageChanged();
57 void activated();
58 void filterChanged();
59
60
61 public slots:
62
63 private:
64 struct Private;
65 Private * p;
66
67 };
68
69 #endif // FILTER_H