summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qlowenergycontrollerbase.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2017-10-25 14:49:47 +0200
committerAlex Blasche <alexander.blasche@qt.io>2017-11-03 13:08:51 +0000
commitfbf36811672de79f2a648af97ca73d6c0e3b1608 (patch)
treeaee123e7d84a4451118a389d62d0e32cd6635692 /src/bluetooth/qlowenergycontrollerbase.cpp
parent7a9d2e77befb13c1f714f842d4b0ee3fea2d4a6c (diff)
Rename various QLEControllerPrivate classes
The base class is renamed to QLEControllerPrivate and the existing QLEControllerPrivate becomes QLEControllerPrivateCommon. This is necessary to re-enable Q_DECLARE_PRIVATE. The macro uses by convention the "Private" class prefix which is currently broken because not every implementation uses QLEControllerPrivate as d-pointer type. This also avoids a SC/BC break in qlowenergycontroller.h as the d-pointer remains the same and the functions declared via Q_DECLARE_PRIVATE still return the same type. Change-Id: I84890b06280b2c473a4d370606d3bbc58a258eea Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/bluetooth/qlowenergycontrollerbase.cpp')
-rw-r--r--src/bluetooth/qlowenergycontrollerbase.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/bluetooth/qlowenergycontrollerbase.cpp b/src/bluetooth/qlowenergycontrollerbase.cpp
index 0b8218e9..22fdd52b 100644
--- a/src/bluetooth/qlowenergycontrollerbase.cpp
+++ b/src/bluetooth/qlowenergycontrollerbase.cpp
@@ -44,16 +44,16 @@
QT_BEGIN_NAMESPACE
-QLowEnergyControllerPrivateBase::QLowEnergyControllerPrivateBase()
+QLowEnergyControllerPrivate::QLowEnergyControllerPrivate()
: QObject()
{
}
-QLowEnergyControllerPrivateBase::~QLowEnergyControllerPrivateBase()
+QLowEnergyControllerPrivate::~QLowEnergyControllerPrivate()
{
}
-bool QLowEnergyControllerPrivateBase::isValidLocalAdapter()
+bool QLowEnergyControllerPrivate::isValidLocalAdapter()
{
#ifdef QT_WINRT_BLUETOOTH
return true;
@@ -75,7 +75,7 @@ bool QLowEnergyControllerPrivateBase::isValidLocalAdapter()
}
-void QLowEnergyControllerPrivateBase::setError(
+void QLowEnergyControllerPrivate::setError(
QLowEnergyController::Error newError)
{
Q_Q(QLowEnergyController);
@@ -111,7 +111,7 @@ void QLowEnergyControllerPrivateBase::setError(
emit q->error(newError);
}
-void QLowEnergyControllerPrivateBase::setState(
+void QLowEnergyControllerPrivate::setState(
QLowEnergyController::ControllerState newState)
{
Q_Q(QLowEnergyController);
@@ -126,7 +126,7 @@ void QLowEnergyControllerPrivateBase::setState(
emit q->stateChanged(state);
}
-QSharedPointer<QLowEnergyServicePrivate> QLowEnergyControllerPrivateBase::serviceForHandle(
+QSharedPointer<QLowEnergyServicePrivate> QLowEnergyControllerPrivate::serviceForHandle(
QLowEnergyHandle handle)
{
ServiceDataMap &currentList = serviceList;
@@ -145,7 +145,7 @@ QSharedPointer<QLowEnergyServicePrivate> QLowEnergyControllerPrivateBase::servic
Returns a valid characteristic if the given handle is the
handle of the characteristic itself or one of its descriptors
*/
-QLowEnergyCharacteristic QLowEnergyControllerPrivateBase::characteristicForHandle(
+QLowEnergyCharacteristic QLowEnergyControllerPrivate::characteristicForHandle(
QLowEnergyHandle handle)
{
QSharedPointer<QLowEnergyServicePrivate> service = serviceForHandle(handle);
@@ -176,7 +176,7 @@ QLowEnergyCharacteristic QLowEnergyControllerPrivateBase::characteristicForHandl
Returns a valid descriptor if \a handle belongs to a descriptor;
otherwise an invalid one.
*/
-QLowEnergyDescriptor QLowEnergyControllerPrivateBase::descriptorForHandle(
+QLowEnergyDescriptor QLowEnergyControllerPrivate::descriptorForHandle(
QLowEnergyHandle handle)
{
const QLowEnergyCharacteristic matchingChar = characteristicForHandle(handle);
@@ -196,7 +196,7 @@ QLowEnergyDescriptor QLowEnergyControllerPrivateBase::descriptorForHandle(
/*!
Returns the length of the updated characteristic value.
*/
-quint16 QLowEnergyControllerPrivateBase::updateValueOfCharacteristic(
+quint16 QLowEnergyControllerPrivate::updateValueOfCharacteristic(
QLowEnergyHandle charHandle,const QByteArray &value, bool appendValue)
{
QSharedPointer<QLowEnergyServicePrivate> service = serviceForHandle(charHandle);
@@ -220,7 +220,7 @@ quint16 QLowEnergyControllerPrivateBase::updateValueOfCharacteristic(
/*!
Returns the length of the updated descriptor value.
*/
-quint16 QLowEnergyControllerPrivateBase::updateValueOfDescriptor(
+quint16 QLowEnergyControllerPrivate::updateValueOfDescriptor(
QLowEnergyHandle charHandle, QLowEnergyHandle descriptorHandle,
const QByteArray &value, bool appendValue)
{
@@ -247,7 +247,7 @@ quint16 QLowEnergyControllerPrivateBase::updateValueOfDescriptor(
return 0;
}
-void QLowEnergyControllerPrivateBase::invalidateServices()
+void QLowEnergyControllerPrivate::invalidateServices()
{
foreach (const QSharedPointer<QLowEnergyServicePrivate> service, serviceList.values()) {
service->setController(0);