author | dwmw2 <dwmw2> | 2002-04-02 00:02:59 (UTC) |
---|---|---|
committer | dwmw2 <dwmw2> | 2002-04-02 00:02:59 (UTC) |
commit | 2314955ff0127a570e25e7e7a10ce4d17a2de0e2 (patch) (unidiff) | |
tree | c19c960b4efa48c2238fefe743a28de418d382da /noncore/unsupported/gsmtool/gsmtool.h | |
parent | dd9e49cca8cd9a32a52edfc6b6a0683579612a75 (diff) | |
download | opie-2314955ff0127a570e25e7e7a10ce4d17a2de0e2.zip opie-2314955ff0127a570e25e7e7a10ce4d17a2de0e2.tar.gz opie-2314955ff0127a570e25e7e7a10ce4d17a2de0e2.tar.bz2 |
Start of GSM app. Still not decided what to do with gsmlib. Needs icon.
Diffstat (limited to 'noncore/unsupported/gsmtool/gsmtool.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/gsmtool/gsmtool.h | 41 |
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 | |||
9 | class GSMTool : public GSMToolBase | ||
10 | { | ||
11 | Q_OBJECT | ||
12 | |||
13 | public: | ||
14 | GSMTool( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | ||
15 | ~GSMTool(); | ||
16 | |||
17 | protected: | ||
18 | void timerEvent(QTimerEvent *te ); | ||
19 | |||
20 | private slots: | ||
21 | void doConnectButton(); | ||
22 | void doScanButton(); | ||
23 | void doTabChanged(); | ||
24 | private: | ||
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 | ||