|
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 UNI_VIEWER_ADDRESS_CONTAINER_H |
|
19 #define UNI_VIEWER_ADDRESS_CONTAINER_H |
|
20 |
|
21 // SYSTEM INCLUDES |
|
22 #include <HbWidget> |
|
23 |
|
24 // USER INCLUDES |
|
25 #include "convergedmessageaddress.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class QGraphicsLinearLayout; |
|
29 class UniViewerAddressWidget; |
|
30 |
|
31 /** |
|
32 * Container widget for all the address widgets |
|
33 */ |
|
34 |
|
35 class UniViewerAddressContainer : public HbWidget |
|
36 { |
|
37 Q_OBJECT |
|
38 |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Constructor |
|
43 */ |
|
44 explicit UniViewerAddressContainer(QGraphicsItem *parent = 0); |
|
45 |
|
46 /** |
|
47 * Destructor |
|
48 */ |
|
49 virtual ~UniViewerAddressContainer(); |
|
50 |
|
51 /** |
|
52 * Sets From recipients |
|
53 * @param fromRecipient list of From recipients |
|
54 */ |
|
55 void setFromField(const QString& fromRecipient, const QString& alias); |
|
56 |
|
57 /** |
|
58 * Sets To recipients |
|
59 * @param toRecipients list of To recipients |
|
60 */ |
|
61 void setToField(ConvergedMessageAddressList toRecipients); |
|
62 |
|
63 /** |
|
64 * Sets Cc recipients |
|
65 * @param ccRecipients list of Cc recipients |
|
66 */ |
|
67 void setCcField(ConvergedMessageAddressList ccRecipients); |
|
68 |
|
69 /** |
|
70 * Clears the content of the widget |
|
71 */ |
|
72 void clearContent(); |
|
73 |
|
74 private: |
|
75 |
|
76 /** |
|
77 * Main layout reference. |
|
78 * Own |
|
79 */ |
|
80 QGraphicsLinearLayout *mMainLayout; |
|
81 |
|
82 /** |
|
83 * From widget reference. |
|
84 * Own |
|
85 */ |
|
86 UniViewerAddressWidget *mFromWidget; |
|
87 |
|
88 /** |
|
89 * To widget reference. |
|
90 * Own |
|
91 */ |
|
92 UniViewerAddressWidget *mToWidget; |
|
93 |
|
94 /** |
|
95 * Cc widget reference. |
|
96 * Own |
|
97 */ |
|
98 UniViewerAddressWidget *mCcWidget; |
|
99 }; |
|
100 |
|
101 #endif // UNI_VIEWER_ADDRESS_CONTAINER_H |
|
102 // EOF |