From 5431072f0ea1cbc8ca37914b6349e66079f1acff Mon Sep 17 00:00:00 2001 From: clem Date: Tue, 15 Jun 2004 13:49:36 +0000 Subject: First revision of securityplugins, called by libopiesecurity2 authentication framework (see http://dudu.dyn.2-h.org/nist/OMAF.php). --- (limited to 'noncore/securityplugins/dummy/dummypluginimpl.cpp') diff --git a/noncore/securityplugins/dummy/dummypluginimpl.cpp b/noncore/securityplugins/dummy/dummypluginimpl.cpp new file mode 100644 index 0000000..518996c --- a/dev/null +++ b/noncore/securityplugins/dummy/dummypluginimpl.cpp @@ -0,0 +1,28 @@ +#include "dummypluginimpl.h" + +DummyPluginImpl::DummyPluginImpl() { + dummyPlugin = new DummyPlugin(); +} + +DummyPluginImpl::~DummyPluginImpl() { + delete dummyPlugin; +} + +MultiauthPluginObject* DummyPluginImpl::plugin() { + return dummyPlugin; +} + +Q_EXPORT_INTERFACE() { + Q_CREATE_INSTANCE( DummyPluginImpl ) +} + +QRESULT DummyPluginImpl::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; + +} -- cgit v0.9.0.2