mobilemessaging/mmsui/mtminc/CMsgDeliveryItem.h
branchRCL_3
changeset 60 7fdbb852d323
parent 0 72b543305e3a
equal deleted inserted replaced
57:ebe688cedc25 60:7fdbb852d323
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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 *     Encapsulates the data which populates the fields in the message 
       
    16 *     info dialogs (email, sms, bios, mms), also holds the text for the 
       
    17 *     labels and fields in the message info dialog and displays a message 
       
    18 *     info dialog for particular message types
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 
       
    24 #if !defined(__MUIU_DELIVERYITEM_H__)
       
    25 #define __MUIU_DELIVERYITEM_H__
       
    26 
       
    27 
       
    28 //  INCLUDES
       
    29 #include <e32base.h>
       
    30 
       
    31 
       
    32 // DATA TYPES
       
    33 
       
    34 
       
    35 /**
       
    36 * Class which contains the needed data for each message entry. Data is read in delivery status dialog.
       
    37 */
       
    38 class CMsgDeliveryItem : public CBase
       
    39     {
       
    40     public:
       
    41          
       
    42         /**
       
    43         * Enumeration used to indicate entrys status
       
    44         */    
       
    45     enum TMmsStatus
       
    46         {
       
    47         ENone = 0,  // 0 
       
    48         EPending,  
       
    49         EFailed,   
       
    50         EDelivered, 
       
    51         ERead       // 4    
       
    52         };
       
    53     public:
       
    54 
       
    55         /**
       
    56         * Two-phased constructor.
       
    57         */  
       
    58         static CMsgDeliveryItem* NewL();
       
    59 
       
    60         /**
       
    61         * Destructor.
       
    62         */ 
       
    63         ~CMsgDeliveryItem();
       
    64 
       
    65 
       
    66         TTime GetTime();
       
    67 
       
    68         void SetTime(const TTime aTime);
       
    69 
       
    70         TDesC& GetNumber();
       
    71 
       
    72         void SetNumberL(const TDesC& aText);
       
    73 
       
    74         TDesC& GetRecipient();
       
    75 
       
    76         void SetRecipientL(const TDesC& aText);
       
    77 
       
    78         TInt GetStatus();
       
    79 
       
    80         void SetStatus(const TMmsStatus aStatus);
       
    81 
       
    82 
       
    83     private:
       
    84 
       
    85         /**
       
    86         * Default constructor.
       
    87         */
       
    88         CMsgDeliveryItem();
       
    89 
       
    90         /**
       
    91         * Symbian OS constructor.
       
    92         */
       
    93         void ConstructL();
       
    94 
       
    95     private:
       
    96     	TTime iTime;
       
    97     	HBufC* iRecipient;
       
    98     	HBufC* iNumber;
       
    99     	TMmsStatus iStatus; 
       
   100     };
       
   101 
       
   102 #endif // __MUIU_LOGDATA_H__
       
   103 // End of file