mmsharing/mmshavailability/tsrc/ut_availability/inc/UT_CMusAvaContactAvailability.h
changeset 22 496ad160a278
equal deleted inserted replaced
15:ccd8e69b5392 22:496ad160a278
       
     1 /*
       
     2 * Copyright (c) 2004 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 #ifndef __UT_CMUSAVACONTACTAVAILABILITY_H__
       
    20 #define __UT_CMUSAVACONTACTAVAILABILITY_H__
       
    21 
       
    22 #include <mussettingskeys.h>
       
    23 
       
    24 //  EXTERNAL INCLUDES
       
    25 #include <digia/eunit/ceunittestsuiteclass.h>
       
    26 
       
    27 //  INTERNAL INCLUDES
       
    28 #include <e32def.h>
       
    29 #include <cntdef.h>
       
    30 
       
    31 //  FORWARD DECLARATIONS
       
    32 class CMusAvaAvailabilityObserverImp;
       
    33 class CMusAvaContactAvailability;
       
    34 class CSipSseTestTls;
       
    35 class CMusAvaSettingsImp;
       
    36 class CContactTextField;
       
    37 class CPbkContactItem;
       
    38 class CPbkContactEngine;
       
    39 
       
    40 
       
    41 //  CLASS DEFINITION
       
    42 /**
       
    43  *
       
    44  * EUnitWizard generated test class. 
       
    45  *
       
    46  */
       
    47 class UT_CMusAvaContactAvailability
       
    48      : public CEUnitTestSuiteClass
       
    49     {
       
    50     public:     // Constructors and destructors
       
    51 
       
    52         /**
       
    53          * Two phase construction
       
    54          */
       
    55         static UT_CMusAvaContactAvailability* NewL();
       
    56         static UT_CMusAvaContactAvailability* NewLC();
       
    57         /**
       
    58          * Destructor
       
    59          */
       
    60         ~UT_CMusAvaContactAvailability();
       
    61 
       
    62     private:    // Constructors and destructors
       
    63 
       
    64         UT_CMusAvaContactAvailability();
       
    65         void ConstructL();
       
    66 
       
    67 	public: 	// From observer interface
       
    68 		
       
    69 		
       
    70 
       
    71     private:    // New methods
       
    72 
       
    73         void SetupL();
       
    74         
       
    75         void SetupOpSpecificL();
       
    76 
       
    77         void Teardown();
       
    78 
       
    79         void UT_CMusAvaController_NewLL();   
       
    80 		
       
    81         void UT_CMusAvaController_DoExecuteLL();
       
    82          		
       
    83         void UT_CMusAvaController_DoExecuteL1_L();
       
    84          		
       
    85         void UT_CMusAvaController_DoExecuteL2_L();
       
    86         
       
    87          void UT_CMusAvaController_DoExecuteL3_L();
       
    88          		
       
    89         void UT_CMusAvaController_NameL();
       
    90           
       
    91         void UT_CMusAvaController_StatusL();
       
    92         
       
    93         void UT_CMusAvaController_StopL();
       
    94         
       
    95         void UT_CMusAvaController_ActiveCallLL();   
       
    96         
       
    97         void UT_CMusAvaController_ActiveCallLOpSpecificL();   
       
    98         
       
    99         void UT_CMusAvaController_ContactLL();
       
   100         
       
   101         void UT_CMusAvaController_ContactArrayLL();
       
   102         
       
   103         void UT_CMusAvaController_ContactItemL();   
       
   104         
       
   105         void UT_CMusAvaController_PhoneResulutionLL();         
       
   106                     
       
   107         void UT_CMusAvaController_ContactIdL();
       
   108        
       
   109         void UT_CMusAvaController_ContactIdSearchL();
       
   110 
       
   111         void UT_CMusAvaController_ResolveAddressesLL();
       
   112         
       
   113         void UT_CMusAvaController_ResolveAddressesLOpSpecificL();
       
   114        
       
   115         void UT_CMusAvaController_ResolvePhoneContactLL();   
       
   116         
       
   117         void UT_CMusAvaController_ResolvePhoneContactLOpSpecificL();  
       
   118 
       
   119         void UT_CMusAvaController_IsExistAlreadyL();    
       
   120         
       
   121         void UT_CMusAvaController_UpdateContactNameLL();
       
   122         
       
   123     private:    // Data
       
   124 
       
   125 		EUNIT_DECLARE_TEST_TABLE; 
       
   126 		
       
   127 		CMusAvaAvailabilityObserverImp* iAvailabilityObserver;
       
   128 		
       
   129 		CMusAvaSettingsImp* iConcreteSettings;
       
   130 		
       
   131 		CMusAvaContactAvailability* iContactAvailability;
       
   132 				
       
   133 		CSipSseTestTls* iStorage;		
       
   134 		
       
   135 		MusSettingsKeys::TOperatorVariant iSaveOperatorVariant;
       
   136 		
       
   137     };
       
   138 
       
   139 #endif      //  __UT_CMUSAVACONTACTAVAILABILITY_H__
       
   140 
       
   141 // End of file