summaryrefslogtreecommitdiff
path: root/core/apps/oapp/oappplugin.h
blob: 698d171ffd36ad1ce86b564d70ea1e87bdadebda (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
#ifndef __OAPPPLUGIN_H
#define __OAPPPLUGIN_H

#include "oappinterface.h"
#include <qlist.h>
#include <qpe/quuid.h>

class QWidget;

class OAppPlugin : public OAppInterface
{
public:
    OAppPlugin(OAppPos pos = midPos);
    OAppPlugin(QWidget *widget, OAppPos pos = midPos);
    virtual ~OAppPlugin();

    QList<QWidget> widgets();
    OAppPos position() const;

#ifndef QT_NO_COMPONENT
    QRESULT queryInterface( const QUuid &uuid, QUnknownInterface **iface );
    Q_REFCOUNT
#endif

private:
    QList<QWidget> m_widgets;
    OAppPos m_position;
};

#endif // __OAPPPLUGIN_H