multimediacommsengine/tsrc/MCETestUI/inc/CMCETestUIEventViewModel.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     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 __CMCETESTUIEVENTVIEWMODEL_H
       
    19 #define __CMCETESTUIEVENTVIEWMODEL_H
       
    20 
       
    21 // INCLUDES
       
    22 
       
    23 #include <bamdesca.h>
       
    24 #include <badesca.h>
       
    25 
       
    26 #include "MMCETestUIEngineCmdProvider.h"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 
       
    30 class CMCETestUIEngine;
       
    31 class CMCETestUIEngineEvent;
       
    32 
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 *  CMCETestUIEventViewModel
       
    38 *  
       
    39 */
       
    40 class CMCETestUIEventViewModel : public MDesCArray
       
    41     {
       
    42 public: // Constructors and destructor
       
    43     
       
    44     static CMCETestUIEventViewModel* NewL( 
       
    45                 CMCETestUIEngine& aEngine,
       
    46                 CMCETestUIEngineEvent& iEvent );
       
    47     
       
    48     /**
       
    49     * Destructor.
       
    50     */
       
    51     ~CMCETestUIEventViewModel();
       
    52     
       
    53 public: // from MDesCArray
       
    54 
       
    55     TInt MdcaCount() const;
       
    56     TPtrC MdcaPoint( TInt aIndex ) const; 
       
    57     
       
    58 public: // New functions
       
    59     
       
    60     MMCETestUIEngineCmdProvider& CmdProvider( TInt aIndex );
       
    61     
       
    62 private: // Constructors 
       
    63 
       
    64     CMCETestUIEventViewModel( CMCETestUIEngine& aEngine,
       
    65                                 CMCETestUIEngineEvent& iEvent );
       
    66     CMCETestUIEventViewModel();
       
    67     
       
    68     void ConstructL();
       
    69   
       
    70 
       
    71 private: // convenience functions
       
    72 
       
    73     void PopulateStreamsL();
       
    74     
       
    75 private: //data
       
    76 
       
    77     CDesCArray* iArray; 
       
    78     CMCETestUIEngine& iEngine;
       
    79     CMCETestUIEngineEvent& iEvent; // Not owned
       
    80     };
       
    81     
       
    82 #endif
       
    83     
       
    84 // End of File