Diffstat (limited to 'noncore/securityplugins/dummy/dummypluginimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/securityplugins/dummy/dummypluginimpl.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
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; + +} |