33 #include <QMessageBox> 34 #include <boost/format.hpp> 35 #include <boost/foreach.hpp> 36 #include <hamlib/rig.h> 41 QTcpServer(parent), port_num(_port_num) {
56 if( !this->listen( QHostAddress::LocalHost,
port_num ) ) {
57 QMessageBox::critical( (QWidget *)this->parent(), tr(
"Error!"), tr(
"Cannot listen to port %1").arg(
port_num) );
66 connect(listener, SIGNAL(finished()), listener, SLOT(deleteLater()));
67 connect(
this, SIGNAL(
stopListeners()), listener, SLOT(setFinished()));
HamlibServer(QObject *parent=0, int _port_num=4575)
HamlibHandler * handler_p
void incomingConnection(qintptr desc)
std::list< HamlibListener * > listener_list