File indexing completed on 2025-03-09 04:54:39
0001 /* 0002 * SPDX-FileCopyrightText: 2005 Till Adam <adam@kde.org> 0003 * SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0 0004 */ 0005 0006 #pragma once 0007 0008 #include <KMime/Content> 0009 class QUrl; 0010 class QWidget; 0011 class QAction; 0012 0013 namespace MessageViewer 0014 { 0015 /** 0016 * The Util namespace contains a collection of helper functions use in 0017 * various places. 0018 */ 0019 namespace Util 0020 { 0021 [[nodiscard]] bool handleUrlWithQDesktopServices(const QUrl &url); 0022 0023 [[nodiscard]] KMime::Content::List allContents(const KMime::Content *message); 0024 0025 [[nodiscard]] bool saveContents(QWidget *parent, const KMime::Content::List &contents, QList<QUrl> &urlList); 0026 [[nodiscard]] bool saveContent(QWidget *parent, KMime::Content *content, const QUrl &url); 0027 void addHelpTextAction(QAction *act, const QString &text); 0028 void readGravatarConfig(); 0029 } 0030 }