1 #ifndef WIDGET_H 2 #define WIDGET_H 3 4 #include <qtermwidget5/qtermwidget.h> 5 6 class QTcpSocket; 7 8 class RemoteTerm : public QTermWidget 9 { 10 Q_OBJECT 11 public: 12 RemoteTerm(const QString &ipaddr, quint16 port, QWidget *parent = 0); 13 public slots: 14 void atError(); 15 private: 16 QTcpSocket *socket; 17 }; 18 19 #endif // WIDGET_H 20