summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qsocketnotifier.h
diff options
context:
space:
mode:
authorShane Kearns <ext-shane.2.kearns@nokia.com>2012-04-20 18:25:31 +0100
committerQt by Nokia <qt-info@nokia.com>2012-05-04 03:10:16 +0200
commitf503e906d6849fc7a2fef57a52b44194030bc5ed (patch)
treea7485fe9eb61027e72bf4256cf0dcb761f4be1b1 /src/corelib/kernel/qsocketnotifier.h
parentbd7cd3467334dae70e4cd21a5df6c17e3e3ea4bf (diff)
Move QSocketNotifier data members to a private class
This is a binary incompatible change to allow future changes to QSocketNotifier to be possible in a binary compatible way. Change-Id: If90f3393e84edd3b1ac4d4132fa8e59b6b87a8ec Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qsocketnotifier.h')
-rw-r--r--src/corelib/kernel/qsocketnotifier.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/corelib/kernel/qsocketnotifier.h b/src/corelib/kernel/qsocketnotifier.h
index 18efa7f770..65b7926769 100644
--- a/src/corelib/kernel/qsocketnotifier.h
+++ b/src/corelib/kernel/qsocketnotifier.h
@@ -48,11 +48,11 @@ QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
-
+class QSocketNotifierPrivate;
class Q_CORE_EXPORT QSocketNotifier : public QObject
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QObject)
+ Q_DECLARE_PRIVATE(QSocketNotifier)
public:
enum Type { Read, Write, Exception };
@@ -60,10 +60,10 @@ public:
QSocketNotifier(qintptr socket, Type, QObject *parent = 0);
~QSocketNotifier();
- inline int socket() const { return sockfd; }
- inline Type type() const { return sntype; }
+ int socket() const;
+ Type type() const;
- inline bool isEnabled() const { return snenabled; }
+ bool isEnabled() const;
public Q_SLOTS:
void setEnabled(bool);
@@ -76,10 +76,6 @@ protected:
private:
Q_DISABLE_COPY(QSocketNotifier)
-
- qintptr sockfd;
- Type sntype;
- bool snenabled;
};
QT_END_NAMESPACE