mmappfw_plat/mpx_common_api/tsrc/ui_commontestclass/src/testpluginmonitor.cpp
changeset 0 a2952bb97e68
child 1 7f2202662322
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mmappfw_plat/mpx_common_api/tsrc/ui_commontestclass/src/testpluginmonitor.cpp	Thu Dec 17 08:55:47 2009 +0200
@@ -0,0 +1,74 @@
+/*
+* 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) =============================================
+
+    
\ No newline at end of file