moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kverbos / kverbos / kfeedercontrol.h
blob62af0197e6d851ca88712cc843f08e3f7bfcbcc7
1 /***************************************************************************
2 kfeedercontrol.h - description
3 -------------------
4 begin : Wed Apr 17 2002
5 copyright : (C) 2002 by Arnold Kraschinski
6 email : arnold.k67@gmx.de
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #ifndef KFEEDERCONTROL_H
19 #define KFEEDERCONTROL_H
21 #include <kprocess.h>
22 #include <dcopclient.h>
25 /** This class is used to control the KFeeder.
26 *@author Arnold Kraschinski
29 class KFeederControl {
30 public:
31 KFeederControl(int ID, bool splash, bool automatic);
32 ~KFeederControl();
33 /** resets the KFeeder */
34 bool reset();
35 /** sets the type of food movement. 'true' the food is moved automatically.
36 * 'false' it is necessary to trigger the food movement. */
37 bool setAutomatic(bool a);
38 /** sends one Point to the KFeeder */
39 bool addOne();
40 /** sends n points to the KFeeder */
41 bool addN(int n);
42 /** returns if the KProcess is still active. This is useful right after the start to
43 * see if it was successful
45 bool isActive() { return active; };
46 /** returns the last result of the latest dcop operation */
47 bool getLastResult() { return lastResult; };
48 private:
49 KProcess childFeeder;
50 QCString feederID;
51 bool active;
52 bool lastResult;
54 QCString appId;
55 DCOPClient* dcop;
58 #endif