messagingapp/msgui/unifiedviewer/inc/univieweraddresscontainer.h
changeset 31 ebfee66fde93
child 34 84197e66a4bd
equal deleted inserted replaced
30:6a20128ce557 31:ebfee66fde93
       
     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 
       
    30 /**
       
    31  * Container widget for all the address widgets
       
    32  */
       
    33 
       
    34 class UniViewerAddressContainer : public HbWidget
       
    35 {
       
    36 Q_OBJECT
       
    37 
       
    38 public:
       
    39 
       
    40     /**
       
    41      * Constructor
       
    42      */
       
    43     explicit UniViewerAddressContainer(QGraphicsItem *parent = 0);
       
    44 
       
    45     /**
       
    46      * Destructor
       
    47      */
       
    48     virtual ~UniViewerAddressContainer();
       
    49 
       
    50     /**
       
    51      * Sets From recipients 
       
    52      * @param fromRecipient list of From recipients
       
    53      */
       
    54     void setFromField(const QString& fromRecipient, const QString& alias);
       
    55 
       
    56     /**
       
    57      * Sets To recipients 
       
    58      * @param toRecipients list of To recipients
       
    59      */
       
    60     void setToField(ConvergedMessageAddressList toRecipients);
       
    61 
       
    62     /**
       
    63      * Sets Cc recipients 
       
    64      * @param ccRecipients list of Cc recipients
       
    65      */
       
    66     void setCcField(ConvergedMessageAddressList ccRecipients);
       
    67 
       
    68     /**
       
    69      * Clears the content of the widget
       
    70      */
       
    71     void clearContent();
       
    72 
       
    73 signals:
       
    74     /**
       
    75      * this signal is emitted when send message is triggered form UniViewerAddressWidget
       
    76      */
       
    77     void sendMessage(const QString& phoneNumber,const QString& alias);
       
    78 
       
    79 private:
       
    80 
       
    81     /**
       
    82      * Main Layout
       
    83      */
       
    84     QGraphicsLinearLayout* mMainLayout;
       
    85 };
       
    86 
       
    87 #endif // UNI_VIEWER_ADDRESS_CONTAINER_H
       
    88 // EOF