|
1 /* |
|
2 * Copyright (c) 2006-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: Virtual Phonebook VCard attribute handler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CVPBKVCARDATTRIBUTEHANDLER_H |
|
21 #define CVPBKVCARDATTRIBUTEHANDLER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <VPbkFieldType.hrh> |
|
25 |
|
26 class MVPbkContactAttribute; |
|
27 |
|
28 NONSHARABLE_CLASS( CVPbkVCardAttributeHandler ) : public CBase |
|
29 { |
|
30 public: |
|
31 static CVPbkVCardAttributeHandler* NewL(); |
|
32 |
|
33 ~CVPbkVCardAttributeHandler(); |
|
34 |
|
35 public: // interface |
|
36 /** |
|
37 * Decides whether to create an attribute from aParameter or not. |
|
38 * @param aParameter Field type parameter |
|
39 * @return ETrue if creates the attribute, otherwise EFalse. |
|
40 */ |
|
41 TBool CreateAttributeL( TVPbkFieldTypeParameter aParameter ); |
|
42 |
|
43 /** |
|
44 * Returns the created attribute or NULL. |
|
45 * The ownership does not transfer. |
|
46 * @return Created attribute or NULL |
|
47 */ |
|
48 MVPbkContactAttribute* Attribute() const; |
|
49 |
|
50 private: // implementation |
|
51 CVPbkVCardAttributeHandler(); |
|
52 |
|
53 private: // data |
|
54 |
|
55 /// Own: attribute |
|
56 MVPbkContactAttribute* iAttribute; |
|
57 }; |
|
58 |
|
59 #endif // CVPBKVCARDATTRIBUTEHANDLER_H |
|
60 //End of file |