diff options
Diffstat (limited to 'src/bluetooth/qbluetoothlocaldevice.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothlocaldevice.cpp | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/bluetooth/qbluetoothlocaldevice.cpp b/src/bluetooth/qbluetoothlocaldevice.cpp index 14140846..c5b68645 100644 --- a/src/bluetooth/qbluetoothlocaldevice.cpp +++ b/src/bluetooth/qbluetoothlocaldevice.cpp @@ -102,18 +102,17 @@ QT_BEGIN_NAMESPACE */ -namespace +namespace { +class LocalDeviceRegisterMetaTypes { - class LocalDeviceRegisterMetaTypes +public: + LocalDeviceRegisterMetaTypes() { - public: - LocalDeviceRegisterMetaTypes() - { - qRegisterMetaType<QBluetoothLocalDevice::HostMode>("QBluetoothLocalDevice::HostMode"); - qRegisterMetaType<QBluetoothLocalDevice::Pairing>("QBluetoothLocalDevice::Pairing"); - qRegisterMetaType<QBluetoothLocalDevice::Error>("QBluetoothLocalDevice::Error"); - } - } _registerLocalDeviceMetaTypes; + qRegisterMetaType<QBluetoothLocalDevice::HostMode>("QBluetoothLocalDevice::HostMode"); + qRegisterMetaType<QBluetoothLocalDevice::Pairing>("QBluetoothLocalDevice::Pairing"); + qRegisterMetaType<QBluetoothLocalDevice::Error>("QBluetoothLocalDevice::Error"); + } +} _registerLocalDeviceMetaTypes; } /*! @@ -233,7 +232,6 @@ bool QBluetoothLocalDevice::isValid() const Returns the current bluetooth pairing status of \a address, if it's unpaired, paired, or paired and authorized. */ - /*! \fn QBluetoothLocalDevice::pairingDisplayConfirmation(const QBluetoothAddress &address, QString pin) @@ -286,7 +284,6 @@ bool QBluetoothLocalDevice::isValid() const Signal emitted if there's an exceptional \a error while pairing. */ - /*! \fn QBluetoothLocalDevice::QBluetoothLocalDevice(const QBluetoothAddress &address, QObject *parent = 0) |