|
|
@ -29,18 +29,19 @@
|
|
|
|
class TQSocketNotifier;
|
|
|
|
class TQSocketNotifier;
|
|
|
|
namespace gsmlib
|
|
|
|
namespace gsmlib
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
class KopeteUnixSerialPort : public TQObject, public Port
|
|
|
|
class KopeteUnixSerialPort : public TQObject, public Port
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQ_OBJECT;
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
TQ_OBJECT
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
protected:
|
|
|
|
int _fd; // file descriptor for device
|
|
|
|
int _fd; // file descriptor for device
|
|
|
|
int _oldChar; // character set by putBack() (-1 == none)
|
|
|
|
int _oldChar; // character set by putBack() (-1 == none)
|
|
|
|
long int _timeoutVal; // timeout for getLine/readByte
|
|
|
|
long int _timeoutVal; // timeout for getLine/readByte
|
|
|
|
|
|
|
|
|
|
|
|
TQSocketNotifier* _readNotifier;
|
|
|
|
TQSocketNotifier* _readNotifier;
|
|
|
|
|
|
|
|
|
|
|
|
// throw GsmException include UNIX errno
|
|
|
|
// throw GsmException include UNIX errno
|
|
|
|
void throwModemException(std::string message) throw(GsmException);
|
|
|
|
void throwModemException(std::string message) throw(GsmException);
|
|
|
|
|
|
|
|
|
|
|
|