summaryrefslogtreecommitdiff
path: root/noncore/securityplugins/pin/pinpluginimpl.cpp
Unidiff
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 @@
1#include "pinpluginimpl.h"
2
3PinPluginImpl::PinPluginImpl() {
4 pinPlugin = new PinPlugin();
5}
6
7PinPluginImpl::~PinPluginImpl() {
8 delete pinPlugin;
9}
10
11MultiauthPluginObject* PinPluginImpl::plugin() {
12 return pinPlugin;
13}
14
15Q_EXPORT_INTERFACE() {
16 Q_CREATE_INSTANCE( PinPluginImpl )
17}
18
19QRESULT PinPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) {
20 *iface = 0;
21 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_MultiauthPluginInterface ) ) {
22 *iface = this, (*iface)->addRef();
23 } else {
24 return QE_NOINTERFACE;
25 }
26 return QS_OK;
27
28}