Commit 7c9b141f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Prepare to change from/toCc etc. from plugins

parent d0fdd28b
Pipeline #69906 passed with stage
in 41 minutes and 29 seconds
......@@ -19,6 +19,41 @@ ComposerViewInterface::~ComposerViewInterface()
{
}
void ComposerViewInterface::setReplyTo(const QString &str)
{
if (mComposerView) {
// mComposerView->setReplyTo(str);
}
}
void ComposerViewInterface::setSubject(const QString &str)
{
if (mComposerView) {
mComposerView->setSubject(str);
}
}
void ComposerViewInterface::setTo(const QStringList &lst)
{
if (mComposerView) {
// mComposerView->setTo(lst);
}
}
void ComposerViewInterface::setCc(const QStringList &lst)
{
if (mComposerView) {
// mComposerView->setCc(lst);
}
}
void ComposerViewInterface::setFrom(const QString &str)
{
if (mComposerView) {
mComposerView->setFrom(str);
}
}
QString ComposerViewInterface::subject() const
{
if (mComposerView) {
......
......@@ -22,6 +22,12 @@ public:
explicit ComposerViewInterface(ComposerViewBase *composerView);
~ComposerViewInterface();
void setReplyTo(const QString &str);
void setSubject(const QString &str);
void setTo(const QStringList &lst);
void setCc(const QStringList &lst);
void setFrom(const QString &str);
Q_REQUIRED_RESULT QString subject() const;
Q_REQUIRED_RESULT QString to() const;
Q_REQUIRED_RESULT QString cc() const;
......
......@@ -27,6 +27,31 @@ void PluginComposerInterface::setComposerViewBase(ComposerViewBase *composerView
mComposerViewInterface = new MessageComposer::ComposerViewInterface(composerViewBase);
}
void PluginComposerInterface::setReplyTo(const QString &str)
{
mComposerViewInterface->setReplyTo(str);
}
void PluginComposerInterface::setSubject(const QString &str)
{
mComposerViewInterface->setSubject(str);
}
void PluginComposerInterface::setTo(const QStringList &lst)
{
mComposerViewInterface->setTo(lst);
}
void PluginComposerInterface::setCc(const QStringList &lst)
{
mComposerViewInterface->setCc(lst);
}
void PluginComposerInterface::setFrom(const QString &str)
{
mComposerViewInterface->setFrom(str);
}
QString PluginComposerInterface::subject() const
{
return mComposerViewInterface->subject();
......
......@@ -24,6 +24,12 @@ public:
~PluginComposerInterface();
void setComposerViewBase(ComposerViewBase *composerViewBase);
void setReplyTo(const QString &str);
void setSubject(const QString &str);
void setTo(const QStringList &lst);
void setCc(const QStringList &lst);
void setFrom(const QString &str);
Q_REQUIRED_RESULT QString replyTo() const;
Q_REQUIRED_RESULT QString subject() const;
Q_REQUIRED_RESULT QString to() const;
......
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