|
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_SDP_ATTR_VALUE_DES_H__ ) |
|
20 #define __T_DATA_SDP_ATTR_VALUE_DES_H__ |
|
21 |
|
22 // User Includes |
|
23 #include "T_DataSdpAttrValueList.h" |
|
24 |
|
25 |
|
26 /** |
|
27 * Test Active Notification class |
|
28 * |
|
29 */ |
|
30 class CT_DataSdpAttrValueDES : public CT_DataSdpAttrValueList |
|
31 { |
|
32 public: |
|
33 /** |
|
34 * Two phase constructor |
|
35 */ |
|
36 static CT_DataSdpAttrValueDES* NewL(); |
|
37 |
|
38 /** |
|
39 * Public destructor |
|
40 */ |
|
41 ~CT_DataSdpAttrValueDES(); |
|
42 |
|
43 /** |
|
44 * Process a command read from the ini file |
|
45 * |
|
46 * @param aCommand The command to process |
|
47 * @param aSection The section in the ini containing data for the command |
|
48 * @param aAsyncErrorIndex Command index for async calls to return errors to |
|
49 * |
|
50 * @return ETrue if the command is processed |
|
51 * |
|
52 * @leave System wide error |
|
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 iAttrValueDES; } |
|
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_DataSdpAttrValueDES(); |
|
85 |
|
86 /** |
|
87 * Second phase construction |
|
88 */ |
|
89 void ConstructL(); |
|
90 |
|
91 virtual CSdpAttrValueList* GetSdpAttrValueList() const; |
|
92 |
|
93 private: |
|
94 static void CleanupOperation(TAny* aAny); |
|
95 |
|
96 /** |
|
97 * Helper methods |
|
98 */ |
|
99 void DestroyData(); |
|
100 inline void DoCmdNewDESL(const TDesC& aSection); |
|
101 |
|
102 |
|
103 private: |
|
104 CSdpAttrValueDES* iAttrValueDES; |
|
105 }; |
|
106 #endif /* __T_DATA_SDP_ATTR_VALUE_DES_H__ */ |