aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Visual/projectm/qprojectm.h
blob: b96280fd2f4afdf7f99626a8891daae23709d33e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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