| 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 DJ_H |
| 19 | #define DJ_H |
| 20 | |
| 21 | #include "filter.h" |
| 22 | |
| 23 | class Dj : public QObject { |
| 24 | Q_OBJECT |
| 25 | public: |
| 26 | Dj(); |
| 27 | ~Dj(); |
| 28 | QList<Filter*> filters(); |
| 29 | Filter* requestFilter(); |
| 30 | QString name; |
| 31 | QString description(); |
| 32 | void setDescription(QString); |
| 33 | long countTracks(); |
| 34 | void setCountTracks(int); |
| 35 | long lengthTracks(); |
| 36 | void setLengthTracks(int); |
| 37 | void addFilter(Filter* filter); |
| 38 | void removeFilter(Filter* filter); |
| 39 | void setActiveFilterIdx(int idx); |
| 40 | int activeFilterIdx(); |
| 41 | |
| 42 | Q_SIGNALS: |
| 43 | void filterChanged(Filter*); |
| 44 | void countChanged(); |
| 45 | |
| 46 | private Q_SLOTS: |
| 47 | void on_filter_activated(); |
| 48 | void on_filter_filterChanged(); |
| 49 | void on_filter_countChanged(); |
| 50 | void on_filter_maxUsageChanged(); |
| 51 | void checkSequence(); |
| 52 | |
| 53 | protected: |
| 54 | private: |
| 55 | struct DjPrivate* p; |
| 56 | }; |
| 57 | |
| 58 | #endif // DJ_H |