telephonyserverplugins/common_tsy/test/integration/src/cctsyintegrationtestapncontrollist.cpp
branchRCL_3
changeset 8 3f227a47ad75
parent 0 3553901f7fa8
equal deleted inserted replaced
7:fe8b59ab9fa0 8:3f227a47ad75
  1759 	
  1759 	
  1760 	// Call RMobilePhone::SetAPNControlListServiceStatus 
  1760 	// Call RMobilePhone::SetAPNControlListServiceStatus 
  1761 	RMobilePhone::TAPNControlListServiceStatus serviceApnControlListStatus=RMobilePhone::EAPNControlListServiceEnabled;
  1761 	RMobilePhone::TAPNControlListServiceStatus serviceApnControlListStatus=RMobilePhone::EAPNControlListServiceEnabled;
  1762 	TExtEtelRequestStatus setAPNControlListServiceStatus(mobilePhone, EMobilePhoneSetAPNControlListServiceStatus);
  1762 	TExtEtelRequestStatus setAPNControlListServiceStatus(mobilePhone, EMobilePhoneSetAPNControlListServiceStatus);
  1763 	CleanupStack::PushL(setAPNControlListServiceStatus);
  1763 	CleanupStack::PushL(setAPNControlListServiceStatus);
       
  1764 
       
  1765 	// Verify PIN2 before accessing APN function
       
  1766 	iSimTestHelper.VerifyPin2L(mobilePhone, iNetworkTestHelper);
       
  1767 
  1764 	mobilePhone.SetAPNControlListServiceStatus(setAPNControlListServiceStatus, serviceApnControlListStatus);
  1768 	mobilePhone.SetAPNControlListServiceStatus(setAPNControlListServiceStatus, serviceApnControlListStatus);
  1765 	
  1769 	
  1766 	// Cancel request with RTelSubSessionBase.CancelAsyncRequest( EMobilePhoneSetAPNControlListServiceStatus ); 
  1770 	// Cancel request with RTelSubSessionBase.CancelAsyncRequest( EMobilePhoneSetAPNControlListServiceStatus ); 
  1767 	mobilePhone.CancelAsyncRequest(EMobilePhoneSetAPNControlListServiceStatus);
  1771 	mobilePhone.CancelAsyncRequest(EMobilePhoneSetAPNControlListServiceStatus);
  1768 	
  1772 	
  1928 	TUint32 index=0;
  1932 	TUint32 index=0;
  1929 	RMobilePhone::TAPNEntryV3 myAPnEntry;
  1933 	RMobilePhone::TAPNEntryV3 myAPnEntry;
  1930 	RMobilePhone::TAPNEntryV3Pckg myAPnEntryPckg(myAPnEntry);
  1934 	RMobilePhone::TAPNEntryV3Pckg myAPnEntryPckg(myAPnEntry);
  1931 	TExtEtelRequestStatus getAPNnameStatus(mobilePhone, EMobilePhoneGetAPNname);
  1935 	TExtEtelRequestStatus getAPNnameStatus(mobilePhone, EMobilePhoneGetAPNname);
  1932 	CleanupStack::PushL(getAPNnameStatus);
  1936 	CleanupStack::PushL(getAPNnameStatus);
       
  1937 
       
  1938 	// Verify PIN2 before accessing APN function
       
  1939 	iSimTestHelper.VerifyPin2L(mobilePhone, iNetworkTestHelper);
       
  1940 
  1933 	mobilePhone.GetAPNname(getAPNnameStatus,index, myAPnEntryPckg);
  1941 	mobilePhone.GetAPNname(getAPNnameStatus,index, myAPnEntryPckg);
  1934 	
  1942 	
  1935 	// Cancel request with RTelSubSession::CancelAsyncRequest( EMobilePhoneGetAPNname ); 
  1943 	// Cancel request with RTelSubSession::CancelAsyncRequest( EMobilePhoneGetAPNname ); 
  1936 	mobilePhone.CancelAsyncRequest(EMobilePhoneGetAPNname);
  1944 	mobilePhone.CancelAsyncRequest(EMobilePhoneGetAPNname);
  1937 	
  1945 	
  2014 	TBuf16<20> name = _L("WiFi");
  2022 	TBuf16<20> name = _L("WiFi");
  2015 	myAPnEntry.iApn.Copy(name);
  2023 	myAPnEntry.iApn.Copy(name);
  2016 	RMobilePhone::TAPNEntryV3Pckg myAPnEntryPckg(myAPnEntry);
  2024 	RMobilePhone::TAPNEntryV3Pckg myAPnEntryPckg(myAPnEntry);
  2017 	TExtEtelRequestStatus appendAPNNameStatus(mobilePhone, EMobilePhoneAppendAPNName);
  2025 	TExtEtelRequestStatus appendAPNNameStatus(mobilePhone, EMobilePhoneAppendAPNName);
  2018 	CleanupStack::PushL(appendAPNNameStatus);
  2026 	CleanupStack::PushL(appendAPNNameStatus);
       
  2027 	
       
  2028 	// Verify PIN2 before accessing APN function
       
  2029 	iSimTestHelper.VerifyPin2L(mobilePhone, iNetworkTestHelper);
       
  2030 
  2019 	mobilePhone.AppendAPNName(appendAPNNameStatus, myAPnEntryPckg);
  2031 	mobilePhone.AppendAPNName(appendAPNNameStatus, myAPnEntryPckg);
  2020 	
  2032 	
  2021 	// Cancel request with RTelSubSession::CancelAsyncRequest( EMobilePhoneAppendAPNName ); 
  2033 	// Cancel request with RTelSubSession::CancelAsyncRequest( EMobilePhoneAppendAPNName ); 
  2022 	mobilePhone.CancelAsyncRequest(EMobilePhoneAppendAPNName);
  2034 	mobilePhone.CancelAsyncRequest(EMobilePhoneAppendAPNName);
  2023 	
  2035 	
  2097 
  2109 
  2098 	// Call RMobilePhone::DeleteAPNName
  2110 	// Call RMobilePhone::DeleteAPNName
  2099 	TUint32 index=0;
  2111 	TUint32 index=0;
  2100 	TExtEtelRequestStatus deleteAPNNameStatus(mobilePhone, EMobilePhoneDeleteAPNName);
  2112 	TExtEtelRequestStatus deleteAPNNameStatus(mobilePhone, EMobilePhoneDeleteAPNName);
  2101 	CleanupStack::PushL(deleteAPNNameStatus);
  2113 	CleanupStack::PushL(deleteAPNNameStatus);
       
  2114 
       
  2115 	// Verify PIN2 before accessing APN function
       
  2116 	iSimTestHelper.VerifyPin2L(mobilePhone, iNetworkTestHelper);
       
  2117 
  2102 	mobilePhone.DeleteAPNName(deleteAPNNameStatus, index);
  2118 	mobilePhone.DeleteAPNName(deleteAPNNameStatus, index);
  2103 	
  2119 	
  2104 	// Cancel request with RTelSubSession::CancelAsyncRequest( EMobilePhoneDeleteAPNName ); 
  2120 	// Cancel request with RTelSubSession::CancelAsyncRequest( EMobilePhoneDeleteAPNName ); 
  2105 	mobilePhone.CancelAsyncRequest(EMobilePhoneDeleteAPNName);
  2121 	mobilePhone.CancelAsyncRequest(EMobilePhoneDeleteAPNName);
  2106 	
  2122