summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/synaescope/synaescope.h
blob: af1b6f5d3a22853cc68aea24ecb6741021d67a9a (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
/* Synaescope - a pretty noatun visualization (based on P. Harrison's Synaesthesia)
   Copyright (C) 1997 Paul Francis Harrison <pfh@yoyo.cc.monash.edu.au>
                 2001 Charles Samuels <charles@kde.org>

	this file is X11 source
 */

#ifndef SYNABLEH_H
#define SYNABLEH_H

#include "syna.h"
#include <kprocess.h>

class SynaePrefs;
class KProcess;

class SynaeScope : public TQObject, public Plugin
{
Q_OBJECT

public:
	SynaeScope();
	virtual ~SynaeScope();

	void init();
	void runScope();

private slots:
	void processExited(KProcess *);
	void readConfig();
	void receivedStdout(KProcess *, char *buf, int len);
	void receivedStderr(KProcess *, char *buf, int len);

private:
	KProcess process;
	TQString scopeExePath;
	bool restarting;
	SynaePrefs *mPrefs;
};

#endif