summaryrefslogtreecommitdiff
path: root/noncore/securityplugins/pin/pinpluginimpl.cpp
Side-by-side diff
Diffstat (limited to 'noncore/securityplugins/pin/pinpluginimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/securityplugins/pin/pinpluginimpl.cpp28
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;
+
+}