Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KDE PIM Add-ons
Commits
bee2836e
Commit
bee2836e
authored
Jun 02, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create confirm-address plugin
parent
e412e98a
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
162 additions
and
0 deletions
+162
-0
kmail/editorsendcheckplugins/CMakeLists.txt
kmail/editorsendcheckplugins/CMakeLists.txt
+1
-0
kmail/editorsendcheckplugins/confirm-address/CMakeLists.txt
kmail/editorsendcheckplugins/confirm-address/CMakeLists.txt
+19
-0
kmail/editorsendcheckplugins/confirm-address/confirmaddressinterface.cpp
...dcheckplugins/confirm-address/confirmaddressinterface.cpp
+37
-0
kmail/editorsendcheckplugins/confirm-address/confirmaddressinterface.h
...endcheckplugins/confirm-address/confirmaddressinterface.h
+34
-0
kmail/editorsendcheckplugins/confirm-address/confirmaddressplugin.cpp
...sendcheckplugins/confirm-address/confirmaddressplugin.cpp
+36
-0
kmail/editorsendcheckplugins/confirm-address/confirmaddressplugin.h
...orsendcheckplugins/confirm-address/confirmaddressplugin.h
+35
-0
No files found.
kmail/editorsendcheckplugins/CMakeLists.txt
View file @
bee2836e
add_subdirectory
(
confirm-address
)
kmail/editorsendcheckplugins/confirm-address/CMakeLists.txt
0 → 100644
View file @
bee2836e
set
(
kmail_confirmaddresseditorplugin_SRCS
confirmaddressinterface.cpp
confirmaddressplugin.cpp
)
ecm_qt_declare_logging_category
(
kmail_confirmaddresseditorplugin_SRCS HEADER confirmaddressplugin_debug.h IDENTIFIER KMAIL_EDITOR_CONFIRMADDRESS_PLUGIN_LOG CATEGORY_NAME log_kmail_confirmaddressplugin
)
add_library
(
kmail_confirmaddresseditorplugin MODULE
${
kmail_confirmaddresseditorplugin_SRCS
}
)
target_link_libraries
(
kmail_confirmaddresseditorplugin
KF5::IconThemes KF5::MessageComposer KF5::I18n
)
install
(
TARGETS kmail_confirmaddresseditorplugin DESTINATION
${
PLUGIN_INSTALL_DIR
}
/kmail
)
if
(
BUILD_TESTING
)
add_subdirectory
(
autotests
)
endif
()
kmail/editorsendcheckplugins/confirm-address/confirmaddressinterface.cpp
0 → 100644
View file @
bee2836e
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "confirmaddressinterface.h"
ConfirmAddressInterface
::
ConfirmAddressInterface
(
QObject
*
parent
)
:
MessageComposer
::
PluginEditorCheckBeforeSendInterface
(
parent
)
{
}
ConfirmAddressInterface
::~
ConfirmAddressInterface
()
{
}
void
ConfirmAddressInterface
::
exec
()
{
}
kmail/editorsendcheckplugins/confirm-address/confirmaddressinterface.h
0 → 100644
View file @
bee2836e
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef CONFIRMADDRESSINTERFACE_H
#define CONFIRMADDRESSINTERFACE_H
#include <MessageComposer/PluginEditorCheckBeforeSendInterface>
class
ConfirmAddressInterface
:
public
MessageComposer
::
PluginEditorCheckBeforeSendInterface
{
Q_OBJECT
public:
explicit
ConfirmAddressInterface
(
QObject
*
parent
=
Q_NULLPTR
);
~
ConfirmAddressInterface
();
void
exec
()
Q_DECL_OVERRIDE
;
};
#endif // CONFIRMADDRESSINTERFACE_H
kmail/editorsendcheckplugins/confirm-address/confirmaddressplugin.cpp
0 → 100644
View file @
bee2836e
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "confirmaddressplugin.h"
ConfirmAddressPlugin
::
ConfirmAddressPlugin
(
QObject
*
parent
)
:
MessageComposer
::
PluginEditorCheckBeforeSend
()
{
}
ConfirmAddressPlugin
::~
ConfirmAddressPlugin
()
{
}
MessageComposer
::
PluginEditorCheckBeforeSendInterface
*
ConfirmAddressPlugin
::
createInterface
(
QWidget
*
parent
)
{
return
{};
}
kmail/editorsendcheckplugins/confirm-address/confirmaddressplugin.h
0 → 100644
View file @
bee2836e
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef CONFIRMADDRESSPLUGIN_H
#define CONFIRMADDRESSPLUGIN_H
#include <MessageComposer/PluginEditorCheckBeforeSend>
class
ConfirmAddressPlugin
:
public
MessageComposer
::
PluginEditorCheckBeforeSend
{
Q_OBJECT
public:
explicit
ConfirmAddressPlugin
(
QObject
*
parent
=
Q_NULLPTR
);
~
ConfirmAddressPlugin
();
MessageComposer
::
PluginEditorCheckBeforeSendInterface
*
createInterface
(
QWidget
*
parent
)
Q_DECL_OVERRIDE
;
};
#endif // CONFIRMADDRESSPLUGIN_H
Write
Preview
Markdown
is supported
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