File indexing completed on 2025-01-05 04:50:01
0001 /* 0002 SPDX-FileCopyrightText: 2015-2017 Krzysztof Nowicki <krissn@op.pl> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QTemporaryDir> 0010 #include <ewscli_debug.h> 0011 #include <ewscli_failedreq_debug.h> 0012 #include <ewscli_proto_debug.h> 0013 #include <ewscli_req_debug.h> 0014 0015 #define qCDebugNC(cat) qCDebug(cat).noquote() 0016 #define qCInfoNC(cat) qCInfo(cat).noquote() 0017 #define qCWarningNC(cat) qCWarning(cat).noquote() 0018 #define qCCriticalNC(cat) qCCritical(cat).noquote() 0019 0020 #define qCDebugNS(cat) qCDebug(cat).nospace() 0021 #define qCInfoNS(cat) qCInfo(cat).nospace() 0022 #define qCWarningNS(cat) qCWarning(cat).nospace() 0023 #define qCCriticalNS(cat) qCCritical(cat).nospace() 0024 0025 #define qCDebugNCS(cat) qCDebug(cat).noquote().nospace() 0026 #define qCInfoNCS(cat) qCInfo(cat).noquote().nospace() 0027 #define qCWarningNCS(cat) qCWarning(cat).noquote().nospace() 0028 #define qCCriticalNCS(cat) qCCritical(cat).noquote().nospace() 0029 0030 inline QString ewsHash(const QString &val) 0031 { 0032 return QString::number(qHash(val), 36); 0033 } 0034 0035 extern QTemporaryDir ewsLogDir;