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 |