telephonyserverplugins/common_tsy/test/integration/inc/tnetworktsytesthelper.h
changeset 0 3553901f7fa8
child 15 fc69e1e37771
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef TNETWORKTSYTESTHELPER_H
       
    17 #define TNETWORKTSYTESTHELPER_H
       
    18 
       
    19 
       
    20 
       
    21 #include "ttsytesthelperbase.h"
       
    22 
       
    23 enum TOperatorName
       
    24 	{
       
    25 	EOperatorO2,
       
    26 	EOperatorVodafone,
       
    27 	EOperatorOrange,
       
    28 	EOperatorTMobile,
       
    29 	EOperatorElisa,
       
    30 	EOperatorDNA,
       
    31 	EOperatorSonera,
       
    32 	EOperatorAnite,
       
    33 	EOperatorUnknown
       
    34 	};
       
    35 	
       
    36 class TNetworkTsyTestHelper : public TTsyTestHelperBase
       
    37 	{
       
    38 public:
       
    39 	
       
    40 	TNetworkTsyTestHelper(CCTSYIntegrationTestSuiteStepBase& aTestStep);
       
    41 
       
    42 	void WaitForMobilePhoneNotifyModeChange( 
       
    43 				RMobilePhone& aMobilePhone,
       
    44 				TEtelRequestBase& aRequestStatus,
       
    45 				RMobilePhone::TMobilePhoneNetworkMode& aNetworkMode, 
       
    46 				RMobilePhone::TMobilePhoneNetworkMode aExpectedNetworkMode,
       
    47 				TInt aWantedStatus );
       
    48 
       
    49 	void WaitForMobilePhoneNotifyNetworkInvScanChange( 
       
    50 				RMobilePhone& aMobilePhone,
       
    51 				TEtelRequestBase& aRequestStatus,
       
    52 				RMobilePhone::TMobilePhoneInvestigationScan& aSetting, 
       
    53 				RMobilePhone::TMobilePhoneInvestigationScan aExpectedSetting,
       
    54 				TInt aWantedStatus );
       
    55 
       
    56 	void WaitForMobilePhoneNotifyNetworkInvScanEvent( 
       
    57 				RMobilePhone& aMobilePhone,
       
    58 				TEtelRequestBase& aRequestStatus,
       
    59 				RMobilePhone::TMobilePhoneInvestigationScanEvent& aEvent, 
       
    60 				RMobilePhone::TMobilePhoneInvestigationScanEvent aExpectedEvent,
       
    61 				TInt aWantedStatus );
       
    62 
       
    63 	void WaitForMobilePhoneNotifyNetworkRegistrationStatusChange( 
       
    64 				RMobilePhone& aMobilePhone,
       
    65 				TEtelRequestBase& aRequestStatus,
       
    66 				RMobilePhone::TMobilePhoneRegistrationStatus& aStatus, 
       
    67 				RMobilePhone::TMobilePhoneRegistrationStatus aExpectedStatus,
       
    68 				TInt aWantedStatus );
       
    69 
       
    70 	void WaitForMobilePhoneNotifyNetworkSecurityLevelChange( 
       
    71 				RMobilePhone& aMobilePhone,
       
    72 				TEtelRequestBase& aRequestStatus,
       
    73 				RMobilePhone::TMobilePhoneNetworkSecurity& aSecurity, 
       
    74 				RMobilePhone::TMobilePhoneNetworkSecurity aExpectedSecurity,
       
    75 				TInt aWantedStatus );
       
    76 
       
    77 	void WaitForMobilePhoneNotifyPreferredNetworksListChange( 
       
    78 				TEtelRequestBase& aRequestStatus,
       
    79 				TInt aWantedStatus );
       
    80 
       
    81 	void WaitForMobilePhoneNotifyCurrentNetworkChange( 
       
    82 				RMobilePhone& aMobilePhone,
       
    83 				TEtelRequestBase& aRequestStatus,
       
    84 				TCmpBase<RMobilePhone::TMobilePhoneNetworkInfoV1> &aMobilePhoneNetworkInfoV1,
       
    85 				TInt aWantedStatus );
       
    86 
       
    87 	void WaitForMobilePhoneNotifyCurrentNetworkChange( 
       
    88 				RMobilePhone& aMobilePhone,
       
    89 				TEtelRequestBase& aRequestStatus,
       
    90 				TCmpBase<RMobilePhone::TMobilePhoneNetworkInfoV2> &aMobilePhoneNetworkInfoV2,
       
    91 				TInt aWantedStatus );
       
    92 
       
    93 	void WaitForMobilePhoneNotifyCurrentNetworkChange( 
       
    94 				RMobilePhone& aMobilePhone,
       
    95 				TEtelRequestBase& aRequestStatus,
       
    96 				TCmpBase<RMobilePhone::TMobilePhoneNetworkInfoV5> &aMobilePhoneNetworkInfoV5,
       
    97 				TInt aWantedStatus );
       
    98 
       
    99 	void WaitForMobilePhoneNotifyCurrentNetworkChange( 
       
   100 				RMobilePhone& aMobilePhone,
       
   101 				TEtelRequestBase& aRequestStatus,
       
   102 				TCmpBase<RMobilePhone::TMobilePhoneNetworkInfoV1> &aMobilePhoneNetworkInfoV1,
       
   103 				RMobilePhone::TMobilePhoneLocationAreaV1 &aArea,
       
   104 				TInt aWantedStatus );
       
   105 
       
   106 	void WaitForMobilePhoneNotifyCurrentNetworkChange( 
       
   107 				RMobilePhone& aMobilePhone,
       
   108 				TEtelRequestBase& aRequestStatus,
       
   109 				TCmpBase<RMobilePhone::TMobilePhoneNetworkInfoV2> &aMobilePhoneNetworkInfoV2,
       
   110 				RMobilePhone::TMobilePhoneLocationAreaV1 &aArea,
       
   111 				TInt aWantedStatus );
       
   112 
       
   113 	void WaitForMobilePhoneNotifyCurrentNetworkChange( 
       
   114 				RMobilePhone& aMobilePhone,
       
   115 				TEtelRequestBase& aRequestStatus,
       
   116 				TCmpBase<RMobilePhone::TMobilePhoneNetworkInfoV5> &aMobilePhoneNetworkInfoV5,
       
   117 				RMobilePhone::TMobilePhoneLocationAreaV1 &aArea,
       
   118 				TInt aWantedStatus );
       
   119 
       
   120 	void WaitForMobilePhoneNotifyAPNListChanged( 
       
   121 				TEtelRequestBase& aRequestStatus,
       
   122 				TInt aWantedStatus );
       
   123 
       
   124 	void WaitForMobilePhoneNotifyAPNControlListServiceStatusChange( 
       
   125 				RMobilePhone& aMobilePhone,
       
   126 				TEtelRequestBase& aRequestStatus,
       
   127 				RMobilePhone::TAPNControlListServiceStatus& aAPNControlListServiceStatus, 
       
   128 				RMobilePhone::TAPNControlListServiceStatus aExpectedAPNControlListServiceStatus,
       
   129 				TInt aWantedStatus );
       
   130 				
       
   131 	void WaitForMobilePhoneNotifyNetworkSelectionSettingChange( 
       
   132 				RMobilePhone& aMobilePhone,
       
   133 				TEtelRequestBase& aRequestStatus,
       
   134 				RMobilePhone::TMobilePhoneNetworkSelectionV1 &aNetSel,
       
   135 				RMobilePhone::TMobilePhoneSelectionMethod aDesiredMethod,
       
   136 				TInt aWantedStatus );
       
   137 
       
   138 	TInt GetCurrentNetworkL( RMobilePhone& aPhone, 
       
   139 			RMobilePhone::TMobilePhoneNetworkInfoV1Pckg& aPhoneNetwork, 
       
   140 			RMobilePhone::TMobilePhoneLocationAreaV1& aArea,
       
   141 			TOperatorName& aOperatorName);
       
   142 
       
   143 	
       
   144 	TInt GetNetworkRegistrationStatusL( RMobilePhone& aPhone, 
       
   145 							RMobilePhone::TMobilePhoneRegistrationStatus &aRegistrationStatus );
       
   146 							
       
   147 							
       
   148 	TInt WaitForRegisteredOnHomeNetworkL( RMobilePhone& aPhone );
       
   149 	void CheckPhoneConnectedToAniteL(RMobilePhone &aPhone);
       
   150 
       
   151 	void GetNetworkPasswordsSectionL(RMobilePhone& aPhone, const TDesC*& aNetworkSection);
       
   152 
       
   153 	}; // class TNetworkTsyTestHelper 
       
   154 
       
   155 #endif