dbgsrv/coredumpserver/test/plugins/testplugin/inc/coredumptestplugin.h
changeset 0 c6b0df440bee
equal deleted inserted replaced
-1:000000000000 0:c6b0df440bee
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Implements an ECOM Plugin for the purpose of testing the Core Dump Server
       
    15 //
       
    16 
       
    17 
       
    18 
       
    19 /**
       
    20  @file
       
    21  @internalTechnology
       
    22  @released
       
    23  @see CCoreDumpFormatter
       
    24 */
       
    25 
       
    26 
       
    27 #ifndef CORE_DUMP_TEST_PLUGIN
       
    28 #define CORE_DUMP_TEST_PLUGIN
       
    29 
       
    30 
       
    31 // Abstract ECOM API definition
       
    32 #include <formatterapi.h>
       
    33 
       
    34 
       
    35 class CCrashDataSave;
       
    36 class CCrashDataSource;
       
    37 class TCrashInfo;
       
    38 
       
    39 /** 
       
    40 CTestFormatter test class. Only used for internal testing
       
    41 */
       
    42 class CTestFormatter : public CCoreDumpFormatter
       
    43 {
       
    44 public:
       
    45 	static CTestFormatter* NewL();
       
    46 	static CTestFormatter* NewLC();
       
    47 	virtual ~CTestFormatter();
       
    48 
       
    49 public:
       
    50 
       
    51 	virtual void ConfigureDataSaveL( CCrashDataSave * aDataSave );
       
    52 
       
    53 	virtual void ConfigureDataSourceL( CCrashDataSource * aDataSource );
       
    54 	
       
    55 	virtual void GetDescription( TDes & aPluginDescription );
       
    56 
       
    57 	virtual void CrashEventL( TCrashInfo* aCrashInfo);
       
    58 
       
    59 	virtual TInt GetNumberConfigParametersL( );
       
    60 
       
    61 	virtual COptionConfig * GetConfigParameterL( const TInt aIndex );
       
    62 
       
    63 	virtual void SetConfigParameterL( const TInt aIndex, const TInt32 & aValue, const TDesC & aDescValue );
       
    64 
       
    65 	TInt SetToUseFlashDataSource();
       
    66 	
       
    67 public:
       
    68 
       
    69 private:
       
    70 	void ConstructL();
       
    71 	CTestFormatter();
       
    72 	
       
    73 private:
       
    74 	
       
    75 	//CCrashDataSource* iDataSource;
       
    76 
       
    77 };
       
    78 
       
    79 #endif //