mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +08:00
Ref T730, log category
This commit is contained in:
committed by
Mat Sutcliffe
parent
27fedad3fd
commit
226b601565
@@ -11,6 +11,7 @@
|
|||||||
#include "blackmisc/network/networkutils.h"
|
#include "blackmisc/network/networkutils.h"
|
||||||
#include "blackmisc/network/external/qjsonwebtoken.h"
|
#include "blackmisc/network/external/qjsonwebtoken.h"
|
||||||
#include "blackmisc/logmessage.h"
|
#include "blackmisc/logmessage.h"
|
||||||
|
#include "blackmisc/logcategory.h"
|
||||||
|
|
||||||
#include <QJsonObject>
|
#include <QJsonObject>
|
||||||
#include <QJsonArray>
|
#include <QJsonArray>
|
||||||
@@ -28,6 +29,12 @@ namespace BlackCore
|
|||||||
{
|
{
|
||||||
namespace Connection
|
namespace Connection
|
||||||
{
|
{
|
||||||
|
const CLogCategoryList &CApiServerConnection::getLogCategories()
|
||||||
|
{
|
||||||
|
static const CLogCategoryList cats { CLogCategory::audio(), CLogCategory::vatsimSpecific() };
|
||||||
|
return cats;
|
||||||
|
}
|
||||||
|
|
||||||
CApiServerConnection::CApiServerConnection(const QString &address, QObject *parent) :
|
CApiServerConnection::CApiServerConnection(const QString &address, QObject *parent) :
|
||||||
QObject(parent),
|
QObject(parent),
|
||||||
m_address(address)
|
m_address(address)
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
#ifndef BLACKCORE_AFV_CONNECTION_APISERVERCONNECTION_H
|
#ifndef BLACKCORE_AFV_CONNECTION_APISERVERCONNECTION_H
|
||||||
#define BLACKCORE_AFV_CONNECTION_APISERVERCONNECTION_H
|
#define BLACKCORE_AFV_CONNECTION_APISERVERCONNECTION_H
|
||||||
|
|
||||||
|
#include "blackmisc/logcategorylist.h"
|
||||||
#include "blackcore/afv/dto.h"
|
#include "blackcore/afv/dto.h"
|
||||||
#include "blackcore/application.h"
|
#include "blackcore/application.h"
|
||||||
|
|
||||||
@@ -43,6 +44,9 @@ namespace BlackCore
|
|||||||
NoError
|
NoError
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//! Categories
|
||||||
|
static const BlackMisc::CLogCategoryList &getLogCategories();
|
||||||
|
|
||||||
//! Constructor
|
//! Constructor
|
||||||
CApiServerConnection(const QString &address, QObject *parent = nullptr);
|
CApiServerConnection(const QString &address, QObject *parent = nullptr);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user