summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/forwarder.h
authorkorovkin <korovkin>2006-04-14 19:22:37 (UTC)
committer korovkin <korovkin>2006-04-14 19:22:37 (UTC)
commita1bcbe41d45924713c4ead9b25ac5518473c9ca9 (patch) (side-by-side diff)
tree3683eb401dd2d7cde4a7af15e72ecf7463b7208e /noncore/net/opietooth/lib/forwarder.h
parentbca53498f37ade8101611fecde82202e9ee1a55c (diff)
downloadopie-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) (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 @@
+/* $Id$
+ * Bluetooth serial forwarder class declaration
+ *
+ * (c) Copyright 2006 GPL
+ *
+ * This software is provided under the GNU public license, incorporated
+ * herein by reference. The software is provided without warranty or
+ * support.
+ */
+#ifndef OpieTooth_Forwarder_H
+#define OpieTooth_Forwarder_H
+#include <qobject.h>
+#include <qstring.h>
+#include <unistd.h>
+#include <signal.h>
+#include <opie2/oprocess.h>
+namespace Opie {
+ namespace Core {
+ class OProcess;
+ namespace Internal {
+ class OProcessController;
+ }
+ }
+};
+
+namespace OpieTooth {
+ class SerialForwarder : public Opie::Core::OProcess {
+
+ Q_OBJECT
+
+ protected:
+ QString device; //Name of the device
+ int speed; //device speed to set
+ public:
+ SerialForwarder(QString& devName, int speed);
+ ~SerialForwarder();
+ //Function starts the forwarding process
+ virtual bool start( RunMode runmode = NotifyOnExit,
+ Communication comm = NoCommunication );
+ //Stop the forwarding process
+ int stop();
+ };
+};
+#endif
+//eof