summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/synaescope/synaescope.h
blob: df5417d3a5bef8d0c36602e62956fe9937cb3849 (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 KProcess;

class SynaeScope : public TQObject, public Plugin
{
Q_OBJECT
  TQ_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