messagingappbase/mce/inc/MceDeliveryReportAdapter.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002 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 *     This class formats data from engine to listbox
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CMceDeliveryReportAdapter_H
       
    22 #define CMceDeliveryReportAdapter_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <bamdesca.h>  // MDesCArray
       
    26 #include <e32base.h>
       
    27 #include <ConeResLoader.h>
       
    28 #include <cntdef.h>
       
    29 #include <logwrap.h>
       
    30 #include <bldvariant.hrh>
       
    31 
       
    32 // FORWARD DECLARATIONS
       
    33 class CMceLogEngine;
       
    34 class CEikFormattedCellListBox;
       
    35 
       
    36 class CPNGNumberGrouping;
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 class CMceDeliveryReportAdapter : public CBase, public MDesCArray
       
    41     {
       
    42     public:  // Constructors and destructor
       
    43 
       
    44         /**
       
    45          *  Two-phased constructor.
       
    46          */
       
    47         static CMceDeliveryReportAdapter* NewL( CMceLogEngine* aModel, CEikFormattedCellListBox *aListBox );
       
    48 
       
    49         /**
       
    50          *  Destructor.
       
    51          */
       
    52         virtual ~CMceDeliveryReportAdapter();
       
    53 
       
    54     private:
       
    55         /**
       
    56          *  C++ default constructor.
       
    57          */
       
    58         CMceDeliveryReportAdapter( CMceLogEngine* aModel, CEikFormattedCellListBox *aListBox );
       
    59 
       
    60         /**
       
    61          *  Symbian OS constructor.
       
    62          */
       
    63         void ConstructL();
       
    64 
       
    65     private: // from MDesCArray
       
    66 
       
    67         /**
       
    68          *  Returns number of entries
       
    69          *
       
    70          *  @return TInt
       
    71          */
       
    72         TInt MdcaCount() const;
       
    73 
       
    74         /**
       
    75          *  Returns a TPtrC related with the position given by aIndex
       
    76          *
       
    77          *  @param  TInt    aIndex
       
    78          *  @return TPtrC16 pointer to element
       
    79          */
       
    80         TPtrC16 MdcaPoint( TInt aIndex ) const;
       
    81 
       
    82     private: //data
       
    83 
       
    84         /// Ref: Reference to model
       
    85         CMceLogEngine* iModel;
       
    86 
       
    87         /// Own: Resource loader
       
    88         RConeResourceLoader iResourceLoader;
       
    89 
       
    90         /// Own: Conversion buffer
       
    91         HBufC*  iBuffer;
       
    92         /// Own: pointer to time buffer
       
    93         HBufC*  iTimeText;
       
    94         /// Own: pointer to "pending" buffer
       
    95         HBufC*  iPendingText;       
       
    96         /// Own: pointer to "read" buffer
       
    97         HBufC*  iRead;       
       
    98         /// Own: pointer to "failed" buffer
       
    99         HBufC*  iFailedText;
       
   100         /// Own: pointer to "delivered" buffer
       
   101         HBufC*  iDeliveredText;
       
   102         /// Own: pointer to time format buffer
       
   103         HBufC*  iTimeFormat;
       
   104         /// Own: pointer to time date format buffer
       
   105         HBufC*  iTimeDateFormat;
       
   106         /// Own: buffer for standard string
       
   107         TLogString iFailed;
       
   108         /// Own: buffer for standard string
       
   109         TLogString iPending;
       
   110         /// Own: array of conc. items
       
   111         CArrayFixFlat<TInt>* iConcItems;
       
   112         /// Own: buffer for conc. items
       
   113         HBufC* iConcText;
       
   114         /// Own: interval between home and universal time
       
   115         TTimeIntervalMinutes iInterval;
       
   116 
       
   117         /// Own: pointer to number grouping class
       
   118         CPNGNumberGrouping* iNumberGrouping;
       
   119 
       
   120         /// Ref: reference to listbox
       
   121         CEikFormattedCellListBox *iListBox;
       
   122     };
       
   123 
       
   124 #endif  // CMceDeliveryReportAdapter_H
       
   125 
       
   126 // End of File