equal
deleted
inserted
replaced
|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef NMMAILBOX_H_ |
|
19 #define NMMAILBOX_H_ |
|
20 |
|
21 #include <QExplicitlySharedDataPointer> |
|
22 #include "nmbasedef.h" |
|
23 #include "nmcommon.h" |
|
24 #include "nmaddress.h" |
|
25 |
|
26 |
|
27 class NMBASE_EXPORT NmMailboxPrivate : public QSharedData |
|
28 { |
|
29 public: |
|
30 NmMailboxPrivate(); |
|
31 virtual ~NmMailboxPrivate(); |
|
32 |
|
33 public: |
|
34 NmId mId; |
|
35 QString mName; |
|
36 NmAddress mAddress; |
|
37 }; |
|
38 |
|
39 class NMBASE_EXPORT NmMailbox |
|
40 { |
|
41 public: |
|
42 NmMailbox(); |
|
43 NmMailbox(const NmMailbox &mailbox); |
|
44 NmMailbox(QExplicitlySharedDataPointer<NmMailboxPrivate> mailboxprivate); |
|
45 NmMailbox &operator=(const NmMailbox &mailbox); |
|
46 virtual ~NmMailbox(); |
|
47 NmId id() const; |
|
48 void setId(const NmId &id); |
|
49 QString name() const; |
|
50 void setName(const QString &name); |
|
51 NmAddress address() const; |
|
52 void setAddress(const NmAddress& address); |
|
53 |
|
54 bool operator==(const NmMailbox &mailbox) const; |
|
55 |
|
56 private: |
|
57 QExplicitlySharedDataPointer<NmMailboxPrivate> d; |
|
58 // Using this class as shared data between Symbian and QT data types. |
|
59 friend class CFSMailBoxBase; |
|
60 }; |
|
61 |
|
62 |
|
63 #endif /* NMMAILBOX_H_ */ |
|
64 |
|
65 |
|
66 |
|
67 |