dbgsrv/coredumpserver/test/plugins/testplugin/inc/coredumptestplugin.h
changeset 0 c6b0df440bee
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dbgsrv/coredumpserver/test/plugins/testplugin/inc/coredumptestplugin.h	Tue Mar 02 10:33:16 2010 +0530
@@ -0,0 +1,79 @@
+// Copyright (c) 2007-2009 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:
+// Implements an ECOM Plugin for the purpose of testing the Core Dump Server
+//
+
+
+
+/**
+ @file
+ @internalTechnology
+ @released
+ @see CCoreDumpFormatter
+*/
+
+
+#ifndef CORE_DUMP_TEST_PLUGIN
+#define CORE_DUMP_TEST_PLUGIN
+
+
+// Abstract ECOM API definition
+#include <formatterapi.h>
+
+
+class CCrashDataSave;
+class CCrashDataSource;
+class TCrashInfo;
+
+/** 
+CTestFormatter test class. Only used for internal testing
+*/
+class CTestFormatter : public CCoreDumpFormatter
+{
+public:
+	static CTestFormatter* NewL();
+	static CTestFormatter* NewLC();
+	virtual ~CTestFormatter();
+
+public:
+
+	virtual void ConfigureDataSaveL( CCrashDataSave * aDataSave );
+
+	virtual void ConfigureDataSourceL( CCrashDataSource * aDataSource );
+	
+	virtual void GetDescription( TDes & aPluginDescription );
+
+	virtual void CrashEventL( TCrashInfo* aCrashInfo);
+
+	virtual TInt GetNumberConfigParametersL( );
+
+	virtual COptionConfig * GetConfigParameterL( const TInt aIndex );
+
+	virtual void SetConfigParameterL( const TInt aIndex, const TInt32 & aValue, const TDesC & aDescValue );
+
+	TInt SetToUseFlashDataSource();
+	
+public:
+
+private:
+	void ConstructL();
+	CTestFormatter();
+	
+private:
+	
+	//CCrashDataSource* iDataSource;
+
+};
+
+#endif //