File indexing completed on 2024-05-12 05:20:45
0001 /* 0002 * 0003 * This file is part of KMail, the KDE mail client. 0004 * SPDX-FileCopyrightText: 2003 Zack Rusin <zack@kde.org> 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-only 0007 */ 0008 0009 #pragma once 0010 0011 class QByteArray; 0012 class QString; 0013 #include <QObject> 0014 0015 namespace KMail 0016 { 0017 // This class implements the D-Bus interface 0018 // libkdepim/interfaces/org.kde.mailtransport.service.xml 0019 class MailServiceImpl : public QObject 0020 { 0021 Q_OBJECT 0022 public: 0023 explicit MailServiceImpl(QObject *parent = nullptr); 0024 [[nodiscard]] bool sendMessage(const QString &from, 0025 const QString &to, 0026 const QString &cc, 0027 const QString &bcc, 0028 const QString &subject, 0029 const QString &body, 0030 const QStringList &attachments); 0031 0032 [[nodiscard]] bool sendMessage(const QString &from, 0033 const QString &to, 0034 const QString &cc, 0035 const QString &bcc, 0036 const QString &subject, 0037 const QString &body, 0038 const QByteArray &attachment); 0039 }; 0040 }