1 /* 2 SPDX-FileCopyrightText: 2015-2017 Krzysztof Nowicki <krissn@op.pl> 3 4 SPDX-License-Identifier: LGPL-2.0-or-later 5 */ 6 7 #pragma once 8 9 #include <QTemporaryDir> 10 #include <ewscli_debug.h> 11 #include <ewscli_failedreq_debug.h> 12 #include <ewscli_proto_debug.h> 13 #include <ewscli_req_debug.h> 14 15 #define qCDebugNC(cat) qCDebug(cat).noquote() 16 #define qCInfoNC(cat) qCInfo(cat).noquote() 17 #define qCWarningNC(cat) qCWarning(cat).noquote() 18 #define qCCriticalNC(cat) qCCritical(cat).noquote() 19 20 #define qCDebugNS(cat) qCDebug(cat).nospace() 21 #define qCInfoNS(cat) qCInfo(cat).nospace() 22 #define qCWarningNS(cat) qCWarning(cat).nospace() 23 #define qCCriticalNS(cat) qCCritical(cat).nospace() 24 25 #define qCDebugNCS(cat) qCDebug(cat).noquote().nospace() 26 #define qCInfoNCS(cat) qCInfo(cat).noquote().nospace() 27 #define qCWarningNCS(cat) qCWarning(cat).noquote().nospace() 28 #define qCCriticalNCS(cat) qCCritical(cat).noquote().nospace() 29 ewsHash(const QString & val)30inline QString ewsHash(const QString &val) 31 { 32 return QString::number(qHash(val), 36); 33 } 34 35 extern QTemporaryDir ewsLogDir; 36 37