#include <QtNetwork/qtcpserver.h> #ifndef QTCPSERVER_H class QTcpServer: public QObject{ /* Some contents are skipped to improve readability */ public: bool listen(class QHostAddress const & address = QHostAddress::Any, quint16 port = 0); /* ... */ }; #endif // QTCPSERVER_H