|
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_DATA_RSDP_H__ ) |
|
20 #define __T_DATA_RSDP__H__ |
|
21 |
|
22 // EPOC Includes |
|
23 #include <btsdp.h> |
|
24 |
|
25 // User includes |
|
26 #include "DataWrapperBase.h" |
|
27 |
|
28 /** |
|
29 * Test Active Notification class |
|
30 * |
|
31 */ |
|
32 class CT_DataRSdp : public CDataWrapperBase |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * Two phase constructor |
|
37 */ |
|
38 static CT_DataRSdp* NewL(); |
|
39 |
|
40 /** |
|
41 * Public destructor |
|
42 */ |
|
43 ~CT_DataRSdp(); |
|
44 |
|
45 /** |
|
46 * Process a command read from the ini file |
|
47 * |
|
48 * @param aDataWrapper test step requiring command to be processed |
|
49 * @param aCommand the command to process |
|
50 * @param aSection the entry in the ini file requiring the command to be processed |
|
51 * |
|
52 * @return ETrue if the command is processed |
|
53 */ |
|
54 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
55 |
|
56 /** |
|
57 * Return a pointer to the object that the data wraps |
|
58 * |
|
59 * @return pointer to the object that the data wraps |
|
60 */ |
|
61 virtual TAny* GetObject() { return iRsdp; } |
|
62 |
|
63 /** |
|
64 * Set the object that the data wraps |
|
65 * |
|
66 * @param aObject object that the wrapper is testing |
|
67 * |
|
68 */ |
|
69 virtual void SetObjectL(TAny* aAny); |
|
70 |
|
71 /** |
|
72 * The object will no longer be owned by this |
|
73 * |
|
74 * @leave KErrNotSupported if the the function is not supported |
|
75 */ |
|
76 virtual void DisownObjectL(); |
|
77 |
|
78 inline virtual TCleanupOperation CleanupOperation(); |
|
79 |
|
80 protected: |
|
81 /** |
|
82 * Protected constructor. First phase construction |
|
83 */ |
|
84 CT_DataRSdp(); |
|
85 |
|
86 /** |
|
87 * Second phase construction |
|
88 */ |
|
89 void ConstructL(); |
|
90 |
|
91 private: |
|
92 |
|
93 static void CleanupOperation(TAny* aAny); |
|
94 |
|
95 /** |
|
96 * Helper methods |
|
97 */ |
|
98 void DestroyData(); |
|
99 inline void DoCmdConstructor(); |
|
100 inline void DoCmdConnect(); |
|
101 inline void DoCmdClose(); |
|
102 inline void DoCmdVersion(const TDesC& aSection); |
|
103 inline void DoCmdResourceCountMarkStart(); |
|
104 inline void DoCmdResourceCountMarkEnd(); |
|
105 inline void DoCmdResourceCount(const TDesC& aSection); |
|
106 |
|
107 private: |
|
108 RSdp* iRsdp; |
|
109 }; |
|
110 |
|
111 #endif /* __T_DATA_RSDP_H__*/ |