Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

oappplugin.cpp

Go to the documentation of this file.
00001 #include "oappplugin.h"
00002 #include <qwidget.h>
00003 
00004 OAppPlugin::OAppPlugin(OAppPos pos)
00005 {
00006     m_position = pos;
00007 };
00008 
00009 OAppPlugin::OAppPlugin(QWidget *widget, OAppPos pos)
00010 {
00011     m_widgets.append( widget );
00012     m_position = pos;
00013 };
00014 
00015 OAppPlugin::~OAppPlugin()
00016 {
00017 };
00018 
00019 QList<QWidget> OAppPlugin::widgets()
00020 {
00021     return m_widgets;
00022 };
00023 
00024 OAppPos OAppPlugin::position() const
00025 {
00026     return m_position;
00027 }
00028 
00029 QRESULT OAppPlugin::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
00030 {
00031     *iface = 0;
00032     if ( uuid == IID_QUnknown )
00033         *iface = this;
00034     else if ( uuid == IID_OAppInterface )
00035         *iface = this;
00036 
00037     if ( *iface )
00038         (*iface)->addRef();
00039     return QS_OK;
00040 }

Generated on Sat Nov 5 16:15:28 2005 for OPIE by  doxygen 1.4.2