mirror of https://github.com/qt/qtcoap.git
Move logging categories into private header
The are not part of the public API.
Addresses header review comment, and amends
41b71d6187
Task-number: QTBUG-132090
Pick-to: 6.9
Change-Id: Iff94177bbd10b4f74e957e362e5a0c3ba72cf11f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
a781ac2312
commit
060d2edbec
|
@ -6,9 +6,9 @@
|
|||
#define QCOAPINTERNALREQUEST_H
|
||||
|
||||
#include <private/qcoapinternalmessage_p.h>
|
||||
#include <private/qcoapnamespace_p.h>
|
||||
|
||||
#include <QtCoap/qcoapglobal.h>
|
||||
#include <QtCoap/qcoapnamespace.h>
|
||||
#include <private/qcoapconnection_p.h>
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
|
|
@ -5,16 +5,12 @@
|
|||
#include <QtCoap/qcoapglobal.h>
|
||||
#include <QtCore/qobject.h>
|
||||
#include <QtCore/qrandom.h>
|
||||
#include <QtCore/qloggingcategory.h>
|
||||
|
||||
#ifndef QCOAPNAMESPACE_H
|
||||
#define QCOAPNAMESPACE_H
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(lcCoapExchange)
|
||||
Q_DECLARE_LOGGING_CATEGORY(lcCoapConnection)
|
||||
|
||||
#define FOR_EACH_COAP_ERROR(X) \
|
||||
X(BadRequest, 0x80) X(Unauthorized, 0x81) X(BadOption, 0x82) X(Forbidden, 0x83) \
|
||||
X(NotFound, 0x84) X(MethodNotAllowed, 0x85) X(NotAcceptable, 0x86) \
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
#include "qcoapnamespace.h"
|
||||
#include "private/qglobal_p.h"
|
||||
#include <QtCore/qloggingcategory.h>
|
||||
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
|
@ -20,6 +22,9 @@
|
|||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(lcCoapExchange)
|
||||
Q_DECLARE_LOGGING_CATEGORY(lcCoapConnection)
|
||||
|
||||
namespace QtCoap
|
||||
{
|
||||
bool Q_AUTOTEST_EXPORT isError(QtCoap::ResponseCode code);
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include "qcoapqudpconnection_p.h"
|
||||
#include <private/qcoapnamespace_p.h>
|
||||
|
||||
#include <QtCore/qloggingcategory.h>
|
||||
#include <QtNetwork/qnetworkdatagram.h>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#ifndef QCOAPREQUEST_P_H
|
||||
#define QCOAPREQUEST_P_H
|
||||
|
||||
#include <QtCoap/qcoapnamespace.h>
|
||||
#include <private/qcoapnamespace_p.h>
|
||||
#include <QtCoap/qcoaprequest.h>
|
||||
#include <private/qcoapmessage_p.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue