17 Q_DECLARE_PRIVATE(QSocketNotifier)
20 enum Type { Read, Write, Exception };
22 explicit QSocketNotifier(Type, QObject *parent =
nullptr);
23 QSocketNotifier(qintptr socket, Type, QObject *parent =
nullptr);
26 void setSocket(qintptr socket);
27 qintptr socket()
const;
31 bool isEnabled()
const;
34 void setEnabled(
bool);
41 void activated(QSocketDescriptor socket, QSocketNotifier::Type activationEvent = Read,
44 void activated(QSocketDescriptor socket, QSocketNotifier::Type activationEvent, QPrivateSignal);
51#if defined(Q_MOC_RUN) || defined(BUILDING_QSOCKETNOTIFIER) || defined(Q_QDOC)
52 QT_MOC_COMPAT
void activated(
int socket, QPrivateSignal);
56 bool event(QEvent *) override;
59 Q_DISABLE_COPY(QSocketNotifier)