mmappfw_plat/mpx_common_api/tsrc/ui_commontestclass/src/testpluginmonitor.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 07 Jan 2010 12:57:30 +0200
changeset 1 7f2202662322
parent 0 a2952bb97e68
permissions -rw-r--r--
Revision: 20051 Kit: 201001

/*
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  MPXPluginMonitor testing implementation (mpxpluginmonitor.h)
*
*/


#include <mpxplaybackplugin.h>

#include "commontestclass.h"

// Begin CMPXPluginMonitor testing implementation (mpxpluginmonitor.h)============
// -----------------------------------------------------------------------------
// CCommonTestClass::CreatePluginMonitor()
// Returns: Symbian OS errors.
// -----------------------------------------------------------------------------
TInt CCommonTestClass::CreatePluginMonitorL()
    {
	FTRACE(FPrint(_L("CCommonTestClass::CreatePluginMonitorL testing CMPXPluginMonitor::NewL begin")));
    iLog->Log(_L("CCommonTestClass::CreatePluginMonitorL testing CMPXPluginMonitor::NewL begin"));
    TInt err = KErrNone;
    if ( iPluginMonitor != NULL)
        {
        delete iPluginMonitor;
        }
    iPluginMonitor = NULL;
    iPluginMonitor = CMPXPluginMonitor::NewL((TUid)KMPXPlaybackInterfaceUid/*, *this*/);//edit
//    iPluginMonitor = CMPXPluginMonitor::NewL((TUid)KMPXPlaybackInterfaceUid, *this);
    if ( iPluginMonitor == NULL)
        {
        err = KErrNotFound;
        }
	FTRACE(FPrint(_L("CCommonTestClass::CreatePluginMonitorL testing CMPXPluginMonitor::NewL end=%d"), err));
    iLog->Log(_L("CCommonTestClass::CreatePluginMonitorL testing CMPXPluginMonitor::NewL end=%d"), err);
	return err;
    }

// -----------------------------------------------------------------------------
// CCommonTestClass::DeletePluginMonitorL()
// Returns: Symbian OS errors.
// -----------------------------------------------------------------------------
TInt CCommonTestClass::DeletePluginMonitorL()
    {
	FTRACE(FPrint(_L("CCommonTestClass::DeletePluginMonitorL testing CMPXPluginMonitor::~ begin")));
    iLog->Log(_L("CCommonTestClass::DeletePluginMonitorL testing CMPXPluginMonitor::~ begin"));
    TInt err = KErrNone;
    delete iPluginMonitor;
    iPluginMonitor = NULL;
	FTRACE(FPrint(_L("CCommonTestClass::DeletePluginMonitorL testing CMPXPluginMonitor::~ end=%d"), err));
    iLog->Log(_L("CCommonTestClass::DeletePluginMonitorL testing CMPXPluginMonitor::~ end=%d"), err);
	return err;
    }

void CCommonTestClass::PluginsChangedL()
    {
    }
void CCommonTestClass::HandlePluginUnload(const TUid& /*aPluginUid*/)//add
	{
	}
	
// end of CMPXPluginMonitor (mpxpluginmonitor.h) =============================================