WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. | Zuble QML Types | Zuble C++ Classes | Zuble Overview |
Zuble
0.1
Zuble Framework C++/QML extension API
|
Zuble objects embed this class to save local logging state. More...
#include <ZblLogCategory.h>
Public Member Functions | |
ZblLogCategory (const char *logCategory) | |
ZblLogCategory (const QString logCategory) | |
void | registerCategory () |
QLoggingCategory & | operator() () |
Protected Attributes | |
QLoggingCategory | m_logCategory |
A wrapped QLoggingCategory object for this log category. More... | |
bool | m_categoryRegistered |
true if we have already registered this category More... | |
Static Protected Attributes | |
static QStringList | m_categories |
A list of registered log categories. More... | |
static QMutex | m_categorylock |
Protects thread-safe methods of this class. More... | |
Friends | |
class | ZblLogManager |
class | ZblLogWorker |
Zuble objects embed this class to save local logging state.
This class wraps QLoggingCategory and provides access to Zuble's log manager object (ZblLogManager). A boolean flag prevents unnecessary log registrations as these require acquiring a mutex.
Definition at line 46 of file ZblLogCategory.h.
|
explicit |
Definition at line 35 of file ZblLogCategory.cpp.
|
explicit |
Definition at line 42 of file ZblLogCategory.cpp.
|
inline |
Definition at line 56 of file ZblLogCategory.h.
void Zbl::ZblLogCategory::registerCategory | ( | ) |
Definition at line 50 of file ZblLogCategory.cpp.
Referenced by Zbl::ZblLogManager::registerLogCategory(), and Zbl::ZblThreadErr::ZblThreadErr().
|
friend |
Definition at line 48 of file ZblLogCategory.h.
|
friend |
Definition at line 49 of file ZblLogCategory.h.
|
staticprotected |
A list of registered log categories.
Zuble maintains this list so that log categories can be enumerated and controlled from QML/javascript programs.
Definition at line 82 of file ZblLogCategory.h.
Referenced by registerCategory().
|
staticprotected |
Protects thread-safe methods of this class.
Definition at line 88 of file ZblLogCategory.h.
Referenced by registerCategory().
|
protected |
true if we have already registered this category
Definition at line 73 of file ZblLogCategory.h.
Referenced by registerCategory().
|
protected |
A wrapped QLoggingCategory object for this log category.
Definition at line 67 of file ZblLogCategory.h.
Referenced by operator()(), and registerCategory().
Zuble documentation copyright © 2019 Bob Dinitto. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Zuble is a derivative work of Qt version 5. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.