summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/synaescope/synaescope.h
blob: 1659b6282ddbb1d41c107dfeddf194c192f9bd28 (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
/* 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 TDEProcess;

class SynaeScope : public TQObject, public Plugin
{
TQ_OBJECT
  

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

	void init();
	void runScope();

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

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

#endif