1043 aTDuration.iTimeUnit = RSat::ENoDurationAvailable; |
1043 aTDuration.iTimeUnit = RSat::ENoDurationAvailable; |
1044 TInt returnValue( |
1044 TInt returnValue( |
1045 aBerTlv.TlvByTagValue( &duration, KTlvDurationTag ) ); |
1045 aBerTlv.TlvByTagValue( &duration, KTlvDurationTag ) ); |
1046 if ( KErrNotFound != returnValue ) |
1046 if ( KErrNotFound != returnValue ) |
1047 { |
1047 { |
1048 TUint8 durationTimeUnit = duration.GetShortInfo( ETLV_TimeUnit ); |
1048 // Check if Duration TLV has real data |
1049 switch ( durationTimeUnit ) |
1049 if ( duration.GetLength() ) |
1050 { |
1050 { |
1051 case KMinutes: |
1051 TUint8 durationTimeUnit( duration.GetShortInfo( ETLV_TimeUnit ) ); |
1052 { |
1052 switch ( durationTimeUnit ) |
1053 // Minutes |
1053 { |
1054 aTDuration.iTimeUnit = RSat::EMinutes; |
1054 case KMinutes: |
1055 break; |
1055 { |
1056 } |
1056 // Minutes |
1057 case KSeconds: |
1057 aTDuration.iTimeUnit = RSat::EMinutes; |
1058 { |
1058 break; |
1059 // Seconds |
1059 } |
1060 aTDuration.iTimeUnit = RSat::ESeconds; |
1060 case KSeconds: |
1061 break; |
1061 { |
1062 } |
1062 // Seconds |
1063 case KTenthsOfSeconds: |
1063 aTDuration.iTimeUnit = RSat::ESeconds; |
1064 { |
1064 break; |
1065 // Tenths of seconds |
1065 } |
1066 aTDuration.iTimeUnit = RSat::ETenthsOfSeconds; |
1066 case KTenthsOfSeconds: |
1067 break; |
1067 { |
1068 } |
1068 // Tenths of seconds |
1069 default: |
1069 aTDuration.iTimeUnit = RSat::ETenthsOfSeconds; |
1070 { |
1070 break; |
1071 aTDuration.iTimeUnit = RSat::ETimeUnitNotSet; |
1071 } |
1072 } |
1072 default: |
1073 } |
1073 { |
1074 // Time interval |
1074 aTDuration.iTimeUnit = RSat::ETimeUnitNotSet; |
1075 aTDuration.iNumOfUnits = duration.GetShortInfo( ETLV_TimeInteval ); |
1075 break; |
|
1076 } |
|
1077 } |
|
1078 // Time interval |
|
1079 aTDuration.iNumOfUnits = |
|
1080 duration.GetShortInfo( ETLV_TimeInteval ); |
|
1081 } |
1076 } |
1082 } |
1077 } |
1083 } |
1078 |
1084 |
1079 // ----------------------------------------------------------------------------- |
1085 // ----------------------------------------------------------------------------- |
1080 // TSatUtility::FillIconStructure |
1086 // TSatUtility::FillIconStructure |