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

restartappletimpl.cpp

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2000 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of Qtopia Environment.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00015 **
00016 ** Contact info@trolltech.com if any conditions of this licensing are
00017 ** not clear to you.
00018 **
00019 **********************************************************************/
00020 #include "restart.h"
00021 #include "restartappletimpl.h"
00022 
00023 
00024 RestartAppletImpl::RestartAppletImpl()
00025     : restart(0)
00026 {
00027 }
00028 
00029 RestartAppletImpl::~RestartAppletImpl()
00030 {
00031     delete restart;
00032 }
00033 
00034 QWidget *RestartAppletImpl::applet( QWidget *parent )
00035 {
00036     if ( !restart )
00037         restart = new RestartApplet( parent );
00038     return restart;
00039 }
00040 
00041 int RestartAppletImpl::position() const
00042 {
00043     return 6;
00044 }
00045 
00046 QRESULT RestartAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
00047 {
00048     *iface = 0;
00049     if ( uuid == IID_QUnknown )
00050   *iface = this;
00051     else if ( uuid == IID_TaskbarApplet )
00052   *iface = this;
00053     else
00054     return QS_FALSE;
00055 
00056     if ( *iface )
00057   (*iface)->addRef();
00058     return QS_OK;
00059 }
00060 
00061 Q_EXPORT_INTERFACE()
00062 {
00063     Q_CREATE_INSTANCE( RestartAppletImpl )
00064 }
00065 
00066 

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