summaryrefslogtreecommitdiffstats
path: root/noatun/library/plugin_deps.h
blob: 777c70e31ad81e838c9bc3d4cd6c576d7877a156 (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
45
#ifndef PLUGIN_DEPS_H
#define PLUGIN_DEPS_H

#include <tqtimer.h>
#include <tqobject.h>
#include <noatunarts.h>

class Visualization;
class NoatunListener;


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

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

public:
	virtual void timerEvent(TQTimerEvent *);

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