summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/forwarder.h
Unidiff
Diffstat (limited to 'noncore/net/opietooth/lib/forwarder.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/forwarder.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/noncore/net/opietooth/lib/forwarder.h b/noncore/net/opietooth/lib/forwarder.h
new file mode 100644
index 0000000..f90ed70
--- a/dev/null
+++ b/noncore/net/opietooth/lib/forwarder.h
@@ -0,0 +1,45 @@
1/* $Id$
2 *Bluetooth serial forwarder class declaration
3 *
4 *(c) Copyright 2006 GPL
5 *
6 *This software is provided under the GNU public license, incorporated
7 *herein by reference. The software is provided without warranty or
8 *support.
9 */
10#ifndef OpieTooth_Forwarder_H
11#define OpieTooth_Forwarder_H
12#include <qobject.h>
13#include <qstring.h>
14#include <unistd.h>
15#include <signal.h>
16#include <opie2/oprocess.h>
17namespace Opie {
18 namespace Core {
19 class OProcess;
20 namespace Internal {
21 class OProcessController;
22 }
23 }
24};
25
26namespace OpieTooth {
27 class SerialForwarder : public Opie::Core::OProcess {
28
29 Q_OBJECT
30
31 protected:
32 QString device; //Name of the device
33 int speed; //device speed to set
34 public:
35 SerialForwarder(QString& devName, int speed);
36 ~SerialForwarder();
37 //Function starts the forwarding process
38 virtual bool start( RunMode runmode = NotifyOnExit,
39 Communication comm = NoCommunication );
40 //Stop the forwarding process
41 int stop();
42 };
43};
44#endif
45//eof