summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qsocketnotifier.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/kernel/qsocketnotifier.h')
-rw-r--r--src/corelib/kernel/qsocketnotifier.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/kernel/qsocketnotifier.h b/src/corelib/kernel/qsocketnotifier.h
index b8a5cc542a..fdf11961c3 100644
--- a/src/corelib/kernel/qsocketnotifier.h
+++ b/src/corelib/kernel/qsocketnotifier.h
@@ -54,12 +54,15 @@ class Q_CORE_EXPORT QSocketNotifier : public QObject
public:
enum Type { Read, Write, Exception };
+ explicit QSocketNotifier(Type, QObject *parent = nullptr);
QSocketNotifier(qintptr socket, Type, QObject *parent = nullptr);
~QSocketNotifier();
+ void setSocket(qintptr socket, bool enable = false);
qintptr socket() const;
Type type() const;
+ bool isValid() const;
bool isEnabled() const;
public Q_SLOTS: