|
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 #ifndef T_RPROPERTYDATA_H |
|
20 #define T_RPROPERTYDATA_H |
|
21 |
|
22 //User Includes |
|
23 #include "datawrapperbase.h" |
|
24 |
|
25 //System includes |
|
26 #include <e32property.h> |
|
27 |
|
28 |
|
29 /** |
|
30 * CT_RPropertyData class |
|
31 * |
|
32 */ |
|
33 class CT_RPropertyData : public CDataWrapperBase |
|
34 { |
|
35 public: |
|
36 ~CT_RPropertyData(); |
|
37 static CT_RPropertyData* NewL(); |
|
38 |
|
39 virtual TAny* GetObject(); |
|
40 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
41 void RunL(CActive* aActive, TInt aIndex); |
|
42 |
|
43 protected: |
|
44 CT_RPropertyData(); |
|
45 void ConstructL(); |
|
46 |
|
47 private: |
|
48 void DoCmdNewL(); |
|
49 void DoCmdGet(const TTEFSectionName& aSection); |
|
50 void DoCmdAttach(const TTEFSectionName& aSection); |
|
51 void DoCmdSubscribe(const TInt aAsyncErrorIndex); |
|
52 void DoCmdDestructor(); |
|
53 |
|
54 private: |
|
55 void DestroyData(); |
|
56 |
|
57 private: |
|
58 RProperty* iProperty; // wrapped object |
|
59 |
|
60 CActiveCallback* iActiveCallback; |
|
61 |
|
62 static const TEnumEntryTable iEnumPropertyKeys[]; |
|
63 }; |
|
64 |
|
65 #endif /*T_RPROPERTYDATA_H*/ |