summaryrefslogtreecommitdiff
path: root/core/apps/oapp/oappplugin.cpp
Side-by-side diff
Diffstat (limited to 'core/apps/oapp/oappplugin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/oapp/oappplugin.cpp43
1 files changed, 43 insertions, 0 deletions
diff --git a/core/apps/oapp/oappplugin.cpp b/core/apps/oapp/oappplugin.cpp
new file mode 100644
index 0000000..934594f
--- a/dev/null
+++ b/core/apps/oapp/oappplugin.cpp
@@ -0,0 +1,43 @@
+#include "oappinterface.h"
+#include "oappplugin.h"
+#include <qlist.h>
+#include <qwidget.h>
+#include <qpe/quuid.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;
+}