mmappfw_plat/mpx_common_api/tsrc/ui_commontestclass/src/testpluginmonitor.cpp
changeset 0 a2952bb97e68
child 1 7f2202662322
equal deleted inserted replaced
-1:000000000000 0:a2952bb97e68
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  MPXPluginMonitor testing implementation (mpxpluginmonitor.h)
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <mpxplaybackplugin.h>
       
    20 
       
    21 #include "commontestclass.h"
       
    22 
       
    23 // Begin CMPXPluginMonitor testing implementation (mpxpluginmonitor.h)============
       
    24 // -----------------------------------------------------------------------------
       
    25 // CCommonTestClass::CreatePluginMonitor()
       
    26 // Returns: Symbian OS errors.
       
    27 // -----------------------------------------------------------------------------
       
    28 TInt CCommonTestClass::CreatePluginMonitorL()
       
    29     {
       
    30 	FTRACE(FPrint(_L("CCommonTestClass::CreatePluginMonitorL testing CMPXPluginMonitor::NewL begin")));
       
    31     iLog->Log(_L("CCommonTestClass::CreatePluginMonitorL testing CMPXPluginMonitor::NewL begin"));
       
    32     TInt err = KErrNone;
       
    33     if ( iPluginMonitor != NULL)
       
    34         {
       
    35         delete iPluginMonitor;
       
    36         }
       
    37     iPluginMonitor = NULL;
       
    38     iPluginMonitor = CMPXPluginMonitor::NewL((TUid)KMPXPlaybackInterfaceUid/*, *this*/);//edit
       
    39 //    iPluginMonitor = CMPXPluginMonitor::NewL((TUid)KMPXPlaybackInterfaceUid, *this);
       
    40     if ( iPluginMonitor == NULL)
       
    41         {
       
    42         err = KErrNotFound;
       
    43         }
       
    44 	FTRACE(FPrint(_L("CCommonTestClass::CreatePluginMonitorL testing CMPXPluginMonitor::NewL end=%d"), err));
       
    45     iLog->Log(_L("CCommonTestClass::CreatePluginMonitorL testing CMPXPluginMonitor::NewL end=%d"), err);
       
    46 	return err;
       
    47     }
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // CCommonTestClass::DeletePluginMonitorL()
       
    51 // Returns: Symbian OS errors.
       
    52 // -----------------------------------------------------------------------------
       
    53 TInt CCommonTestClass::DeletePluginMonitorL()
       
    54     {
       
    55 	FTRACE(FPrint(_L("CCommonTestClass::DeletePluginMonitorL testing CMPXPluginMonitor::~ begin")));
       
    56     iLog->Log(_L("CCommonTestClass::DeletePluginMonitorL testing CMPXPluginMonitor::~ begin"));
       
    57     TInt err = KErrNone;
       
    58     delete iPluginMonitor;
       
    59     iPluginMonitor = NULL;
       
    60 	FTRACE(FPrint(_L("CCommonTestClass::DeletePluginMonitorL testing CMPXPluginMonitor::~ end=%d"), err));
       
    61     iLog->Log(_L("CCommonTestClass::DeletePluginMonitorL testing CMPXPluginMonitor::~ end=%d"), err);
       
    62 	return err;
       
    63     }
       
    64 
       
    65 void CCommonTestClass::PluginsChangedL()
       
    66     {
       
    67     }
       
    68 void CCommonTestClass::HandlePluginUnload(const TUid& /*aPluginUid*/)//add
       
    69 	{
       
    70 	}
       
    71 	
       
    72 // end of CMPXPluginMonitor (mpxpluginmonitor.h) =============================================
       
    73 
       
    74