summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/forwarder.h
blob: f90ed7077b49055eea4e581d4ffb08131da40813 (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
42
43
44
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