summaryrefslogtreecommitdiff
path: root/noncore/securityplugins/notice/noticepluginimpl.cpp
Side-by-side diff
Diffstat (limited to 'noncore/securityplugins/notice/noticepluginimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/securityplugins/notice/noticepluginimpl.cpp28
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 @@
+#include "noticepluginimpl.h"
+
+NoticePluginImpl::NoticePluginImpl() {
+ noticePlugin = new NoticePlugin();
+}
+
+NoticePluginImpl::~NoticePluginImpl() {
+ delete noticePlugin;
+}
+
+MultiauthPluginObject* NoticePluginImpl::plugin() {
+ return noticePlugin;
+}
+
+ Q_EXPORT_INTERFACE() {
+ Q_CREATE_INSTANCE( NoticePluginImpl )
+ }
+
+QRESULT NoticePluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) {
+ *iface = 0;
+ if ( ( uuid == IID_QUnknown ) || ( uuid == IID_MultiauthPluginInterface ) ) {
+ *iface = this, (*iface)->addRef();
+ } else {
+ return QE_NOINTERFACE;
+ }
+ return QS_OK;
+
+}