diff options
Diffstat (limited to 'src/bluetooth/qbluetoothserver_p.h')
-rw-r--r-- | src/bluetooth/qbluetoothserver_p.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/bluetooth/qbluetoothserver_p.h b/src/bluetooth/qbluetoothserver_p.h index 76349de6..d14dc7b4 100644 --- a/src/bluetooth/qbluetoothserver_p.h +++ b/src/bluetooth/qbluetoothserver_p.h @@ -57,7 +57,7 @@ #include "qbluetoothserver.h" #include "qbluetooth.h" -#if QT_CONFIG(bluez) +#if QT_CONFIG(bluez) || defined(QT_WIN_BLUETOOTH) QT_FORWARD_DECLARE_CLASS(QSocketNotifier) #endif @@ -90,7 +90,6 @@ QT_BEGIN_NAMESPACE class QBluetoothAddress; class QBluetoothSocket; - class QBluetoothServer; class QBluetoothServerPrivate @@ -101,7 +100,7 @@ class QBluetoothServerPrivate Q_DECLARE_PUBLIC(QBluetoothServer) public: - QBluetoothServerPrivate(QBluetoothServiceInfo::Protocol serverType); + QBluetoothServerPrivate(QBluetoothServiceInfo::Protocol serverType, QBluetoothServer *parent); ~QBluetoothServerPrivate(); #if QT_CONFIG(bluez) @@ -111,6 +110,9 @@ public: static QBluetoothSocket *createSocketForServer( QBluetoothServiceInfo::Protocol socketType = QBluetoothServiceInfo::RfcommProtocol); #endif +#if defined(QT_WIN_BLUETOOTH) + void _q_newConnection(); +#endif public: QBluetoothSocket *socket; @@ -124,7 +126,7 @@ protected: private: QBluetoothServer::Error m_lastError; -#if QT_CONFIG(bluez) +#if QT_CONFIG(bluez) || defined(QT_WIN_BLUETOOTH) QSocketNotifier *socketNotifier = nullptr; #elif defined(QT_ANDROID_BLUETOOTH) ServerAcceptanceThread *thread; |