|
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 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 @released |
|
20 */ |
|
21 |
|
22 #ifndef TEST_DATA_SAVE_H |
|
23 #define TEST_DATA_SAVE_H |
|
24 #include <e32std.h> |
|
25 #include <crashdatasave.h> |
|
26 |
|
27 class CTestDataSave : public CCrashDataSave |
|
28 { |
|
29 public: |
|
30 void OpenL( const TDesC& aParam ){ Open( aParam ); }; |
|
31 TInt Open( const TDesC& aParam ); |
|
32 void CloseL( ){ Close(); }; |
|
33 TInt Close( ); |
|
34 |
|
35 // Save aData - binary |
|
36 void WriteL( const TDesC8& aData ){ Write( aData ); }; |
|
37 TInt Write( const TDesC8& aData ); |
|
38 |
|
39 // Save aData - raw |
|
40 void WriteL( TAny* aData, TUint aSize ) { Write( aData, aSize ); }; |
|
41 TInt Write( TAny* aData, TUint aSize ); |
|
42 |
|
43 // Save aData at the specific position - binary |
|
44 // need implementation |
|
45 void WriteL( TInt aPos, const TDesC8& aData ){ Write( aPos, aData); }; |
|
46 TInt Write( TInt aPos, const TDesC8& aData ); |
|
47 |
|
48 // Save aData at the specific position - raw |
|
49 void WriteL( TInt aPos, TAny* aData, TUint aSize ){ Write( aPos, aData, aSize ); }; |
|
50 TInt Write( TInt aPos, TAny* aData, TUint aSize ); |
|
51 |
|
52 void GetDescription( TDes & aPluginDescription ) |
|
53 { |
|
54 (void)aPluginDescription; |
|
55 }; |
|
56 |
|
57 TInt GetNumberConfigParametersL( ) {return 0;}; |
|
58 COptionConfig * GetConfigParameterL( const TInt aIndex ) |
|
59 { |
|
60 (void)aIndex; |
|
61 return NULL; |
|
62 }; |
|
63 void SetConfigParameterL( const TInt aIndex, const TInt32 & aValue, const TDesC & aDescValue ) |
|
64 { |
|
65 (void)aIndex; |
|
66 (void)aValue; |
|
67 (void)aDescValue; |
|
68 }; |
|
69 |
|
70 const TDesC& GetMediaName() { return KNullDesC; }; |
|
71 |
|
72 public: |
|
73 static CTestDataSave* NewL(); |
|
74 virtual ~CTestDataSave(); |
|
75 |
|
76 RBuf8 iData; |
|
77 |
|
78 void Print() const; |
|
79 |
|
80 }; |
|
81 #endif |