Ref T730, log category

This commit is contained in:
Klaus Basan
2019-10-05 01:41:09 +02:00
committed by Mat Sutcliffe
parent 27fedad3fd
commit 226b601565
2 changed files with 11 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
#include "blackmisc/network/networkutils.h"
#include "blackmisc/network/external/qjsonwebtoken.h"
#include "blackmisc/logmessage.h"
#include "blackmisc/logcategory.h"
#include <QJsonObject>
#include <QJsonArray>
@@ -28,6 +29,12 @@ namespace BlackCore
{
namespace Connection
{
const CLogCategoryList &CApiServerConnection::getLogCategories()
{
static const CLogCategoryList cats { CLogCategory::audio(), CLogCategory::vatsimSpecific() };
return cats;
}
CApiServerConnection::CApiServerConnection(const QString &address, QObject *parent) :
QObject(parent),
m_address(address)

View File

@@ -11,6 +11,7 @@
#ifndef BLACKCORE_AFV_CONNECTION_APISERVERCONNECTION_H
#define BLACKCORE_AFV_CONNECTION_APISERVERCONNECTION_H
#include "blackmisc/logcategorylist.h"
#include "blackcore/afv/dto.h"
#include "blackcore/application.h"
@@ -43,6 +44,9 @@ namespace BlackCore
NoError
};
//! Categories
static const BlackMisc::CLogCategoryList &getLogCategories();
//! Constructor
CApiServerConnection(const QString &address, QObject *parent = nullptr);