multimediacommsengine/tsrc/MCETestUI/inc/CMCETestUIAppUi.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 
       
    19 ////////////////////////////////////////////////////////////////////////
       
    20 //
       
    21 // CMCETestUIAppUi
       
    22 //
       
    23 ////////////////////////////////////////////////////////////////////////
       
    24 
       
    25 #ifndef __MCETESTUIAPPUI_H
       
    26 #define __MCETESTUIAPPUI_H
       
    27 
       
    28 //System Includes
       
    29 #include <aknviewappui.h>
       
    30 #include <eikmenup.h>
       
    31 #include <eikbctrl.h>
       
    32 #include <eiktxlbx.h>
       
    33 #include <eiktxlbm.h>
       
    34 #include <barsread.h>
       
    35 #include <coemain.h>
       
    36 #include <aknlists.h>
       
    37 
       
    38 #include <aknviewappui.h>// AppUi()
       
    39 #include <aknlists.h>
       
    40 #include <akngloballistquery.h>
       
    41 #include <aknselectionlist.h>
       
    42 #include <AknNoteWrappers.h>
       
    43 #include <AknQueryDialog.h>
       
    44 #include <AknProgressDialog.h>
       
    45 #include <AknWaitNoteWrapper.h> 
       
    46 #include <AknGlobalNote.h>
       
    47 
       
    48 //Eik
       
    49 #include <eikenv.h>
       
    50 #include <eikmenup.h> //DynInitMenuPaneL
       
    51 
       
    52 //
       
    53 #include <barsread.h> //TResourceReader
       
    54 #include <StringLoader.h>
       
    55 
       
    56 #include "MMCETestUIUserInterface.h"
       
    57 #include "CMCETestUIQuestionSingleSelection.h"
       
    58 #include "CMCETestUIQuestionDataQuery.h"
       
    59 #include "CMCETestUIEngine.h"
       
    60 //User Includes
       
    61 #include "MCETestUI.hrh"
       
    62 #include <MCETestUI.rsg>
       
    63 
       
    64 
       
    65 //FORWARD DECLARATIONS
       
    66 class CMCETestUIEngine;
       
    67 class CMCETestUIAppView;
       
    68 class CMCETestUISessionView;
       
    69 class CMCETestUIStreamView;
       
    70 class TSessionParams;
       
    71 class TEventParams;
       
    72 class TSessionEstablishValues;
       
    73 class TSessionResponseValues;
       
    74 class TReferParams;
       
    75 class CMCETestUIActivityManager;
       
    76 
       
    77 class CMCETestUIAppUi : public CAknViewAppUi, public MMCETestUIUserInterface	
       
    78     {
       
    79 	public:
       
    80 	    CMCETestUIAppUi( CMCETestUIEngine& aEngine ); 
       
    81 	    void ConstructL();
       
    82 		~CMCETestUIAppUi();
       
    83 
       
    84 
       
    85 	public: // from class MMCETestUIUserInterface
       
    86 	
       
    87         void EngineStateChangedL();
       
    88         void NotifyUser( const TDesC& aMessage );
       
    89         void NotifyUserWaitL ( const TDesC& aMessage );
       
    90         TInt AskQuestionL( const CMCETestUIQuestionSingleSelection& aQuestion );
       
    91         void AskQuestionL( CMCETestUIQuestionDataQuery& aQuestion );
       
    92         TBool SessionParamsL(TSessionParams &aSessionParams,TSessionType aSessionType);        	    				;
       
    93         TBool EventParamsL(TEventParams &aEventParams);
       
    94         TBool ReferParamsL(TReferParams &aReferParams);
       
    95         TBool ReferToParamsL(TReferParams &aReferParams);
       
    96         TBool SessionResponseValues(TSessionResponseValues &responseValues);
       
    97         TBool SessionEstablishValues(TSessionEstablishValues &sessionValues);
       
    98         TBool NotifyValues(TNotifyValues &notifyValues);
       
    99         void ChangeToMainViewL();
       
   100         void CreateMceSettingsL();
       
   101         void CreateMceValueSettingsL();
       
   102         TBool IsVideoEnabled();
       
   103         void EnableVideo();
       
   104         void DisableVideo();
       
   105         TBool StartDTMFToneL( TChar& aChar );
       
   106         
       
   107         TBool SendDTMFToneL( TChar& aChar, TInt& aInterval );
       
   108         
       
   109         TBool SendDTMFToneSequenceL( TDes& aSequence );
       
   110         
       
   111         TBool GetIapIdL( TInt &aNumber);
       
   112         
       
   113         TBool GetCodecTypeL( TInt &aNumber);
       
   114         
       
   115         void ShowCurrentCryptoContextsL(TBool aCrypto32,TBool aCrypto80);
       
   116         
       
   117         void ShowSupportedCryptoContextsL(TBool aCrypto32,TBool aCrypto80);
       
   118         
       
   119         void GetCryptoContextsL(TBool& aCrypto32,TBool& aCrypto80);
       
   120         
       
   121         TRect GetRect();
       
   122 
       
   123         TInt iCurrentSessionViewIndex;
       
   124         TInt iCurrentStreamViewIndex;
       
   125         
       
   126         TInt iEnableVideo;
       
   127 	private: // Inherited from class CEikAppUi
       
   128 		void HandleCommandL(TInt aCommand);
       
   129 		
       
   130 		void ProcessCommandL(TInt aCommand);
       
   131         
       
   132         
       
   133     protected:
       
   134 	    //From CCoeEnv
       
   135 	    //void HandleForegroundEventL(TBool aForeground);
       
   136 
       
   137     private: // C++ default contructor
       
   138     
       
   139         CMCETestUIAppUi(); // Not implemented 
       
   140 
       
   141 	private: // Data
       
   142 	
       
   143 		CMCETestUIAppView* iMainView;
       
   144 		CMCETestUISessionView* iSessionView;
       
   145 		CMCETestUIStreamView* iStreamView;
       
   146 	    CMCETestUIEngine& iEngine;
       
   147 	    CMCETestUIActivityManager* iActivityManager;
       
   148 		
       
   149 	};
       
   150 
       
   151 
       
   152 #endif