2024-08-25 16:08:24 +12:00
|
|
|
#ifndef GEN_QLOGGINGCATEGORY_H
|
|
|
|
#define GEN_QLOGGINGCATEGORY_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 18:07:56 +13:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-15 10:29:05 +12:00
|
|
|
|
2024-08-25 16:08:24 +12:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QLoggingCategory;
|
|
|
|
#else
|
|
|
|
typedef struct QLoggingCategory QLoggingCategory;
|
|
|
|
#endif
|
|
|
|
|
2024-08-29 19:01:51 +12:00
|
|
|
QLoggingCategory* QLoggingCategory_new(const char* category);
|
2024-09-11 17:41:09 +12:00
|
|
|
bool QLoggingCategory_IsDebugEnabled(const QLoggingCategory* self);
|
|
|
|
bool QLoggingCategory_IsInfoEnabled(const QLoggingCategory* self);
|
|
|
|
bool QLoggingCategory_IsWarningEnabled(const QLoggingCategory* self);
|
|
|
|
bool QLoggingCategory_IsCriticalEnabled(const QLoggingCategory* self);
|
|
|
|
const char* QLoggingCategory_CategoryName(const QLoggingCategory* self);
|
2024-08-25 16:08:24 +12:00
|
|
|
QLoggingCategory* QLoggingCategory_OperatorCall(QLoggingCategory* self);
|
2024-09-11 17:41:09 +12:00
|
|
|
QLoggingCategory* QLoggingCategory_OperatorCall2(const QLoggingCategory* self);
|
2024-08-25 16:08:24 +12:00
|
|
|
QLoggingCategory* QLoggingCategory_DefaultCategory();
|
2024-10-19 12:53:33 +13:00
|
|
|
void QLoggingCategory_SetFilterRules(struct miqt_string rules);
|
2024-08-25 16:08:24 +12:00
|
|
|
void QLoggingCategory_Delete(QLoggingCategory* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|