multimediacommsengine/tsrc/MCETestUI/inc/CMCETestUIMainViewModel.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 __CMCETESTUIMAINVIEWMODEL_H
       
    19 #define __CMCETESTUIMAINVIEWMODEL_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 
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 *  CMCETestUIMainViewModel
       
    37 *  
       
    38 */
       
    39 class CMCETestUIMainViewModel : public MDesCArray
       
    40     {
       
    41 public: // Constructors and destructor
       
    42     
       
    43     static CMCETestUIMainViewModel* NewL( CMCETestUIEngine& aEngine );
       
    44     
       
    45     /**
       
    46     * Destructor.
       
    47     */
       
    48     ~CMCETestUIMainViewModel();
       
    49     
       
    50 public: // from MDesCArray
       
    51 
       
    52     TInt MdcaCount() const;
       
    53     TPtrC MdcaPoint( TInt aIndex ) const; 
       
    54     
       
    55 public: // New functions
       
    56 
       
    57     TBool IsManagerSelected( TInt aIndex ) const;
       
    58     TInt SelectedProfileIndex( TInt aIndex ) const;
       
    59     TInt SelectedSessionIndex( TInt aIndex ) const;
       
    60     TInt SelectedEventIndex( TInt aIndex ) const;
       
    61     TInt SelectedReferIndex( TInt aIndex ) const;
       
    62     MMCETestUIEngineCmdProvider& CmdProvider( TInt aIndex );
       
    63     
       
    64 private: // Constructors 
       
    65 
       
    66     CMCETestUIMainViewModel( CMCETestUIEngine& aEngine  );
       
    67     CMCETestUIMainViewModel();
       
    68     
       
    69     void ConstructL();
       
    70   
       
    71 
       
    72 private: // convenience functions
       
    73 
       
    74     void PopulateMainViewManagerL();
       
    75     void PopulateMainViewProfilesL();
       
    76     void PopulateMainViewOutSessionsL();
       
    77     void PopulateMainViewInSessionsL();
       
    78     void PopulateMainViewOutEventsL();
       
    79     void PopulateMainViewInEventsL();
       
    80     void PopulateMainViewOutRefersL();
       
    81     void PopulateMainViewInRefersL();
       
    82     
       
    83     
       
    84 private: //data
       
    85 
       
    86     CDesCArray* iArray; 
       
    87     CMCETestUIEngine& iEngine;
       
    88     
       
    89     TBool managerSuppressed;
       
    90     TBool profilesSuppressed;
       
    91     };
       
    92     
       
    93 #endif
       
    94     
       
    95 // End of File