1 /**
2  * projectM-qt -- Qt4 based projectM GUI
3  * Copyright (C)2003-2004 projectM Team
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  * See 'LICENSE.txt' included within this release
19  *
20  */
21 
22 #ifndef QPROJECTM_HPP
23 #define QPROJECTM_HPP
24 #include "projectM.hpp"
25 #include <QObject>
26 
27 class QProjectM : public QObject, public projectM {
28 
29 	Q_OBJECT
30 
31 	public:
QProjectM(const std::string & config_file)32 		QProjectM(const std::string & config_file):projectM(config_file, projectM::FLAG_DISABLE_PLAYLIST_LOAD) {}
33 
presetSwitchedEvent(bool hardCut,unsigned int index) const34 		void presetSwitchedEvent(bool hardCut, unsigned int index) const {
35 			presetSwitchedSignal(hardCut, index);
36 		}
37 
presetSwitchFailedEvent(bool hardCut,unsigned int index,const std::string & message) const38 		void presetSwitchFailedEvent(bool hardCut, unsigned int index, const std::string & message) const {
39 			presetSwitchFailedSignal(hardCut, index, QString(message.c_str()));
40 		}
41 
presetRatingChanged(unsigned int index,int rating,PresetRatingType ratingType) const42 		void presetRatingChanged(unsigned int index, int rating,
43 						PresetRatingType ratingType) const {
44 			 presetRatingChangedSignal(index, rating, ratingType);
45 		}
46 
47 	signals:
48 		void presetSwitchedSignal(bool hardCut, unsigned int index) const;
49 		void presetSwitchFailedSignal(bool hardCut, unsigned int index, const QString & message) const;
50 		void presetRatingChangedSignal(unsigned int index, int rating,
51 				PresetRatingType ratingType) const;
52 
53 	public slots:
54 
55 
56 };
57 #endif
58