summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/startdunconnection.h
blob: f6107f6a310054a9ed4a322f5df6976b8c851de4 (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
#ifndef startdunconnection_h
#define startdunconnection_h

#include <qobject.h>
#include "connection.h"
#include <opie2/oprocess.h>

namespace OpieTooth {

    class StartDunConnection : StartConnection {

	Q_OBJECT

    public:
	StartDunConnection();
	StartDunConnection( QString mac );
	~StartDunConnection();

	QString name();
	void setName( QString name );
	StartConnection::ConnectionType type();
	void setConnectionType( );
	void start();
	void stop();

    private:
	QString m_name;
	QString m_mac;
	ConnectionType m_connectionType;
	Opie::Core::OProcess* m_dunConnect;
	
    private slots:
	void slotExited( Opie::Core::OProcess* proc );
                void slotStdOut( Opie::Core::OProcess* proc, char* chars, int len );
    };

 
}

#endif