messagingapp/msgui/unifiedviewer/inc/univiewerheadercontainer.h
changeset 25 84d9eb65b26f
child 27 e4592d119491
child 37 518b245aa84c
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
       
     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: This widget holds the message header.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef UNIVIEWER_HEADER_CONTAINER_H
       
    19 #define UNIVIEWER_HEADER_CONTAINER_H
       
    20 
       
    21 #include <HbWidget>
       
    22 
       
    23 #include <convergedmessageaddress.h>
       
    24 
       
    25 class UniViewerDetailsWidget;
       
    26 class HbGroupBox;
       
    27 class UniViewerAddressContainer;
       
    28 class UniViewerAttachmentContainer;
       
    29 class UniViewerFeeder;
       
    30 
       
    31 class UniViewerHeaderContainer: public HbWidget
       
    32 {
       
    33 Q_OBJECT
       
    34 
       
    35 public:
       
    36 
       
    37     /**
       
    38      * Constructor
       
    39      */
       
    40     explicit UniViewerHeaderContainer(UniViewerFeeder* feeder, QGraphicsItem *parent = 0);
       
    41 
       
    42     /**
       
    43      * Destructor
       
    44      */
       
    45     ~UniViewerHeaderContainer();
       
    46 
       
    47     /**
       
    48      * Populates the content on the widget
       
    49      */
       
    50     void populateContent();
       
    51 
       
    52     /**
       
    53      * Clears the content on the widget
       
    54      */
       
    55     void clearContent();
       
    56 
       
    57 private:
       
    58 
       
    59     /**
       
    60      * Populates the subject field in Details widget.
       
    61      */
       
    62     void populateSubject();
       
    63 
       
    64     /**
       
    65      * Populates the attachment list in Attachment container.
       
    66      */
       
    67     void populateAttachments();
       
    68 
       
    69     /**
       
    70      * Populates the from, to & cc fields.
       
    71      */
       
    72     void populateAddressContainer();
       
    73 
       
    74     /**
       
    75      * Sets the heading text of the address group box.
       
    76      */
       
    77     void setAddrGroupBoxHeading();
       
    78 
       
    79     /**
       
    80      * Creates a comma seperated address list using converged message address list.
       
    81      * @param addressList Converged message address list.
       
    82      * @return Comma separated address list.
       
    83      */
       
    84     QString createAddressList(const ConvergedMessageAddressList &addressList);
       
    85 
       
    86 private:
       
    87 
       
    88     /**
       
    89      * UniViewerFeeder object
       
    90      * Not Owned
       
    91      */
       
    92     UniViewerFeeder* mViewFeeder;
       
    93 
       
    94     /**
       
    95      * UniViewerDetailsWidget object
       
    96      * Owned
       
    97      */
       
    98     UniViewerDetailsWidget *mViewerDetails;
       
    99 
       
   100     /**
       
   101      * HbGroupBox object
       
   102      * owned.
       
   103      */
       
   104     HbGroupBox *mHeaderGroupBox;
       
   105 
       
   106     /**
       
   107      * UniViewerAddressContainer object
       
   108      * owned.
       
   109      */
       
   110     UniViewerAddressContainer *mAddressContainer;
       
   111 
       
   112     /**
       
   113      * UniViewerAttachmentContainer object
       
   114      * owned.
       
   115      */
       
   116     UniViewerAttachmentContainer *mAttachmentContainer;
       
   117 };
       
   118 
       
   119 #endif /* UNIVIEWER_HEADER_CONTAINER_H */
       
   120 
       
   121 // EOF