multimediacommsengine/tsrc/MCETestUI/inc/CMCETestUISessionViewModel.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 __CMCETESTUISESSIONVIEWMODEL_H
       
    19 #define __CMCETESTUISESSIONVIEWMODEL_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 CMCETestUIEngineSession;
       
    32 
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 *  CMCETestUISessionViewModel
       
    38 *  
       
    39 */
       
    40 class CMCETestUISessionViewModel : public MDesCArray
       
    41     {
       
    42 public: // Constructors and destructor
       
    43     
       
    44     static CMCETestUISessionViewModel* NewL( 
       
    45                 CMCETestUIEngine& aEngine,
       
    46                 CMCETestUIEngineSession& iSession );
       
    47     
       
    48     /**
       
    49     * Destructor.
       
    50     */
       
    51     ~CMCETestUISessionViewModel();
       
    52     
       
    53 public: // from MDesCArray
       
    54 
       
    55     TInt MdcaCount() const;
       
    56     TPtrC MdcaPoint( TInt aIndex ) const; 
       
    57     
       
    58 public: // New functions
       
    59     TInt SelectedAudioStreamIndex( TInt aIndex ) const;
       
    60     TInt SelectedVideoStreamIndex( TInt aIndex ) const;
       
    61     MMCETestUIEngineCmdProvider& CmdProvider( TInt aIndex );
       
    62     
       
    63 private: // Constructors 
       
    64 
       
    65     CMCETestUISessionViewModel( CMCETestUIEngine& aEngine,
       
    66                                 CMCETestUIEngineSession& iSession );
       
    67     CMCETestUISessionViewModel();
       
    68     
       
    69     void ConstructL();
       
    70   
       
    71 
       
    72 private: // convenience functions
       
    73 
       
    74     void PopulateStreamsL();
       
    75     
       
    76     void PopulateVideoStreamsL();
       
    77     
       
    78 private: //data
       
    79 
       
    80     CDesCArray* iArray; 
       
    81     CMCETestUIEngine& iEngine;
       
    82     CMCETestUIEngineSession& iSession; // Not owned
       
    83 	
       
    84 	TBool audioStreamsSuppressed;
       
    85     };
       
    86     
       
    87 #endif
       
    88     
       
    89 // End of File