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

wavpluginimpl.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 "wavplugin.h"
00021 #include "wavpluginimpl.h"
00022 
00023 WavPluginImpl::WavPluginImpl()
00024     : libmadplugin(0), ref(0)
00025 {
00026 }
00027 
00028 
00029 WavPluginImpl::~WavPluginImpl()
00030 {
00031     if ( libmadplugin )
00032   delete libmadplugin;
00033 }
00034 
00035 
00036 MediaPlayerDecoder *WavPluginImpl::decoder()
00037 {
00038     if ( !libmadplugin )
00039   libmadplugin = new WavPlugin;
00040     return libmadplugin;
00041 }
00042 
00043 
00044 MediaPlayerEncoder *WavPluginImpl::encoder()
00045 {
00046     return NULL;
00047 }
00048 
00049 
00050 #ifndef QT_NO_COMPONENT
00051 
00052 
00053 QRESULT WavPluginImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
00054 {
00055     *iface = 0;
00056     if ( ( uuid == IID_QUnknown ) || ( uuid == IID_MediaPlayerPlugin )  )
00057   *iface = this, (*iface)->addRef();
00058     else
00059         return QS_FALSE;
00060     return QS_OK;
00061 }
00062 
00063 
00064 Q_EXPORT_INTERFACE()
00065 {
00066     Q_CREATE_INSTANCE( WavPluginImpl )
00067 }
00068 
00069 
00070 #endif
00071 

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