910 VCXLOGLO2("<<<CIptvTestUtilALR::GetDefaultIap return %D", iap); |
910 VCXLOGLO2("<<<CIptvTestUtilALR::GetDefaultIap return %D", iap); |
911 return iap; |
911 return iap; |
912 } |
912 } |
913 |
913 |
914 // --------------------------------------------------------------------------- |
914 // --------------------------------------------------------------------------- |
|
915 // CIptvTestUtilALR::SetDefaultIapCenRep |
|
916 // --------------------------------------------------------------------------- |
|
917 // |
|
918 EXPORT_C TInt CIptvTestUtilALR::SetDefaultIapCenRep() |
|
919 { |
|
920 TUint32 iap( 0 ); |
|
921 iap = GetDefaultIap(); |
|
922 TInt err( 0 ); |
|
923 |
|
924 if( iap != 0 ) |
|
925 { |
|
926 VCXLOGLO1("CIptvTestUtilALR::SetDefaultIapCenRep Create cenrep."); |
|
927 CRepository* cenRep = CRepository::NewLC( VCXTEST_KIptvAlrCenRepUid ); |
|
928 VCXLOGLO1("CIptvTestUtilALR::SetDefaultIapCenRep Set cenrep."); |
|
929 User::LeaveIfError( cenRep->Set( VCXTEST_KIptvCenRepDefaultIapIdKey, (TInt)iap ) ); |
|
930 CleanupStack::PopAndDestroy( cenRep ); |
|
931 } |
|
932 else |
|
933 { |
|
934 err = KErrNotFound; |
|
935 } |
|
936 |
|
937 return err; |
|
938 } |
|
939 |
|
940 // --------------------------------------------------------------------------- |
|
941 // CIptvTestUtilALR::GetDefaultIap |
|
942 // --------------------------------------------------------------------------- |
|
943 // |
|
944 EXPORT_C TUint32 CIptvTestUtilALR::GetDefaultIapCenRep() |
|
945 { |
|
946 TInt iap( 0 ); |
|
947 |
|
948 VCXLOGLO1("CIptvTestUtilALR::GetDefaultIapCenRep Create cenrep."); |
|
949 CRepository* cenRep = CRepository::NewLC( VCXTEST_KIptvAlrCenRepUid ); |
|
950 VCXLOGLO1("CIptvTestUtilALR::GetDefaultIapCenRep Set cenrep."); |
|
951 User::LeaveIfError( cenRep->Get( VCXTEST_KIptvCenRepDefaultIapIdKey, iap) ); |
|
952 CleanupStack::PopAndDestroy( cenRep ); |
|
953 |
|
954 TUint32 iapId( iap ); |
|
955 |
|
956 return iapId; |
|
957 } |
|
958 |
|
959 // --------------------------------------------------------------------------- |
915 // CIptvTestUtilALR::PrintDestinationL |
960 // CIptvTestUtilALR::PrintDestinationL |
916 // --------------------------------------------------------------------------- |
961 // --------------------------------------------------------------------------- |
917 // |
962 // |
918 void CIptvTestUtilALR::PrintDestinationL( RCmDestinationExt& aDestination ) |
963 void CIptvTestUtilALR::PrintDestinationL( RCmDestinationExt& aDestination ) |
919 { |
964 { |