Commit ab6de4ee authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Clean up interface

parent 41cbfe1c
......@@ -70,7 +70,7 @@ public: // mailserviceimpl
virtual void addAttachment(const QList<AttachmentInfo> &url, bool showWarning) = 0;
virtual void addAttachment(const QString &name, KMime::Headers::contentEncoding cte, const QString &charset, const QByteArray &data, const QByteArray &mimeType) = 0;
public: // kmcommand
virtual QString dbusObjectPath() const = 0;
virtual Q_REQUIRED_RESULT QString dbusObjectPath() const = 0;
public: // kmkernel, kmcommands, callback
/**
* Set the message the composer shall work with. This discards
......
......@@ -135,20 +135,19 @@ public:
* Start of D-Bus callable stuff. The D-Bus methods need to be public slots,
* otherwise they can't be accessed.
*/
// TODO clean-up dbus stuff; make the adaptor a friend; etc.
public Q_SLOTS:
Q_SCRIPTABLE void send(int how) override;
/**
* End of D-Bus callable stuff
*/
Q_SCRIPTABLE void addAttachmentsAndSend(const QList<QUrl> &urls, const QString &comment, int how) override;
void addAttachmentsAndSend(const QList<QUrl> &urls, const QString &comment, int how) override;
Q_SCRIPTABLE void addAttachment(const QList<AttachmentInfo> &infos, bool showWarning) override;
void addAttachment(const QList<AttachmentInfo> &infos, bool showWarning) override;
Q_SCRIPTABLE void addAttachment(const QString &name, KMime::Headers::contentEncoding cte, const QString &charset, const QByteArray &data, const QByteArray &mimeType) override;
void addAttachment(const QString &name, KMime::Headers::contentEncoding cte, const QString &charset, const QByteArray &data, const QByteArray &mimeType) override;
/**
* End of D-Bus callable stuff
*/
Q_SIGNALS:
void identityChanged(const KIdentityManagement::Identity &identity);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment