class MLTcpServer : public QTcpServer{ Q_OBJECTpublic: MLTcpServer(QObject *parent = 0); ~MLTcpServer();signals: void fucking_connection(int socketDescriptor);protected: void incomingConnection(int socketDescriptor); };MLTcpServer::MLTcpServer(QObject *parent) :QTcpServer(parent){}MLTcpServer::~MLTcpServer(){} void MLTcpServer::incomingConnection(int socketDescriptor) { emit fucking_connection(socketDescriptor);}
virtual ~MLTcpServer();
void MLTcpServer::incomingConnection(int socketDescriptor) { emit fucking_connection(socketDescriptor);}
#include <QObject>
class My{};
class My{ Q_OBJECT};