File indexing completed on 2024-06-23 05:18:30
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 #include <MessageCore/AttachmentPart> 0009 0010 namespace MessageComposer 0011 { 0012 class Utils 0013 { 0014 public: 0015 [[nodiscard]] bool containsImage(const MessageCore::AttachmentPart::List &parts); 0016 [[nodiscard]] bool resizeImage(MessageCore::AttachmentPart::Ptr part); 0017 void changeFileName(MessageCore::AttachmentPart::Ptr part); 0018 [[nodiscard]] bool filterRecipients(const QStringList &recipients); 0019 [[nodiscard]] bool hasImage(const QByteArray &mimetype); 0020 }; 0021 }