#include <QtCore/qsocketnotifier.h> #ifndef QSOCKETNOTIFIER_H class QSocketNotifier: public QObject{ /* Some contents are skipped to improve readability */ protected: void activated(int socket); /* ... */ }; #endif // QSOCKETNOTIFIER_H