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