summaryrefslogtreecommitdiff
path: root/noncore/unsupported/gsmtool/gsmtool.h
Unidiff
Diffstat (limited to 'noncore/unsupported/gsmtool/gsmtool.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/gsmtool/gsmtool.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/noncore/unsupported/gsmtool/gsmtool.h b/noncore/unsupported/gsmtool/gsmtool.h
new file mode 100644
index 0000000..cb19f54
--- a/dev/null
+++ b/noncore/unsupported/gsmtool/gsmtool.h
@@ -0,0 +1,41 @@
1#ifndef EXAMPLE_H
2#define EXAMPLE_H
3#include "gsmtoolbase.h"
4
5#include <termios.h>
6
7#include <gsmlib/gsm_me_ta.h>
8
9class GSMTool : public GSMToolBase
10{
11 Q_OBJECT
12
13public:
14 GSMTool( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
15 ~GSMTool();
16
17protected:
18 void timerEvent(QTimerEvent *te );
19
20private slots:
21 void doConnectButton();
22 void doScanButton();
23 void doTabChanged();
24private:
25 static const speed_t baudrates[];
26 int devicelocked;
27 int timerid;
28
29 gsmlib::MeTa *me;
30 gsmlib::Port *port;
31
32 char *devicename;
33 speed_t baudrate;
34
35 int lockDevice( );
36 void unlockDevice( );
37
38 void setConnected( bool conn );
39};
40
41#endif // EXAMPLE_H