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

mailappletimpl.cpp

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

Generated on Sat Nov 5 16:17:39 2005 for OPIE by  doxygen 1.4.2