|
1 /* |
|
2 * Copyright (c) 2007-2008 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: common email address object |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CFSMAILADDRESS_H |
|
21 #define CFSMAILADDRESS_H |
|
22 |
|
23 #include <e32std.h> |
|
24 #include <e32base.h> |
|
25 |
|
26 #include "cfsmailcommon.h" |
|
27 |
|
28 /** |
|
29 * email address handling |
|
30 * |
|
31 * @lib FSFWCommonLib |
|
32 * @since S60 v3.1 |
|
33 */ |
|
34 |
|
35 class CFSMailAddress : public CBase |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Two-phased constructor. |
|
41 * |
|
42 */ |
|
43 IMPORT_C static CFSMailAddress* NewL(); |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 * |
|
48 */ |
|
49 IMPORT_C static CFSMailAddress* NewLC(); |
|
50 |
|
51 /** |
|
52 * destructor |
|
53 */ |
|
54 IMPORT_C ~CFSMailAddress(); |
|
55 |
|
56 /** |
|
57 * email address accessor |
|
58 * |
|
59 * @return email address owned by class |
|
60 */ |
|
61 IMPORT_C TDesC& GetEmailAddress() const; |
|
62 |
|
63 /** |
|
64 * email address mutator |
|
65 * |
|
66 * @param aAddress email address to be stored |
|
67 */ |
|
68 IMPORT_C void SetEmailAddress(const TDesC& aAddress); |
|
69 |
|
70 /** |
|
71 * display name accessor |
|
72 * |
|
73 * @return stored display name owned by class |
|
74 */ |
|
75 IMPORT_C TDesC& GetDisplayName() const; |
|
76 |
|
77 /** |
|
78 * display name mutator |
|
79 * |
|
80 * @param aDisplayName display name to be stored |
|
81 */ |
|
82 IMPORT_C void SetDisplayName(const TDesC& aDisplayName); |
|
83 |
|
84 /** |
|
85 * constructor |
|
86 */ |
|
87 CFSMailAddress(); |
|
88 |
|
89 private: |
|
90 |
|
91 |
|
92 /** |
|
93 * Two-phased constructor |
|
94 */ |
|
95 void ConstructL(); |
|
96 |
|
97 private: // data |
|
98 |
|
99 /** |
|
100 * email address |
|
101 */ |
|
102 HBufC *iEmailAddress; |
|
103 |
|
104 /** |
|
105 * display name |
|
106 */ |
|
107 HBufC *iDisplayName; |
|
108 |
|
109 }; |
|
110 |
|
111 #endif |