equal
deleted
inserted
replaced
806 RArray<TCchUiOperationCommand>& aCommandArray, |
806 RArray<TCchUiOperationCommand>& aCommandArray, |
807 TUint aServiceId ) |
807 TUint aServiceId ) |
808 { |
808 { |
809 CCHUIDEBUG( |
809 CCHUIDEBUG( |
810 "CCCHUiNotifierImpl::FillNoConnectionsAvailableListboxL - IN" ); |
810 "CCCHUiNotifierImpl::FillNoConnectionsAvailableListboxL - IN" ); |
811 |
811 |
812 HBufC* connectWhenAv = StringLoader::LoadLC( |
812 HBufC* connectWhenAv = StringLoader::LoadLC( |
813 R_QTN_CCHUINOTIF_CONNECT_WHEN_AV_TEXT ); |
813 R_QTN_CCHUINOTIF_CONNECT_WHEN_AV_TEXT ); |
814 HBufC* searchWlan = StringLoader::LoadLC( |
814 HBufC* searchWlan = StringLoader::LoadLC( |
815 R_QTN_CCHUINOTIF_SEARCH_WLAN_NO_COVERAGE_TEXT ); |
815 R_QTN_CCHUINOTIF_SEARCH_WLAN_NO_COVERAGE_TEXT ); |
816 HBufC* useGprs = StringLoader::LoadLC( |
816 HBufC* useGprs = StringLoader::LoadLC( |
819 // Item is available only for SIP protocol services. |
819 // Item is available only for SIP protocol services. |
820 // Check if service supports SIP/VoIP. |
820 // Check if service supports SIP/VoIP. |
821 TBool sipVoip( EFalse ); |
821 TBool sipVoip( EFalse ); |
822 TRAPD( err, sipVoip = IsSIPVoIPL( aServiceId ) ); |
822 TRAPD( err, sipVoip = IsSIPVoIPL( aServiceId ) ); |
823 |
823 |
824 if ( !err && sipVoip ) |
824 if ( !err && sipVoip && IsVoIPOverWCDMAAllowedL() ) |
825 { |
825 { |
826 aListItems.AppendL( *connectWhenAv ); |
826 aListItems.AppendL( *connectWhenAv ); |
827 aCommandArray.AppendL( ECchUiCommandConnectWhenAvailable ); |
827 aCommandArray.AppendL( ECchUiCommandConnectWhenAvailable ); |
828 } |
828 } |
829 |
829 |
837 aCommandArray.AppendL( ECchUiCommandCopyGprs ); |
837 aCommandArray.AppendL( ECchUiCommandCopyGprs ); |
838 } |
838 } |
839 |
839 |
840 CleanupStack::PopAndDestroy( useGprs ); |
840 CleanupStack::PopAndDestroy( useGprs ); |
841 CleanupStack::PopAndDestroy( searchWlan ); |
841 CleanupStack::PopAndDestroy( searchWlan ); |
842 CleanupStack::PopAndDestroy( connectWhenAv ); |
842 CleanupStack::PopAndDestroy( connectWhenAv ); |
843 |
843 |
844 CCHUIDEBUG( |
844 CCHUIDEBUG( |
845 "CCCHUiNotifierImpl::FillNoConnectionsAvailableListboxL - OUT" ); |
845 "CCCHUiNotifierImpl::FillNoConnectionsAvailableListboxL - OUT" ); |
846 } |
846 } |
847 |
847 |
853 CDesCArray& aListItems, RArray<TCchUiOperationCommand>& aCommandArray ) |
853 CDesCArray& aListItems, RArray<TCchUiOperationCommand>& aCommandArray ) |
854 { |
854 { |
855 CCHUIDEBUG( |
855 CCHUIDEBUG( |
856 "CCCHUiNotifierImpl::FillNoConnectionsDefinedListboxL - IN" ); |
856 "CCCHUiNotifierImpl::FillNoConnectionsDefinedListboxL - IN" ); |
857 |
857 |
|
858 CleanupClosePushL( aCommandArray ); |
|
859 |
858 HBufC* searchWlan = StringLoader::LoadLC( |
860 HBufC* searchWlan = StringLoader::LoadLC( |
859 R_QTN_CCHUINOTIF_SEARCH_WLAN_NOT_DEF_TEXT ); |
861 R_QTN_CCHUINOTIF_SEARCH_WLAN_NOT_DEF_TEXT ); |
860 |
862 |
861 HBufC* useGprs = StringLoader::LoadLC( |
863 HBufC* useGprs = StringLoader::LoadLC( |
862 R_QTN_CCHUINOTIF_USE_GPRS_NOT_DEF_TEXT ); |
864 R_QTN_CCHUINOTIF_USE_GPRS_NOT_DEF_TEXT ); |
871 aCommandArray.AppendL( ECchUiCommandCopyGprs ); |
873 aCommandArray.AppendL( ECchUiCommandCopyGprs ); |
872 } |
874 } |
873 |
875 |
874 CleanupStack::PopAndDestroy( useGprs ); |
876 CleanupStack::PopAndDestroy( useGprs ); |
875 CleanupStack::PopAndDestroy( searchWlan ); |
877 CleanupStack::PopAndDestroy( searchWlan ); |
|
878 CleanupStack::Pop(); |
876 |
879 |
877 CCHUIDEBUG( |
880 CCHUIDEBUG( |
878 "CCCHUiNotifierImpl::FillNoConnectionsDefinedListboxL - OUT" ); |
881 "CCCHUiNotifierImpl::FillNoConnectionsDefinedListboxL - OUT" ); |
879 } |
882 } |
880 |
883 |
884 // |
887 // |
885 void CCCHUiNotifierImpl::FillNoConnectionsFoundListboxL( |
888 void CCCHUiNotifierImpl::FillNoConnectionsFoundListboxL( |
886 CDesCArray& aListItems, RArray<TCchUiOperationCommand>& aCommandArray ) |
889 CDesCArray& aListItems, RArray<TCchUiOperationCommand>& aCommandArray ) |
887 { |
890 { |
888 CCHUIDEBUG( "CCCHUiNotifierImpl::FillNoConnectionsFoundListboxL - IN" ); |
891 CCHUIDEBUG( "CCCHUiNotifierImpl::FillNoConnectionsFoundListboxL - IN" ); |
|
892 |
|
893 CleanupClosePushL( aCommandArray ); |
889 |
894 |
890 HBufC* searchWlan = StringLoader::LoadLC( |
895 HBufC* searchWlan = StringLoader::LoadLC( |
891 R_QTN_CCHUINOTIF_SEARCH_WLAN_NOT_FOUND_TEXT ); |
896 R_QTN_CCHUINOTIF_SEARCH_WLAN_NOT_FOUND_TEXT ); |
892 |
897 |
893 HBufC* useGprs = StringLoader::LoadLC( |
898 HBufC* useGprs = StringLoader::LoadLC( |
903 aCommandArray.AppendL( ECchUiCommandCopyGprs ); |
908 aCommandArray.AppendL( ECchUiCommandCopyGprs ); |
904 } |
909 } |
905 |
910 |
906 CleanupStack::PopAndDestroy( useGprs ); |
911 CleanupStack::PopAndDestroy( useGprs ); |
907 CleanupStack::PopAndDestroy( searchWlan ); |
912 CleanupStack::PopAndDestroy( searchWlan ); |
|
913 CleanupStack::Pop( &aCommandArray ); |
908 |
914 |
909 CCHUIDEBUG( "CCCHUiNotifierImpl::FillNoConnectionsFoundListboxL - OUT" ); |
915 CCHUIDEBUG( "CCCHUiNotifierImpl::FillNoConnectionsFoundListboxL - OUT" ); |
910 } |
916 } |
911 |
917 |
912 // --------------------------------------------------------------------------- |
918 // --------------------------------------------------------------------------- |
916 void CCCHUiNotifierImpl::FillChangeCurrentConnectionListboxL( |
922 void CCCHUiNotifierImpl::FillChangeCurrentConnectionListboxL( |
917 CDesCArray& aListItems, RArray<TCchUiOperationCommand>& aCommandArray ) |
923 CDesCArray& aListItems, RArray<TCchUiOperationCommand>& aCommandArray ) |
918 { |
924 { |
919 CCHUIDEBUG( |
925 CCHUIDEBUG( |
920 "CCCHUiNotifierImpl::FillChangeCurrentConnectionListboxL - IN" ); |
926 "CCCHUiNotifierImpl::FillChangeCurrentConnectionListboxL - IN" ); |
921 |
927 |
922 HBufC* searchWlan = StringLoader::LoadLC( |
928 HBufC* searchWlan = StringLoader::LoadLC( |
923 R_QTN_CCHUINOTIF_SEARCH_WLAN_CHANGE_CURRENT_CONNECTION_TEXT ); |
929 R_QTN_CCHUINOTIF_SEARCH_WLAN_CHANGE_CURRENT_CONNECTION_TEXT ); |
924 |
930 |
925 HBufC* useGprs = StringLoader::LoadLC( |
931 HBufC* useGprs = StringLoader::LoadLC( |
926 R_QTN_CCHUINOTIF_USE_GPRS_CHANGE_CURRENT_CONNECTION_TEXT ); |
932 R_QTN_CCHUINOTIF_USE_GPRS_CHANGE_CURRENT_CONNECTION_TEXT ); |
934 aListItems.AppendL( *useGprs ); |
940 aListItems.AppendL( *useGprs ); |
935 aCommandArray.AppendL( ECchUiCommandCopyGprs ); |
941 aCommandArray.AppendL( ECchUiCommandCopyGprs ); |
936 } |
942 } |
937 |
943 |
938 CleanupStack::PopAndDestroy( useGprs ); |
944 CleanupStack::PopAndDestroy( useGprs ); |
939 CleanupStack::PopAndDestroy( searchWlan ); |
945 CleanupStack::PopAndDestroy( searchWlan ); |
940 |
946 |
941 CCHUIDEBUG( |
947 CCHUIDEBUG( |
942 "CCCHUiNotifierImpl::FillChangeCurrentConnectionListboxL - OUT" ); |
948 "CCCHUiNotifierImpl::FillChangeCurrentConnectionListboxL - OUT" ); |
943 } |
949 } |
944 |
950 |
949 // |
955 // |
950 void CCCHUiNotifierImpl::FillChangeConnectionListboxL( |
956 void CCCHUiNotifierImpl::FillChangeConnectionListboxL( |
951 CDesCArray& aListItems, RArray<TCchUiOperationCommand>& aCommandArray ) |
957 CDesCArray& aListItems, RArray<TCchUiOperationCommand>& aCommandArray ) |
952 { |
958 { |
953 CCHUIDEBUG( "CCCHUiNotifierImpl::FillChangeConnectionListboxL - IN" ); |
959 CCHUIDEBUG( "CCCHUiNotifierImpl::FillChangeConnectionListboxL - IN" ); |
954 |
960 |
955 HBufC* searchWlan = StringLoader::LoadLC( |
961 HBufC* searchWlan = StringLoader::LoadLC( |
956 R_QTN_CCHUINOTIF_SEARCH_WLAN_CHANGE_CONNECTION_TEXT ); |
962 R_QTN_CCHUINOTIF_SEARCH_WLAN_CHANGE_CONNECTION_TEXT ); |
957 |
963 |
958 HBufC* useGprs = StringLoader::LoadLC( |
964 HBufC* useGprs = StringLoader::LoadLC( |
959 R_QTN_CCHUINOTIF_USE_GPRS_CHANGE_CONNECTION_TEXT ); |
965 R_QTN_CCHUINOTIF_USE_GPRS_CHANGE_CONNECTION_TEXT ); |
967 aListItems.AppendL( *useGprs ); |
973 aListItems.AppendL( *useGprs ); |
968 aCommandArray.AppendL( ECchUiCommandCopyGprs ); |
974 aCommandArray.AppendL( ECchUiCommandCopyGprs ); |
969 } |
975 } |
970 |
976 |
971 CleanupStack::PopAndDestroy( useGprs ); |
977 CleanupStack::PopAndDestroy( useGprs ); |
972 CleanupStack::PopAndDestroy( searchWlan ); |
978 CleanupStack::PopAndDestroy( searchWlan ); |
973 |
979 |
974 CCHUIDEBUG( "CCCHUiNotifierImpl::FillChangeConnectionListboxL - OUT" ); |
980 CCHUIDEBUG( "CCCHUiNotifierImpl::FillChangeConnectionListboxL - OUT" ); |
975 } |
981 } |
976 |
982 |
977 // --------------------------------------------------------------------------- |
983 // --------------------------------------------------------------------------- |