Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Messagelib
Commits
7c9b141f
Commit
7c9b141f
authored
Jul 11, 2021
by
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
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messagecomposer/src/composer/composerviewinterface.cpp
View file @
7c9b141f
...
...
@@ -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
)
{
...
...
messagecomposer/src/composer/composerviewinterface.h
View file @
7c9b141f
...
...
@@ -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
;
...
...
messagecomposer/src/plugineditor/plugincomposerinterface.cpp
View file @
7c9b141f
...
...
@@ -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
();
...
...
messagecomposer/src/plugineditor/plugincomposerinterface.h
View file @
7c9b141f
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment