|
1 /* |
|
2 * Copyright (c) 2007 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 |
|
20 #ifndef __CMSCONTACTFIELDINFO__ |
|
21 #define __CMSCONTACTFIELDINFO__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <s32std.h> |
|
25 #include "cmscontactbase.h" |
|
26 #include "cmscontactfielditem.h" |
|
27 |
|
28 // CLASS DECLARATION |
|
29 class CCmsContactFieldInfo : public CCmsContactBase |
|
30 { |
|
31 public : |
|
32 |
|
33 /** |
|
34 * Get the enabled contact fields |
|
35 * |
|
36 * @return RArray<CCmsContactFieldItem::TCmsContactField> Array of field IDs |
|
37 */ |
|
38 IMPORT_C const RArray<CCmsContactFieldItem::TCmsContactField>& Fields() const; |
|
39 |
|
40 /** |
|
41 * Destructor |
|
42 */ |
|
43 IMPORT_C ~CCmsContactFieldInfo(); |
|
44 |
|
45 public: |
|
46 |
|
47 /** |
|
48 * Symbian constructor |
|
49 * |
|
50 * @param RCmsContact& Handle to the client-side contact |
|
51 * @return CCmsContactFieldInfo* New class instance |
|
52 */ |
|
53 static CCmsContactFieldInfo* NewL( RCmsContact& aContact ); |
|
54 |
|
55 /** |
|
56 * Symbian constructor |
|
57 * |
|
58 * @param RCmsContact& Handle to the client-side contact |
|
59 * @param TRequestStatus& Request status of the client |
|
60 * @return CCmsContactFieldInfo* New class instance |
|
61 */ |
|
62 static CCmsContactFieldInfo* NewL( RCmsContact& aContact, |
|
63 TRequestStatus& aClientStatus ); |
|
64 |
|
65 private: |
|
66 |
|
67 /** |
|
68 * C++ constructor is private |
|
69 * |
|
70 * @return CCmsContactFieldInfo |
|
71 */ |
|
72 CCmsContactFieldInfo( RCmsContact& aContact ); |
|
73 |
|
74 /** |
|
75 * C++ constructor is private |
|
76 * |
|
77 * @param RCmsContact& Handle to the client-side contact |
|
78 * @param TRequestStatus& Request status of the caller |
|
79 * @return CCmsContactFieldInfo |
|
80 */ |
|
81 CCmsContactFieldInfo( RCmsContact& aContact, |
|
82 TRequestStatus& aClientStatus ); |
|
83 |
|
84 /** |
|
85 * Symbian OS second-phase constructor |
|
86 * |
|
87 * @return void |
|
88 */ |
|
89 void ConstructL(); |
|
90 |
|
91 private: //From CActive |
|
92 |
|
93 /** |
|
94 * Asynchronous operation completes |
|
95 * |
|
96 * @return void |
|
97 */ |
|
98 void RunL(); |
|
99 |
|
100 private : // data |
|
101 |
|
102 TInt iFieldCount; |
|
103 RArray<CCmsContactFieldItem::TCmsContactField> iEnabledFields; |
|
104 }; |
|
105 |
|
106 #endif //__CMSCONTACTFIELD__ |
|
107 |
|
108 |
|
109 // End of File |