From 2314955ff0127a570e25e7e7a10ce4d17a2de0e2 Mon Sep 17 00:00:00 2001 From: dwmw2 Date: Tue, 02 Apr 2002 00:02:59 +0000 Subject: Start of GSM app. Still not decided what to do with gsmlib. Needs icon. --- (limited to 'noncore/unsupported/gsmtool/gsmtool.h') 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 + +#include + +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 -- cgit v0.9.0.2