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

bendimpl.cpp

Go to the documentation of this file.
00001 #include "bendimpl.h"
00002 #include "bend.h"
00003 
00004 BenDImpl::BenDImpl()
00005         : _benD(0), ref(0)
00006 {
00007 
00008 }
00009 
00010 BenDImpl::~BenDImpl()
00011 {
00012         delete _benD;
00013 }
00014 
00015 QWidget *BenDImpl::applet(QWidget *parent)
00016 {
00017         if (!_benD) _benD = new BenD(parent);
00018         return _benD;
00019 }
00020 
00021 int BenDImpl::position() const
00022 {
00023         return 4;
00024 }
00025 
00026 QRESULT BenDImpl::queryInterface(const QUuid &uuid, QUnknownInterface **iface)
00027 {
00028         *iface = 0;
00029         if (uuid == IID_QUnknown) *iface = this;
00030         else if (uuid == IID_TaskbarApplet) *iface = this;
00031 
00032         if (*iface) (*iface)->addRef();
00033         return QS_OK;
00034 }
00035 
00036 Q_EXPORT_INTERFACE()
00037 {
00038         Q_CREATE_INSTANCE(BenDImpl)
00039 }

Generated on Sat Nov 5 16:18:06 2005 for OPIE by  doxygen 1.4.2