/usr/include/KF5/messagecomposer/akonadisender.h is in libkf5messagecomposer-dev 4:17.12.3-0ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | /*
* This file is part of KMail.
* Copyright (c) 2009 Constantin Berzan <exit3219@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef AKONADISENDER_H
#define AKONADISENDER_H
#include "messagesender.h"
#include "messagecomposer_export.h"
#include <QObject>
#include <kmime/kmime_message.h>
class KJob;
namespace MessageComposer {
class AkonadiSenderPrivate;
class MESSAGECOMPOSER_EXPORT AkonadiSender : public QObject, public MessageSender
{
Q_OBJECT
public:
explicit AkonadiSender(QObject *parent = nullptr);
~AkonadiSender();
protected:
/**
Send given message. The message is either queued or sent
immediately. The default behaviour, as selected with
setSendImmediate(), can be overwritten with the parameter
sendNow (by specifying true or false).
The sender takes ownership of the given message on success,
so DO NOT DELETE OR MODIFY the message further.
Returns true on success.
TODO cberzan: update docu...
*/
bool doSend(const KMime::Message::Ptr &msg, short sendNow) override;
/**
Send queued messages, using the specified transport or the
default, if none is given.
*/
bool doSendQueued(int transportId = -1) override;
private:
/**
Queue or send immediately one message using MailTransport::MessageQueueJob.
*/
void sendOrQueueMessage(const KMime::Message::Ptr &msg, MessageComposer::MessageSender::SendMethod method = MessageComposer::MessageSender::SendDefault);
private Q_SLOTS:
void queueJobResult(KJob *job);
private:
AkonadiSenderPrivate *const d;
};
}
#endif /* AKONADISENDER_H */
|