Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
PIM Messagelib
Commits
e3385d3c
Commit
e3385d3c
authored
Mar 10, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix api
parent
1d03b9b0
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
4 deletions
+16
-4
CMakeLists.txt
CMakeLists.txt
+1
-1
messageviewer/src/viewer/viewer_p.cpp
messageviewer/src/viewer/viewer_p.cpp
+1
-1
messageviewer/src/viewerplugins/tests/viewerplugin_gui.cpp
messageviewer/src/viewerplugins/tests/viewerplugin_gui.cpp
+1
-1
messageviewer/src/viewerplugins/viewerplugininterface.cpp
messageviewer/src/viewerplugins/viewerplugininterface.cpp
+10
-0
messageviewer/src/viewerplugins/viewerplugininterface.h
messageviewer/src/viewerplugins/viewerplugininterface.h
+3
-1
No files found.
CMakeLists.txt
View file @
e3385d3c
...
...
@@ -18,7 +18,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include
(
ECMQtDeclareLoggingCategory
)
include
(
ECMAddTests
)
set
(
MESSAGELIB_LIB_VERSION
"5.1.8
0
"
)
set
(
MESSAGELIB_LIB_VERSION
"5.1.8
1
"
)
set
(
KF5_VERSION
"5.19.0"
)
set
(
KDEPIMLIBS_LIB_VERSION
"5.1.42"
)
...
...
messageviewer/src/viewer/viewer_p.cpp
View file @
e3385d3c
...
...
@@ -2391,7 +2391,7 @@ void ViewerPrivate::slotActivatePlugin(ViewerPluginInterface *interface)
if
(
!
text
.
isEmpty
())
{
interface
->
setText
(
text
);
}
interface
->
showWidget
();
interface
->
execute
();
}
void
ViewerPrivate
::
slotAttachmentSaveAs
()
...
...
messageviewer/src/viewerplugins/tests/viewerplugin_gui.cpp
View file @
e3385d3c
...
...
@@ -88,7 +88,7 @@ ViewerPluginTest::~ViewerPluginTest()
void
ViewerPluginTest
::
slotActivatePlugin
(
MessageViewer
::
ViewerPluginInterface
*
interface
)
{
interface
->
showWidget
();
interface
->
execute
();
}
int
main
(
int
argc
,
char
**
argv
)
...
...
messageviewer/src/viewerplugins/viewerplugininterface.cpp
View file @
e3385d3c
...
...
@@ -40,6 +40,11 @@ ViewerPluginInterface::~ViewerPluginInterface()
delete
d
;
}
void
ViewerPluginInterface
::
execute
()
{
showWidget
();
}
void
ViewerPluginInterface
::
setText
(
const
QString
&
text
)
{
Q_UNUSED
(
text
);
...
...
@@ -75,6 +80,11 @@ void ViewerPluginInterface::closePlugin()
// Reimplement in subclass
}
void
ViewerPluginInterface
::
showWidget
()
{
// Reimplement in subclass
}
void
ViewerPluginInterface
::
updateAction
(
const
Akonadi
::
Item
&
item
)
{
Q_UNUSED
(
item
);
...
...
messageviewer/src/viewerplugins/viewerplugininterface.h
View file @
e3385d3c
...
...
@@ -43,17 +43,19 @@ public:
Q_FLAGS
(
SpecificFeatureTypes
)
Q_DECLARE_FLAGS
(
SpecificFeatureTypes
,
SpecificFeatureType
)
virtual
void
execute
();
virtual
void
setText
(
const
QString
&
text
);
virtual
QAction
*
action
()
const
;
virtual
void
setUrl
(
const
QUrl
&
url
);
virtual
void
setMessage
(
const
KMime
::
Message
::
Ptr
&
value
);
virtual
void
setMessageItem
(
const
Akonadi
::
Item
&
item
);
virtual
void
closePlugin
();
virtual
void
showWidget
()
=
0
;
virtual
ViewerPluginInterface
::
SpecificFeatureTypes
featureTypes
()
const
=
0
;
virtual
void
updateAction
(
const
Akonadi
::
Item
&
item
);
protected:
virtual
void
showWidget
();
void
addHelpTextAction
(
QAction
*
act
,
const
QString
&
text
);
protected
Q_SLOTS
:
...
...
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