author | clem <clem> | 2004-06-15 13:49:36 (UTC) |
---|---|---|
committer | clem <clem> | 2004-06-15 13:49:36 (UTC) |
commit | 5431072f0ea1cbc8ca37914b6349e66079f1acff (patch) (side-by-side diff) | |
tree | da335f89e506cde6ffe59a252b4ccab4e177809b /noncore/securityplugins/pin/pinpluginimpl.cpp | |
parent | ba4722d0fed5527a5b799281caf6324f2e7ad5d8 (diff) | |
download | opie-5431072f0ea1cbc8ca37914b6349e66079f1acff.zip opie-5431072f0ea1cbc8ca37914b6349e66079f1acff.tar.gz opie-5431072f0ea1cbc8ca37914b6349e66079f1acff.tar.bz2 |
First revision of securityplugins, called by libopiesecurity2 authentication framework (see http://dudu.dyn.2-h.org/nist/OMAF.php).
Diffstat (limited to 'noncore/securityplugins/pin/pinpluginimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/securityplugins/pin/pinpluginimpl.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/noncore/securityplugins/pin/pinpluginimpl.cpp b/noncore/securityplugins/pin/pinpluginimpl.cpp new file mode 100644 index 0000000..1c32f81 --- a/dev/null +++ b/noncore/securityplugins/pin/pinpluginimpl.cpp @@ -0,0 +1,28 @@ +#include "pinpluginimpl.h" + +PinPluginImpl::PinPluginImpl() { + pinPlugin = new PinPlugin(); +} + +PinPluginImpl::~PinPluginImpl() { + delete pinPlugin; +} + +MultiauthPluginObject* PinPluginImpl::plugin() { + return pinPlugin; +} + +Q_EXPORT_INTERFACE() { + Q_CREATE_INSTANCE( PinPluginImpl ) +} + +QRESULT PinPluginImpl::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; + +} |