diff options
Diffstat (limited to 'src/plugins/Visual/projectm/qprojectm.h')
| -rw-r--r-- | src/plugins/Visual/projectm/qprojectm.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/plugins/Visual/projectm/qprojectm.h b/src/plugins/Visual/projectm/qprojectm.h new file mode 100644 index 000000000..b96280fd2 --- /dev/null +++ b/src/plugins/Visual/projectm/qprojectm.h @@ -0,0 +1,35 @@ +// +// C++ Interface: qprojectm +// +// Description: +// +// +// Author: Carmelo Piccione <carmelo.piccione@gmail.com>, (C) 2008 +// +// Copyright: See COPYING file that comes with this distribution +// +// + +#ifndef QPROJECTM_HPP +#define QPROJECTM_HPP +#include <libprojectM/projectM.hpp> +#include <QObject> + +class QProjectM : public QObject, public projectM +{ + + Q_OBJECT + +public: + QProjectM(const std::string & config_file) : projectM(config_file, projectM::FLAG_DISABLE_PLAYLIST_LOAD) {} + + void presetSwitchedEvent(bool hardCut, unsigned int index) const + { + presetSwitchedSignal(hardCut, index); + } + +signals: + void presetSwitchedSignal(bool hardCut, unsigned int index) const; + +}; +#endif |
