Diffstat (limited to 'noncore/securityplugins/blueping/bluepingpluginimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/securityplugins/blueping/bluepingpluginimpl.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/noncore/securityplugins/blueping/bluepingpluginimpl.cpp b/noncore/securityplugins/blueping/bluepingpluginimpl.cpp new file mode 100644 index 0000000..f7b1bfc --- a/dev/null +++ b/noncore/securityplugins/blueping/bluepingpluginimpl.cpp | |||
@@ -0,0 +1,28 @@ | |||
1 | #include "bluepingpluginimpl.h" | ||
2 | |||
3 | BluepingPluginImpl::BluepingPluginImpl() { | ||
4 | bluepingPlugin = new BluepingPlugin(); | ||
5 | } | ||
6 | |||
7 | BluepingPluginImpl::~BluepingPluginImpl() { | ||
8 | delete bluepingPlugin; | ||
9 | } | ||
10 | |||
11 | MultiauthPluginObject* BluepingPluginImpl::plugin() { | ||
12 | return bluepingPlugin; | ||
13 | } | ||
14 | |||
15 | Q_EXPORT_INTERFACE() { | ||
16 | Q_CREATE_INSTANCE( BluepingPluginImpl ) | ||
17 | } | ||
18 | |||
19 | QRESULT BluepingPluginImpl::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 | } | ||