aboutsummaryrefslogtreecommitdiffstats
path: root/src/geniviextras/qdltregistration.cpp
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2017-02-10 11:27:43 +0100
committerDominik Holland <dominik.holland@pelagicore.com>2017-02-10 10:54:51 +0000
commitf0cd7bcfeddaf25e76e567a83bad0eacdcc866f0 (patch)
tree4357f7f12a8a51158e46d95c578612454ac6f41e /src/geniviextras/qdltregistration.cpp
parentb4ee3d3df2e2013534948514b1140cb85700d9f5 (diff)
Adds missing documentation for QtGeniviExtras
Change-Id: Ia1a282bc3c251c998df2263c95a6717e741ccf90 Reviewed-by: Johan Thelin <johan.thelin@pelagicore.com>
Diffstat (limited to 'src/geniviextras/qdltregistration.cpp')
-rw-r--r--src/geniviextras/qdltregistration.cpp22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/geniviextras/qdltregistration.cpp b/src/geniviextras/qdltregistration.cpp
index 31a4722..2a6ee9f 100644
--- a/src/geniviextras/qdltregistration.cpp
+++ b/src/geniviextras/qdltregistration.cpp
@@ -284,6 +284,15 @@ void QDltRegistration::setDefaultContext(const char *categoryName)
d->setDefaultCategory(QString::fromLatin1(categoryName));
}
+/*!
+ When set to \a enabled the registration with the dlt-daemon is done on the first use of the category.
+
+ Otherwise the registration is done directly when QDLT_LOGGING_CATEGORY or QDLT_REGISTER_LOGGING_CATEGORY
+ is called.
+
+ This function shouldn't be used directly, instead use the convenience macro.
+ \sa QDLT_REGISTER_CONTEXT_ON_FIRST_USE
+*/
void QDltRegistration::setRegisterContextOnFirstUseEnabled(bool enabled)
{
Q_D(QDltRegistration);
@@ -291,8 +300,13 @@ void QDltRegistration::setRegisterContextOnFirstUseEnabled(bool enabled)
}
/*!
- Unregisters the application with the dlt-daemon.
- The registered application as well as all registered dlt context will be deleted.
+ Registers all contexts with the dlt-daemon which are not yet registered.
+
+ This function can be used in combination with setRegisterContextOnFirstUseEnabled to delay
+ the registration with the dlt-daemon until it is really needed and once it is safe to register
+ all context which haven't been registered yet, e.g. by using the associated logging category.
+
+ \sa setRegisterContextOnFirstUseEnabled
*/
void QDltRegistration::registerUnregisteredContexts()
{
@@ -306,6 +320,10 @@ void QDltRegistration::registerUnregisteredContexts()
}
}
+/*!
+ Unregisters the application with the dlt-daemon.
+ The registered application as well as all registered dlt context will be deleted.
+*/
void QDltRegistration::unregisterApplication()
{
Q_D(QDltRegistration);