messagingapp/msgui/unifiedviewer/inc/univieweraddresscontainer.h
changeset 23 238255e8b033
child 25 84d9eb65b26f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/messagingapp/msgui/unifiedviewer/inc/univieweraddresscontainer.h	Fri Apr 16 14:56:15 2010 +0300
@@ -0,0 +1,102 @@
+/*
+ * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:
+ *
+ */
+
+#ifndef UNI_VIEWER_ADDRESS_CONTAINER_H
+#define UNI_VIEWER_ADDRESS_CONTAINER_H
+
+// SYSTEM INCLUDES
+#include <HbWidget>
+
+// USER INCLUDES
+#include "convergedmessageaddress.h"
+
+// FORWARD DECLARATIONS
+class QGraphicsLinearLayout;
+class UniViewerAddressWidget;
+
+/**
+ * Container widget for all the address widgets
+ */
+
+class UniViewerAddressContainer : public HbWidget
+{
+Q_OBJECT
+
+public:
+
+    /**
+     * Constructor
+     */
+    explicit UniViewerAddressContainer(QGraphicsItem *parent = 0);
+
+    /**
+     * Destructor
+     */
+    virtual ~UniViewerAddressContainer();
+
+    /**
+     * Sets From recipients 
+     * @param fromRecipient list of From recipients
+     */
+    void setFromField(const QString& fromRecipient, const QString& alias);
+
+    /**
+     * Sets To recipients 
+     * @param toRecipients list of To recipients
+     */
+    void setToField(ConvergedMessageAddressList toRecipients);
+
+    /**
+     * Sets Cc recipients 
+     * @param ccRecipients list of Cc recipients
+     */
+    void setCcField(ConvergedMessageAddressList ccRecipients);
+
+    /**
+     * Clears the content of the widget
+     */
+    void clearContent();
+
+private:
+
+    /**
+     * Main layout reference.
+     * Own
+     */
+    QGraphicsLinearLayout *mMainLayout;
+
+    /**
+     * From widget reference.
+     * Own
+     */
+    UniViewerAddressWidget *mFromWidget;
+
+    /**
+     * To widget reference.
+     * Own
+     */
+    UniViewerAddressWidget *mToWidget;
+
+    /**
+     * Cc widget reference.
+     * Own
+     */
+    UniViewerAddressWidget *mCcWidget;
+};
+
+#endif // UNI_VIEWER_ADDRESS_CONTAINER_H
+// EOF