summaryrefslogtreecommitdiff
path: root/core/apps/oapp/oappplugin.cpp
blob: 82cc59b707bdcf2e3c4e2819f71a72a33f962dca (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
31
32
33
34
35
36
37
38
39
40
#include "oappplugin.h"
#include <qwidget.h>

OAppPlugin::OAppPlugin(OAppPos pos)
{
    m_position = pos;
};

OAppPlugin::OAppPlugin(QWidget *widget, OAppPos pos)
{
    m_widgets.append( widget );
    m_position = pos;
};

OAppPlugin::~OAppPlugin()
{
};

QList<QWidget> OAppPlugin::widgets()
{
    return m_widgets;
};

OAppPos OAppPlugin::position() const
{
    return m_position;
}

QRESULT OAppPlugin::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
{
    *iface = 0;
    if ( uuid == IID_QUnknown )
        *iface = this;
    else if ( uuid == IID_OAppInterface )
        *iface = this;

    if ( *iface )
        (*iface)->addRef();
    return QS_OK;
}