summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/synaescope/synaescope.h
blob: 718c2b98f161a63d54efe54d71b0515679a20172 (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 QObject, 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;
	QString scopeExePath;
	bool restarting;
	SynaePrefs *mPrefs;
};

#endif