summaryrefslogtreecommitdiff
path: root/core/obex/obeximpl.cpp
blob: 5bfc77966c63fc71bba63ae1aa054f01ee5ef4d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "obexhandler.h"
#include "obeximpl.h"

using namespace OpieObex;

/* TRANSLATOR OpieObex::ObexImpl */

ObexImpl::ObexImpl() {
    m_handler = new ObexHandler;
}
ObexImpl::~ObexImpl() {
    delete m_handler;
}
QRESULT ObexImpl::queryInterface( const QUuid& uuid, QUnknownInterface **iface ) {
    *iface = 0;
    if ( uuid == IID_QUnknown ) {
        *iface = this;
    }else if ( uuid == IID_ObexInterface )
        *iface = this;

    if (*iface)
        (*iface)->addRef();

    return QS_OK;
}


Q_EXPORT_INTERFACE() {
    Q_CREATE_INSTANCE( ObexImpl )
}