|
1 /* |
|
2 * Copyright (c) 2005-2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #if (!defined __T_CONVERT_TO_SYMBIAN_ERROR_DATA_H__) |
|
20 #define __T_CONVERT_TO_SYMBIAN_ERROR_DATA_H__ |
|
21 |
|
22 // User Includes |
|
23 #include "DataWrapperBase.h" |
|
24 |
|
25 class CT_ConvertToSymbianErrorData : public CDataWrapperBase |
|
26 { |
|
27 public: |
|
28 /** |
|
29 * Public destructor |
|
30 */ |
|
31 ~CT_ConvertToSymbianErrorData(); |
|
32 |
|
33 /** |
|
34 * Two phase constructor |
|
35 */ |
|
36 static CT_ConvertToSymbianErrorData* NewL(); |
|
37 |
|
38 /** |
|
39 * Process a command read from the ini file |
|
40 * |
|
41 * @param aCommand The command to process |
|
42 * @param aSection The section in the ini containing data for the command |
|
43 * @param aAsyncErrorIndex Command index for async calls to return errors to |
|
44 * |
|
45 * @return ETrue if the command is processed |
|
46 * |
|
47 * @leave System wide error |
|
48 */ |
|
49 virtual TBool DoCommandL(const TTEFFunction& aCommand, |
|
50 const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
51 |
|
52 /** |
|
53 * Return a pointer to the object that the data wraps |
|
54 * |
|
55 * @return pointer to the object that the data wraps |
|
56 */ |
|
57 |
|
58 virtual TAny* GetObject(); |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 protected: |
|
64 CT_ConvertToSymbianErrorData(); |
|
65 void ConstructL(); |
|
66 |
|
67 private: |
|
68 |
|
69 inline void DoCmdAvdtpError(const TDesC& aSection); |
|
70 inline void DoCmdGavdpError(const TDesC& aSection); |
|
71 inline void DoCmdA2dpError(const TDesC& aSection); |
|
72 inline void DoCmdVdpError(const TDesC& aSection); |
|
73 }; |
|
74 |
|
75 #endif /* __T_CONVERT_TO_SYMBIAN_ERROR_DATA_H__*/ |