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
KMail
Commits
6ca51ef2
Commit
6ca51ef2
authored
Feb 08, 2021
by
Laurent Montel
😁
Browse files
requires is a keyword c++20
parent
bfafaaf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugininterface/kmailplugininterface.cpp
View file @
6ca51ef2
...
...
@@ -35,21 +35,21 @@ void KMailPluginInterface::initializeInterfaceRequires(PimCommon::AbstractGeneri
return
;
}
auto
interface
=
static_cast
<
PimCommon
::
GenericPluginInterface
*>
(
abstractInterface
);
PimCommon
::
GenericPluginInterface
::
RequireTypes
requires
=
interface
->
requires
();
if
(
requires
&
PimCommon
::
GenericPluginInterface
::
CurrentItems
)
{
PimCommon
::
GenericPluginInterface
::
RequireTypes
requires
Features
=
interface
->
requires
();
if
(
requires
Features
&
PimCommon
::
GenericPluginInterface
::
CurrentItems
)
{
interface
->
setItems
(
mMainWindow
->
currentSelection
());
}
if
(
requires
&
PimCommon
::
GenericPluginInterface
::
Items
)
{
if
(
requires
Features
&
PimCommon
::
GenericPluginInterface
::
Items
)
{
qCDebug
(
KMAIL_LOG
)
<<
"PimCommon::GenericPluginInterface::Items not implemented"
;
}
if
(
requires
&
PimCommon
::
GenericPluginInterface
::
CurrentCollection
)
{
if
(
requires
Features
&
PimCommon
::
GenericPluginInterface
::
CurrentCollection
)
{
if
(
mMainWindow
->
currentCollection
().
isValid
())
{
interface
->
setCurrentCollection
(
mMainWindow
->
currentCollection
());
}
else
{
qCDebug
(
KMAIL_LOG
)
<<
"Current Collection not defined"
;
}
}
if
(
requires
&
PimCommon
::
GenericPluginInterface
::
Collections
)
{
if
(
requires
Features
&
PimCommon
::
GenericPluginInterface
::
Collections
)
{
qCDebug
(
KMAIL_LOG
)
<<
"PimCommon::GenericPluginInterface::Collection not implemented"
;
}
}
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