|
1 /* |
|
2 * Copyright (c) 2009 - 2010 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef NMAPIEMAILADDRESS_H |
|
19 #define NMAPIEMAILADDRESS_H |
|
20 |
|
21 #include <QExplicitlySharedDataPointer> |
|
22 #include <nmapidef.h> |
|
23 |
|
24 /*! |
|
25 Email address |
|
26 */ |
|
27 |
|
28 class QString; |
|
29 |
|
30 namespace EmailClientApi |
|
31 { |
|
32 |
|
33 class NmApiEmailAddressPrivate; |
|
34 |
|
35 class NMAPI_EXPORT NmApiEmailAddress |
|
36 { |
|
37 public: |
|
38 /*! |
|
39 Constructor for NmApiEmailAddress class |
|
40 */ |
|
41 NmApiEmailAddress(); |
|
42 virtual ~NmApiEmailAddress(); |
|
43 |
|
44 /*! |
|
45 copying constructor for NmApiEmailAddress |
|
46 */ |
|
47 NmApiEmailAddress(const NmApiEmailAddress &addr); |
|
48 |
|
49 /*! |
|
50 Assignment operator |
|
51 */ |
|
52 NmApiEmailAddress &operator=(const NmApiEmailAddress &addr); |
|
53 |
|
54 /*! |
|
55 Compares data from \a addr |
|
56 */ |
|
57 bool operator==(const NmApiEmailAddress &addr); |
|
58 |
|
59 /* |
|
60 getter for displayname |
|
61 */ |
|
62 QString displayName() const; |
|
63 |
|
64 /*! |
|
65 getter for address |
|
66 */ |
|
67 QString address() const; |
|
68 |
|
69 /*! |
|
70 setter for displayname |
|
71 */ |
|
72 void setDisplayName(const QString &displayName); |
|
73 |
|
74 /*! |
|
75 setter for address |
|
76 */ |
|
77 void setAddress(const QString &address); |
|
78 private: |
|
79 QExplicitlySharedDataPointer<NmApiEmailAddressPrivate> d; |
|
80 }; |
|
81 } |
|
82 |
|
83 #endif |