summaryrefslogtreecommitdiffstats
path: root/noatun/library/plugin_deps.h
blob: a2f3f628f8774ce554754a916585440b9400c310 (plain)
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
36
37
38
39
40
41
42
43
44
#ifndef PLUGIN_DEPS_H
#define PLUGIN_DEPS_H

#include <qtimer.h>
#include <qobject.h>
#include <noatunarts.h>

class Visualization;
class NoatunListener;


class TimerThingy : public QObject
{
Q_OBJECT
public:
	TimerThingy(Visualization*);

	void setInterval(int msec);
	void stop();
	void start();

public:
	virtual void timerEvent(QTimerEvent *);

private:
	Visualization *mVis;
	int id;
	int ms;
};

class NoatunListenerNotif : public Noatun::Listener_skel
{
public:
	NoatunListenerNotif(NoatunListener *);

	virtual void message();
	
	operator Noatun::Listener() { return Noatun::Listener::_from_base(_copy()); }
private:
	NoatunListener *mListener;
};

#endif