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 d78eee5f..5ace7f75 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 @@ -81,7 +81,6 @@ QT_BEGIN_NAMESPACE class QBluetoothAddress; class QBluetoothSocket; - class QBluetoothServer; #ifndef QT_OSX_BLUETOOTH @@ -91,7 +90,7 @@ class QBluetoothServerPrivate Q_DECLARE_PUBLIC(QBluetoothServer) public: - QBluetoothServerPrivate(QBluetoothServiceInfo::Protocol serverType); + QBluetoothServerPrivate(QBluetoothServiceInfo::Protocol serverType, QBluetoothServer *parent); ~QBluetoothServerPrivate(); #if QT_CONFIG(bluez) @@ -101,6 +100,9 @@ public: static QBluetoothSocket *createSocketForServer( QBluetoothServiceInfo::Protocol socketType = QBluetoothServiceInfo::RfcommProtocol); #endif +#if defined(QT_WIN_BLUETOOTH) + void _q_newConnection(); +#endif public: QBluetoothSocket *socket; @@ -114,7 +116,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; |