uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginevoipsubservice.h
branchRCL_3
changeset 22 3104fc151679
parent 21 2b7283837edb
child 23 9a48e301e94b
equal deleted inserted replaced
21:2b7283837edb 22:3104fc151679
     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: t_vimpstenginevoipsubservice.h
       
    15 *
       
    16 */
       
    17 #ifndef _T_VimpstEngineVoipSubService_H_
       
    18 #define _T_VimpstEngineVoipSubService_H_
       
    19 
       
    20 //  EXTERNAL INCLUDES
       
    21 #include <CEUnitTestSuiteClass.h>
       
    22 #include "mvimpstenginecchuieventobserver.h"
       
    23 #include "mvimpstengineserviceconnectioneventobserver.h"
       
    24 
       
    25 class CVIMPSTEngineVOIPSubService;
       
    26 class CVIMPSTEngineCchHandler;
       
    27 class CVIMPSTEngineServiceTableFetcher;
       
    28 //class CVIMPSTEngineCchUiEventObserver;
       
    29 
       
    30 class T_VimpstEngineVoipSubService : 
       
    31     public CEUnitTestSuiteClass,
       
    32     public MVIMPSTEngineServiceConnectionEventObserver
       
    33     {
       
    34     public:
       
    35 
       
    36         static T_VimpstEngineVoipSubService* NewLC();
       
    37         ~T_VimpstEngineVoipSubService();
       
    38 
       
    39     public:     // From observer interface
       
    40            
       
    41         // From MVIMPSTEngineServiceConnectionEventObserver
       
    42         void HandleServceConnectionEventL();
       
    43     private:
       
    44 
       
    45         void ConstructL();
       
    46         void SetupL();
       
    47         void Teardown();
       
    48         
       
    49         // Help methods
       
    50         TInt CreateSpEntryL( TInt aServiceId );
       
    51 
       
    52         // Test methods
       
    53         void T_NewLL();
       
    54         void T_CchEventOccuredLL();
       
    55         void T_DoHandleCchErrorLL();
       
    56         void T_ResolveServiceStateL();
       
    57         void T_SubServiceStateL();
       
    58         void T_TypeL();
       
    59 
       
    60     private:
       
    61 
       
    62         T_VimpstEngineVoipSubService() {};
       
    63 
       
    64     private:
       
    65 
       
    66         CVIMPSTEngineCchHandler* iCchHandler;
       
    67         MVIMPSTEngineCchUiEventObserver* iCchUiEventObserver;
       
    68         CVIMPSTEngineServiceTableFetcher* iServiceTableFetcher;
       
    69         CVIMPSTEngineVOIPSubService* iVoIPSubService;
       
    70         
       
    71         TInt iTestServiceId;
       
    72          
       
    73         EUNIT_DECLARE_TEST_TABLE;
       
    74     };
       
    75 
       
    76 #endif      //  _T_CSCPUtility_H_
       
    77 
       
    78 // end of file