Diffstat (limited to 'noncore/securityplugins/notice/noticepluginimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/securityplugins/notice/noticepluginimpl.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/noncore/securityplugins/notice/noticepluginimpl.cpp b/noncore/securityplugins/notice/noticepluginimpl.cpp new file mode 100644 index 0000000..34e3cfc --- a/dev/null +++ b/noncore/securityplugins/notice/noticepluginimpl.cpp | |||
@@ -0,0 +1,28 @@ | |||
1 | #include "noticepluginimpl.h" | ||
2 | |||
3 | NoticePluginImpl::NoticePluginImpl() { | ||
4 | noticePlugin = new NoticePlugin(); | ||
5 | } | ||
6 | |||
7 | NoticePluginImpl::~NoticePluginImpl() { | ||
8 | delete noticePlugin; | ||
9 | } | ||
10 | |||
11 | MultiauthPluginObject* NoticePluginImpl::plugin() { | ||
12 | return noticePlugin; | ||
13 | } | ||
14 | |||
15 | Q_EXPORT_INTERFACE() { | ||
16 | Q_CREATE_INSTANCE( NoticePluginImpl ) | ||
17 | } | ||
18 | |||
19 | QRESULT NoticePluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { | ||
20 | *iface = 0; | ||
21 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_MultiauthPluginInterface ) ) { | ||
22 | *iface = this, (*iface)->addRef(); | ||
23 | } else { | ||
24 | return QE_NOINTERFACE; | ||
25 | } | ||
26 | return QS_OK; | ||
27 | |||
28 | } | ||