summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2017-03-06 21:28:37 +0100
committerAndré Hartmann <aha_1980@gmx.de>2017-03-12 17:17:30 +0000
commit8b9e978e55e581c6e4722c0874fa0b5eb10b734b (patch)
tree4eb784b63c9c5fa9a3f35e20f397b07856ff2560
parentf5338617ed81a740493d4006b185572a37ccb45d (diff)
QCanBusDeviceInfo: Improve documentation
Amends the introducing commit 55d405697c79c4ca23535140e60915e89b4054e3 as well as the API improvement in commit 15d3834f6dbe319827abdbdb92383846dd7cac3c Change-Id: Ie1da751cf3cbe743bc2d159bb1515af6b3d23fe0 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
-rw-r--r--src/serialbus/qcanbusdeviceinfo.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/serialbus/qcanbusdeviceinfo.cpp b/src/serialbus/qcanbusdeviceinfo.cpp
index 42f3d39..fac1e9f 100644
--- a/src/serialbus/qcanbusdeviceinfo.cpp
+++ b/src/serialbus/qcanbusdeviceinfo.cpp
@@ -44,14 +44,14 @@ QT_BEGIN_NAMESPACE
\inmodule QtSerialBus
\since 5.9
- \brief The QCanBusDeviceInfo provides information about CAN interfaces.
+ \brief The QCanBusDeviceInfo provides information about CAN bus interfaces.
Each plugin may support one or more interfaces with different
capabilities. This class provides information about available functions.
*/
/*!
- Constructs a new empty QCanBusDeviceInfo.
+ Constructs an empty QCanBusDeviceInfo.
*/
QCanBusDeviceInfo::QCanBusDeviceInfo() :
d_ptr(new QCanBusDeviceInfoPrivate)
@@ -59,7 +59,7 @@ QCanBusDeviceInfo::QCanBusDeviceInfo() :
}
/*!
- Constructs a new QCanBusDeviceInfo from \a other.
+ Constructs a copy of \a other.
*/
QCanBusDeviceInfo::QCanBusDeviceInfo(const QCanBusDeviceInfo &other) :
d_ptr(other.d_ptr)
@@ -67,7 +67,7 @@ QCanBusDeviceInfo::QCanBusDeviceInfo(const QCanBusDeviceInfo &other) :
}
/*!
- Constructs a new QCanBusDeviceInfo from the QCanBusDeviceInfoPrivate \a dd.
+ Constructs a CAN bus device info from QCanBusDeviceInfoPrivate \a dd.
\internal
*/
QCanBusDeviceInfo::QCanBusDeviceInfo(QCanBusDeviceInfoPrivate &dd) :
@@ -76,23 +76,22 @@ QCanBusDeviceInfo::QCanBusDeviceInfo(QCanBusDeviceInfoPrivate &dd) :
}
/*!
- Destroys the QCanBusDeviceInfo object. References to the values in the
- object become invalid.
+ Destroys the CAN bus device info.
*/
QCanBusDeviceInfo::~QCanBusDeviceInfo()
{
}
/*!
- \fn void QCanBusDeviceInfo::swap(const QCanBusDeviceInfo &other)
- Swap this instance's shared data pointer with the shared data pointer in
- \a other.
- \internal
+ \fn void QCanBusDeviceInfo::swap(QCanBusDeviceInfo &other)
+ Swaps this CAN bus device info with \a other. This operation is very fast
+ and never fails.
*/
/*!
- Sets the QCanBusDeviceInfo object to be equal to \a other.
+ Assigns \a other to this CAN bus device info and returns a reference to this
+ CAN bus device info.
*/
QCanBusDeviceInfo &QCanBusDeviceInfo::operator=(const QCanBusDeviceInfo &other)
{