summaryrefslogtreecommitdiff
path: root/noncore/unsupported/gsmtool/gsmtool.h
blob: 1625cb1b978f1667ff2b2db849415f8f8bb7c921 (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 EXAMPLE_H
#define EXAMPLE_H
#include "gsmtoolbase.h"

#include <termios.h>

#include <gsmlib/gsm_me_ta.h>

class GSMTool : public GSMToolBase
{ 
    Q_OBJECT

public:
    GSMTool( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
    ~GSMTool();

protected:
    void timerEvent(QTimerEvent *te );

private slots:
	void doConnectButton();
	void doScanButton();
        void doTabChanged();
private:
 static const speed_t baudrates[];
 int devicelocked;
 int timerid;

 gsmlib::MeTa *me;

 char *devicename; 
 speed_t baudrate;

 int lockDevice( );
 void unlockDevice( );

 void setConnected( bool conn );
};

#endif // EXAMPLE_H