mmsharing/mmshavailability/tsrc/ut_availability/inc/UT_CMusAvaNetworkModeStatus.h
changeset 22 496ad160a278
parent 0 f0cf47e981f9
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_CMUSAVANETWORKMODESTATUS_H__
       
    20 #define __UT_CMUSAVANETWORKMODESTATUS_H__
       
    21 
       
    22 //  EXTERNAL INCLUDES
       
    23 #include <digia/eunit/ceunittestsuiteclass.h>
       
    24 
       
    25 //  INTERNAL INCLUDES
       
    26 #include <e32def.h>
       
    27 #include <e32property.h>
       
    28 
       
    29 #include "musavatelephonystatusobserver.h"
       
    30 
       
    31 //  FORWARD DECLARATIONS
       
    32 class CSipSseTestTls;
       
    33 class CMusAvaTelephonyStatusObserverImp;
       
    34 class CMusAvaNetworkModeStatus;	
       
    35 
       
    36 //  CLASS DEFINITION
       
    37 /**
       
    38  *
       
    39  * EUnitWizard generated test class. 
       
    40  *
       
    41  */
       
    42 class UT_CMusAvaNetworkModeStatus
       
    43      : public CEUnitTestSuiteClass,
       
    44        MMusAvaTelephonyStatusObserver
       
    45     {
       
    46     public:     // Constructors and destructors
       
    47 
       
    48         /**
       
    49          * Two phase construction
       
    50          */
       
    51         static UT_CMusAvaNetworkModeStatus* NewL();
       
    52         static UT_CMusAvaNetworkModeStatus* NewLC();
       
    53         /**
       
    54          * Destructor
       
    55          */
       
    56         ~UT_CMusAvaNetworkModeStatus();
       
    57 
       
    58     private:    // Constructors and destructors
       
    59 
       
    60         UT_CMusAvaNetworkModeStatus();
       
    61         void ConstructL();
       
    62 
       
    63 	public: 	// From MMusAvaTelephonyStatusObserver observer interface
       
    64 	
       
    65         void PhoneNetworkModeStatus( 
       
    66                             RMobilePhone::TMobilePhoneNetworkMode aStatus );
       
    67     
       
    68         void NetworkRegistrationStatus( 
       
    69                 RMobilePhone::TMobilePhoneRegistrationStatus aRegStatus );	
       
    70 
       
    71     private:    // New methods
       
    72 
       
    73         void SetupL();
       
    74 
       
    75         void Teardown();
       
    76 
       
    77         void UT_CMusAvaNetworkModeStatus_NewLL();
       
    78         
       
    79         void UT_CMusAvaNetworkModeStatus_AddAdapterLL();
       
    80 
       
    81         void UT_CMusAvaNetworkModeStatus_RemoveAdapterL();
       
    82         
       
    83         void UT_CMusAvaNetworkModeStatus_PhoneNetworkModeL();
       
    84         
       
    85         void UT_CMusAvaNetworkModeStatus_PhoneNetworkModeStatusL();
       
    86         
       
    87         static TInt Notify( TAny* aPtr );
       
    88 
       
    89 		EUNIT_DECLARE_TEST_TABLE; 
       
    90 		
       
    91 				
       
    92 		CSipSseTestTls* iStorage;
       
    93 		CMusAvaNetworkModeStatus* iNetworkRegistrationStatus;
       
    94 	    CMusAvaTelephonyStatusObserverImp* iObserver;
       
    95 
       
    96         RMobilePhone::TMobilePhoneNetworkMode iNetworkStatus;
       
    97         CPeriodic* iPeriodic;
       
    98     };
       
    99 
       
   100 #endif      //  __UT_CMUSAVANETWORKREGISTRATIONYSTATUS_H__
       
   101 
       
   102 // End of file