Clean up interface

wilder
Laurent Montel 6 years ago
parent 41cbfe1cf7
commit ab6de4ee33
  1. 2
      src/editor/composer.h
  2. 13
      src/editor/kmcomposerwin.h

@ -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);

Loading…
Cancel
Save