author | korovkin <korovkin> | 2006-04-14 19:22:37 (UTC) |
---|---|---|
committer | korovkin <korovkin> | 2006-04-14 19:22:37 (UTC) |
commit | a1bcbe41d45924713c4ead9b25ac5518473c9ca9 (patch) (unidiff) | |
tree | 3683eb401dd2d7cde4a7af15e72ecf7463b7208e /noncore/net/opietooth/lib/forwarder.h | |
parent | bca53498f37ade8101611fecde82202e9ee1a55c (diff) | |
download | opie-a1bcbe41d45924713c4ead9b25ac5518473c9ca9.zip opie-a1bcbe41d45924713c4ead9b25ac5518473c9ca9.tar.gz opie-a1bcbe41d45924713c4ead9b25ac5518473c9ca9.tar.bz2 |
Added RFCOMM <-> serial line forwarding functionality.
Diffstat (limited to 'noncore/net/opietooth/lib/forwarder.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/forwarder.h | 45 |
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> | ||
17 | namespace Opie { | ||
18 | namespace Core { | ||
19 | class OProcess; | ||
20 | namespace Internal { | ||
21 | class OProcessController; | ||
22 | } | ||
23 | } | ||
24 | }; | ||
25 | |||
26 | namespace 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 | ||