16 Q_DECLARE_PRIVATE(QSocketNotifier)
19 enum Type { Read, Write, Exception };
21 explicit QSocketNotifier(Type, QObject *parent =
nullptr);
22 QSocketNotifier(qintptr socket, Type, QObject *parent =
nullptr);
25 void setSocket(qintptr socket);
26 qintptr socket()
const;
30 bool isEnabled()
const;
33 void setEnabled(
bool);
40 void activated(QSocketDescriptor socket, QSocketNotifier::Type activationEvent = Read,
43 void activated(QSocketDescriptor socket, QSocketNotifier::Type activationEvent, QPrivateSignal);
50#if defined(Q_MOC_RUN) || defined(BUILDING_QSOCKETNOTIFIER) || defined(Q_QDOC)
51 QT_MOC_COMPAT
void activated(
int socket, QPrivateSignal);
55 bool event(QEvent *) override;
58 Q_DISABLE_COPY(QSocketNotifier)