|
1 /* |
|
2 * Copyright (c) 2009 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: mail address implementation definition |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef EMAILADDRESS_H |
|
19 #define EMAILADDRESS_H |
|
20 |
|
21 #include <memailaddress.h> |
|
22 #include "emailapiutils.h" |
|
23 |
|
24 using namespace EmailInterface; |
|
25 |
|
26 NONSHARABLE_CLASS( CEmailAddress ) : public CBase, public MEmailAddress |
|
27 { |
|
28 public: |
|
29 static CEmailAddress* NewL( const TRole aRole, const TDataOwner aOwner ); |
|
30 static CEmailAddress* NewLC( const TRole aRole, const TDataOwner aOwner ); |
|
31 |
|
32 ~CEmailAddress(); |
|
33 |
|
34 public: // from MEmailInterface |
|
35 virtual TEmailTypeId InterfaceId() const; |
|
36 |
|
37 virtual void Release(); |
|
38 |
|
39 public: // from MEmailAddress |
|
40 virtual void SetAddressL( const TDesC& aAddress ); |
|
41 virtual TPtrC Address() const; |
|
42 |
|
43 virtual void SetDisplayNameL( const TDesC& aDisplayName ); |
|
44 virtual TPtrC DisplayName() const; |
|
45 |
|
46 virtual TRole Role() const; |
|
47 virtual void SetRole( const TRole aRole ); |
|
48 |
|
49 private: |
|
50 CEmailAddress( const TRole aRole, const TDataOwner aOwner ); |
|
51 |
|
52 private: |
|
53 RBuf iAddress; |
|
54 RBuf iDisplayName; |
|
55 TRole iRole; |
|
56 TDataOwner iOwner; |
|
57 }; |
|
58 |
|
59 #endif // EMAILADDRESS_H |
|
60 |
|
61 // End of file |