|
1 /* |
|
2 * Copyright (c) 2002-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: Manages dynamic properties of the contact |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPBK2CONTACTFIELDDYNAMICPROPERTIES_H |
|
20 #define CPBK2CONTACTFIELDDYNAMICPROPERTIES_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "MPbk2ContactFieldDynamicProperties.h" |
|
24 |
|
25 /** |
|
26 * Contact field dynamic properties. |
|
27 */ |
|
28 NONSHARABLE_CLASS( CPbk2ContactFieldDynamicProperties ) : |
|
29 public CBase, |
|
30 public MPbk2ContactFieldDynamicProperties |
|
31 { |
|
32 public: |
|
33 /** |
|
34 * Constructor. |
|
35 */ |
|
36 static CPbk2ContactFieldDynamicProperties* NewLC(); |
|
37 |
|
38 /** |
|
39 * Destructor. |
|
40 */ |
|
41 ~CPbk2ContactFieldDynamicProperties(); |
|
42 |
|
43 public: // Interface |
|
44 /** |
|
45 * Adds new field resource id to array. |
|
46 * @return KErrNone if field appended successfully otherwise |
|
47 * one of the system wide error codes. |
|
48 * @see RArray::Append |
|
49 */ |
|
50 TInt AddHiddenFieldResourceId( TInt aFieldResId ); |
|
51 |
|
52 public: // From MPbk2ContactFieldDynamicProperties |
|
53 TBool IsHiddenField( const MVPbkBaseContactField& aField ) const; |
|
54 |
|
55 private: // Implementation |
|
56 CPbk2ContactFieldDynamicProperties(); |
|
57 void ConstructL(); |
|
58 |
|
59 private: // data |
|
60 /// Own: array of hidden field type resource ids |
|
61 RArray<TInt> iHiddenFieldResourceIds; |
|
62 }; |
|
63 |
|
64 #endif // CPBK2CONTACTFIELDDYNAMICPROPERTIES_H |
|
65 |
|
66 // End of file |