File indexing completed on 2024-06-23 05:14:16
0001 /* -*- mode: c++; c-basic-offset:4 -*- 0002 utils/gpgme-compat.h 0003 0004 This file is part of Kleopatra, the KDE keymanager 0005 SPDX-FileCopyrightText: 2023 g10 Code GmbH 0006 SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de> 0007 0008 SPDX-License-Identifier: GPL-2.0-or-later 0009 */ 0010 0011 #pragma once 0012 0013 #include <config-kleopatra.h> 0014 0015 #include <QGpgME/Debug> 0016 0017 #if QGPGME_HAS_TOLOGSTRING 0018 // intentionally left blank 0019 #else 0020 #include <sstream> 0021 0022 namespace QGpgME 0023 { 0024 template<class GpgMEClass> 0025 std::string toLogString(const GpgMEClass &object) 0026 { 0027 std::stringstream stream; 0028 stream << object; 0029 return stream.str(); 0030 } 0031 } 0032 #endif