author | dwmw2 <dwmw2> | 2002-04-02 00:02:59 (UTC) |
---|---|---|
committer | dwmw2 <dwmw2> | 2002-04-02 00:02:59 (UTC) |
commit | 2314955ff0127a570e25e7e7a10ce4d17a2de0e2 (patch) (side-by-side diff) | |
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 @@ +#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; + gsmlib::Port *port; + + char *devicename; + speed_t baudrate; + + int lockDevice( ); + void unlockDevice( ); + + void setConnected( bool conn ); +}; + +#endif // EXAMPLE_H |