adaptationlayer/tsy/nokiatsy_dll/src/cmmsmsgsmaddress.cpp
changeset 9 8486d82aef45
parent 5 8ccc39f9d787
equal deleted inserted replaced
8:6295dc2169f3 9:8486d82aef45
    62         (
    62         (
    63         //None
    63         //None
    64         )
    64         )
    65     {
    65     {
    66 TFLOGSTRING("TSY: CMmSmsGsmAddress::CMmSmsGsmAddress");
    66 TFLOGSTRING("TSY: CMmSmsGsmAddress::CMmSmsGsmAddress");
    67 OstTrace0( TRACE_NORMAL, CMMSMSGSMADDRESS_CMMSMSGSMADDRESS, "CMmSmsGsmAddress::CMmSmsGsmAddress" );
    67 OstTrace0( TRACE_NORMAL,  CMMSMSGSMADDRESS_CMMSMSGSMADDRESS_TD, "CMmSmsGsmAddress::CMmSmsGsmAddress" );
    68     //none
    68     //none
    69     }
    69     }
    70 
    70 
    71 // -----------------------------------------------------------------------------
    71 // -----------------------------------------------------------------------------
    72 // CMmSmsGsmAddress::GsmConvUnicodeTo0340Addr
    72 // CMmSmsGsmAddress::GsmConvUnicodeTo0340Addr
    82         TDes8& aDest,           //Service center address
    82         TDes8& aDest,           //Service center address
    83         TDesC16 const& aSource  //Telephone number
    83         TDesC16 const& aSource  //Telephone number
    84         )    
    84         )    
    85     {
    85     {
    86 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmConvUnicodeTo0340Addr");
    86 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmConvUnicodeTo0340Addr");
    87 OstTrace0( TRACE_NORMAL, CMMSMSGSMADDRESS_GSMCONVUNICODETO0340ADDR, "CMmSmsGsmAddress::GsmConvUnicodeTo0340Addr" );
    87 OstTrace0( TRACE_NORMAL,  CMMSMSGSMADDRESS_GSMCONVUNICODETO0340ADDR_TD, "CMmSmsGsmAddress::GsmConvUnicodeTo0340Addr" );
    88     
    88     
    89     if ( 0 != aSource.Length() )
    89     if ( 0 != aSource.Length() )
    90         {
    90         {
    91         GsmConvUnicodeToAddr( aTon, aNpi, aDest, aSource, ETrue );  
    91         GsmConvUnicodeToAddr( aTon, aNpi, aDest, aSource, ETrue );  
    92         }
    92         }
   113         RMobilePhone::TMobileTON& aTon,         //Type of number
   113         RMobilePhone::TMobileTON& aTon,         //Type of number
   114         RMobilePhone::TMobileNPI& aNpi          //Telephone number
   114         RMobilePhone::TMobileNPI& aNpi          //Telephone number
   115         )
   115         )
   116     {
   116     {
   117 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmConv0340AddrToUnicode");
   117 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmConv0340AddrToUnicode");
   118 OstTrace0( TRACE_NORMAL, CMMSMSGSMADDRESS_GSMCONV0340ADDRTOUNICODE, "CMmSmsGsmAddress::GsmConv0340AddrToUnicode" );
   118 OstTrace0( TRACE_NORMAL,  CMMSMSGSMADDRESS_GSMCONV0340ADDRTOUNICODE_TD, "CMmSmsGsmAddress::GsmConv0340AddrToUnicode" );
   119     
   119     
   120     if ( KAddressMinLength <= aSource.Length() ) 
   120     if ( KAddressMinLength <= aSource.Length() ) 
   121         {
   121         {
   122         //Address length and address type fields included
   122         //Address length and address type fields included
   123         GsmConvAddrToUnicode( aDest, aSource, aTon, aNpi, ETrue );
   123         GsmConvAddrToUnicode( aDest, aSource, aTon, aNpi, ETrue );
   145         TDes8& aDest,           //Service center address
   145         TDes8& aDest,           //Service center address
   146         TDesC16 const& aSource  //Telephone number
   146         TDesC16 const& aSource  //Telephone number
   147         )
   147         )
   148     { 
   148     { 
   149 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmConvUnicodeTo0411Addr");
   149 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmConvUnicodeTo0411Addr");
   150 OstTrace0( TRACE_NORMAL, CMMSMSGSMADDRESS_GSMCONVUNICODETO0411ADDR, "CMmSmsGsmAddress::GsmConvUnicodeTo0411Addr" );
   150 OstTrace0( TRACE_NORMAL,  CMMSMSGSMADDRESS_GSMCONVUNICODETO0411ADDR_TD, "CMmSmsGsmAddress::GsmConvUnicodeTo0411Addr" );
   151     
   151     
   152     if ( 0 != aSource.Length() )
   152     if ( 0 != aSource.Length() )
   153         {
   153         {
   154         GsmConvUnicodeToAddr( aTon, aNpi, aDest, aSource, EFalse );
   154         GsmConvUnicodeToAddr( aTon, aNpi, aDest, aSource, EFalse );
   155         }
   155         }
   173         RMobilePhone::TMobileTON& aTon,     //Type of number
   173         RMobilePhone::TMobileTON& aTon,     //Type of number
   174         RMobilePhone::TMobileNPI& aNpi      //Numbering plan identification
   174         RMobilePhone::TMobileNPI& aNpi      //Numbering plan identification
   175         )
   175         )
   176     {
   176     {
   177 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmConv0411AddrToUnicode");
   177 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmConv0411AddrToUnicode");
   178 OstTrace0( TRACE_NORMAL, CMMSMSGSMADDRESS_GSMCONV0411ADDRTOUNICODE, "CMmSmsGsmAddress::GsmConv0411AddrToUnicode" );
   178 OstTrace0( TRACE_NORMAL,  CMMSMSGSMADDRESS_GSMCONV0411ADDRTOUNICODE_TD, "CMmSmsGsmAddress::GsmConv0411AddrToUnicode" );
   179     
   179     
   180     if ( KAddressMinLength <= aSource.Length() )
   180     if ( KAddressMinLength <= aSource.Length() )
   181         {
   181         {
   182         //Address length and address type fields included
   182         //Address length and address type fields included
   183         GsmConvAddrToUnicode( aDest, aSource, aTon, aNpi, EFalse );
   183         GsmConvAddrToUnicode( aDest, aSource, aTon, aNpi, EFalse );
   206         TDesC16 const& aSource,  //Telephone number
   206         TDesC16 const& aSource,  //Telephone number
   207         TBool a0340Address       //GSM 03.40 address
   207         TBool a0340Address       //GSM 03.40 address
   208         )
   208         )
   209     { 
   209     { 
   210 TFLOGSTRING4("TSY: CMmSmsGsmAddress::GsmConvUnicodeToAddr - number type: %d, numbering plan: %d, number: %S", aTon, aNpi, &aSource);
   210 TFLOGSTRING4("TSY: CMmSmsGsmAddress::GsmConvUnicodeToAddr - number type: %d, numbering plan: %d, number: %S", aTon, aNpi, &aSource);
   211 OstTraceExt3( TRACE_NORMAL, CMMSMSGSMADDRESS_GSMCONVUNICODETOADDR, "CMmSmsGsmAddress::GsmConvUnicodeToAddr;aTon=%hhu;aNpi=%hhu;aSource=%S", aTon, aNpi, aSource );
   211 OstTraceExt3( TRACE_NORMAL,  CMMSMSGSMADDRESS_GSMCONVUNICODETOADDR_TD, "CMmSmsGsmAddress::GsmConvUnicodeToAddr;aTon=%hhu;aNpi=%hhu;aSource=%S", aTon, aNpi, aSource );
   212 TFLOGSTRING2("TSY: CMmSmsGsmAddress::GsmConvUnicodeToAddr - GSM 03.40 address: %d", a0340Address);
   212 TFLOGSTRING2("TSY: CMmSmsGsmAddress::GsmConvUnicodeToAddr - GSM 03.40 address: %d", a0340Address);
   213 OstTraceExt1( TRACE_NORMAL, DUP1_CMMSMSGSMADDRESS_GSMCONVUNICODETOADDR, "CMmSmsGsmAddress::GsmConvUnicodeToAddr;a0340Address=%hhu", a0340Address );
   213 OstTraceExt1( TRACE_NORMAL,  DUP1_CMMSMSGSMADDRESS_GSMCONVUNICODETOADDR_TD, "CMmSmsGsmAddress::GsmConvUnicodeToAddr;a0340Address=%hhu", a0340Address );
   214     
   214     
   215     //get address length (always < 255)
   215     //get address length (always < 255)
   216     TUint8 numberLength( static_cast< TUint8 >( aSource.Length() ) );
   216     TUint8 numberLength( static_cast< TUint8 >( aSource.Length() ) );
   217     TUint8 destLength( numberLength );
   217     TUint8 destLength( numberLength );
   218     TInt i( 0 );
   218     TInt i( 0 );
   355         RMobilePhone::TMobileNPI& aNpi,         //Telephone number
   355         RMobilePhone::TMobileNPI& aNpi,         //Telephone number
   356         TBool a0340Address                      //GSM 03.40 address
   356         TBool a0340Address                      //GSM 03.40 address
   357         )
   357         )
   358     {
   358     {
   359 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmConvAddrToUnicode");
   359 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmConvAddrToUnicode");
   360 OstTrace0( TRACE_NORMAL, CMMSMSGSMADDRESS_GSMCONVADDRTOUNICODE, "CMmSmsGsmAddress::GsmConvAddrToUnicode" );
   360 OstTrace0( TRACE_NORMAL,  CMMSMSGSMADDRESS_GSMCONVADDRTOUNICODE_TD, "CMmSmsGsmAddress::GsmConvAddrToUnicode" );
   361     
   361     
   362     TUint8  addrDataLength( 0 );
   362     TUint8  addrDataLength( 0 );
   363     TBool   halfs( ETrue );
   363     TBool   halfs( ETrue );
   364     TInt    index( 0 );               
   364     TInt    index( 0 );               
   365     TUint   num2( 0 );
   365     TUint   num2( 0 );
   450                     }
   450                     }
   451                 } // if ( aSource.Length() > index )
   451                 } // if ( aSource.Length() > index )
   452             } // while
   452             } // while
   453         }
   453         }
   454 TFLOGSTRING4("TSY: CMmSmsGsmAddress::GsmConvAddrToUnicode - result: number type: %d, numbering plan: %d, number: %S", aTon, aNpi, &aDest);
   454 TFLOGSTRING4("TSY: CMmSmsGsmAddress::GsmConvAddrToUnicode - result: number type: %d, numbering plan: %d, number: %S", aTon, aNpi, &aDest);
   455 OstTraceExt3( TRACE_NORMAL, DUP1_CMMSMSGSMADDRESS_GSMCONVADDRTOUNICODE, "CMmSmsGsmAddress::GsmConvAddrToUnicode;aTon=%d;aNpi=%d;aDest=%S", aTon, aNpi, aDest );
   455 OstTraceExt3( TRACE_NORMAL,  DUP1_CMMSMSGSMADDRESS_GSMCONVADDRTOUNICODE_TD, "CMmSmsGsmAddress::GsmConvAddrToUnicode;aTon=%d;aNpi=%d;aDest=%S", aTon, aNpi, aDest );
   456 TFLOGSTRING2("TSY: CMmSmsGsmAddress::GsmConvAddrToUnicode - GSM 03.40 address", a0340Address);
   456 TFLOGSTRING2("TSY: CMmSmsGsmAddress::GsmConvAddrToUnicode - GSM 03.40 address", a0340Address);
   457 OstTraceExt1( TRACE_NORMAL, DUP2_CMMSMSGSMADDRESS_GSMCONVADDRTOUNICODE, "CMmSmsGsmAddress::GsmConvAddrToUnicode;a0340Address=%hhu", a0340Address );
   457 OstTraceExt1( TRACE_NORMAL,  DUP2_CMMSMSGSMADDRESS_GSMCONVADDRTOUNICODE_TD, "CMmSmsGsmAddress::GsmConvAddrToUnicode;a0340Address=%hhu", a0340Address );
   458     }
   458     }
   459 
   459 
   460 // -----------------------------------------------------------------------------
   460 // -----------------------------------------------------------------------------
   461 // CMmSmsGsmAddress::GsmFindOutTonAndNpi
   461 // CMmSmsGsmAddress::GsmFindOutTonAndNpi
   462 // Converts type of number and numbering plan identification
   462 // Converts type of number and numbering plan identification
   470         RMobilePhone::TMobileTON* ton,      //Type of number
   470         RMobilePhone::TMobileTON* ton,      //Type of number
   471         RMobilePhone::TMobileNPI* npi       //Numbering plan identification
   471         RMobilePhone::TMobileNPI* npi       //Numbering plan identification
   472         )     
   472         )     
   473     {
   473     {
   474 TFLOGSTRING2("TSY: CMmSmsGsmAddress::GsmFindOutTonAndNpi - address type: %d", typeOfAddress);
   474 TFLOGSTRING2("TSY: CMmSmsGsmAddress::GsmFindOutTonAndNpi - address type: %d", typeOfAddress);
   475 OstTraceExt1( TRACE_NORMAL, CMMSMSGSMADDRESS_GSMFINDOUTTONANDNPI, "CMmSmsGsmAddress::GsmFindOutTonAndNpi;typeOfAddress=%hhu", typeOfAddress );
   475 OstTraceExt1( TRACE_NORMAL,  CMMSMSGSMADDRESS_GSMFINDOUTTONANDNPI_TD, "CMmSmsGsmAddress::GsmFindOutTonAndNpi;typeOfAddress=%hhu", typeOfAddress );
   476     
   476     
   477     TUint8 numberingPlanIdentification( static_cast< TUint8 >( 
   477     TUint8 numberingPlanIdentification( static_cast< TUint8 >( 
   478         typeOfAddress & 0x0F ) );
   478         typeOfAddress & 0x0F ) );
   479     TUint8 temp( static_cast< TUint8 >( typeOfAddress >> KHalfByte ) );
   479     TUint8 temp( static_cast< TUint8 >( typeOfAddress >> KHalfByte ) );
   480     TUint8 typeOfNumber( static_cast< TUint8 >( temp & 0x07 ) );
   480     TUint8 typeOfNumber( static_cast< TUint8 >( temp & 0x07 ) );
   513             }
   513             }
   514 
   514 
   515         default:
   515         default:
   516             {
   516             {
   517 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmFindOutTonAndNpi - unknown type of number");
   517 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmFindOutTonAndNpi - unknown type of number");
   518 OstTrace0( TRACE_NORMAL, DUP1_CMMSMSGSMADDRESS_GSMFINDOUTTONANDNPI, "CMmSmsGsmAddress::GsmFindOutTonAndNpi, unknown type of number" );
   518 OstTrace0( TRACE_NORMAL,  DUP1_CMMSMSGSMADDRESS_GSMFINDOUTTONANDNPI_TD, "CMmSmsGsmAddress::GsmFindOutTonAndNpi, unknown type of number" );
   519             *ton = RMobilePhone::EUnknownNumber;
   519             *ton = RMobilePhone::EUnknownNumber;
   520             break;
   520             break;
   521             }
   521             }
   522         }
   522         }
   523 
   523 
   565             }
   565             }
   566 
   566 
   567         default:
   567         default:
   568             {
   568             {
   569 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmFindOutTonAndNpi - unknown numbering plan");
   569 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmFindOutTonAndNpi - unknown numbering plan");
   570 OstTrace0( TRACE_NORMAL, DUP2_CMMSMSGSMADDRESS_GSMFINDOUTTONANDNPI, "CMmSmsGsmAddress::GsmFindOutTonAndNpi, unknown numbering plan" );
   570 OstTrace0( TRACE_NORMAL,  DUP2_CMMSMSGSMADDRESS_GSMFINDOUTTONANDNPI_TD, "CMmSmsGsmAddress::GsmFindOutTonAndNpi, unknown numbering plan" );
   571             *npi = RMobilePhone::EUnknownNumberingPlan;
   571             *npi = RMobilePhone::EUnknownNumberingPlan;
   572             break;
   572             break;
   573             }
   573             }
   574         }
   574         }
   575     }
   575     }
   584         (
   584         (
   585         RMobilePhone::TMobileTON aTon       //Type of number
   585         RMobilePhone::TMobileTON aTon       //Type of number
   586         )
   586         )
   587     {
   587     {
   588 TFLOGSTRING2("TSY: CMmSmsGsmAddress::GsmMapTonToTUint8 - type of number: %d", aTon);
   588 TFLOGSTRING2("TSY: CMmSmsGsmAddress::GsmMapTonToTUint8 - type of number: %d", aTon);
   589 OstTrace1( TRACE_NORMAL, CMMSMSGSMADDRESS_GSMMAPTONTOTUINT8, "CMmSmsGsmAddress::GsmMapTonToTUint8;aTon=%d", aTon );
   589 OstTrace1( TRACE_NORMAL,  CMMSMSGSMADDRESS_GSMMAPTONTOTUINT8_TD, "CMmSmsGsmAddress::GsmMapTonToTUint8;aTon=%d", aTon );
   590     TUint8 typeOfNumber( 0 );
   590     TUint8 typeOfNumber( 0 );
   591 
   591 
   592     switch ( aTon )
   592     switch ( aTon )
   593         {
   593         {
   594         case RMobilePhone::EInternationalNumber:
   594         case RMobilePhone::EInternationalNumber:
   623             } 
   623             } 
   624         case RMobilePhone::EUnknownNumber:
   624         case RMobilePhone::EUnknownNumber:
   625         default:
   625         default:
   626             {
   626             {
   627 TFLOGSTRING2("TSY: CMmSmsGsmAddress::GsmMapTonToTUint8 - unknown type of number: %d", aTon);
   627 TFLOGSTRING2("TSY: CMmSmsGsmAddress::GsmMapTonToTUint8 - unknown type of number: %d", aTon);
   628 OstTrace1( TRACE_NORMAL, DUP1_CMMSMSGSMADDRESS_GSMMAPTONTOTUINT8, "CMmSmsGsmAddress::GsmMapTonToTUint8;unknown type of number aTon=%d", aTon );
   628 OstTrace1( TRACE_NORMAL,  DUP1_CMMSMSGSMADDRESS_GSMMAPTONTOTUINT8_TD, "CMmSmsGsmAddress::GsmMapTonToTUint8;unknown type of number aTon=%d", aTon );
   629             typeOfNumber = KTonUnknown;
   629             typeOfNumber = KTonUnknown;
   630             } 
   630             } 
   631         }
   631         }
   632 
   632 
   633     return typeOfNumber;
   633     return typeOfNumber;
   643         ( 
   643         ( 
   644         RMobilePhone::TMobileNPI aNpi   //Numbering plan identification
   644         RMobilePhone::TMobileNPI aNpi   //Numbering plan identification
   645         )
   645         )
   646     {
   646     {
   647 TFLOGSTRING2("TSY: CMmSmsGsmAddress::GsmMapNpiToTUint8 - numbering plan identification: %d", aNpi);
   647 TFLOGSTRING2("TSY: CMmSmsGsmAddress::GsmMapNpiToTUint8 - numbering plan identification: %d", aNpi);
   648 OstTrace1( TRACE_NORMAL, CMMSMSGSMADDRESS_GSMMAPNPITOTUINT8, "CMmSmsGsmAddress::GsmMapNpiToTUint8;aNpi=%d", aNpi );
   648 OstTrace1( TRACE_NORMAL,  CMMSMSGSMADDRESS_GSMMAPNPITOTUINT8_TD, "CMmSmsGsmAddress::GsmMapNpiToTUint8;aNpi=%d", aNpi );
   649     
   649     
   650     TUint8 numPlanIdentification( 0 );
   650     TUint8 numPlanIdentification( 0 );
   651 
   651 
   652     switch ( aNpi )
   652     switch ( aNpi )
   653         {
   653         {
   693             } 
   693             } 
   694         case RMobilePhone::EUnknownNumberingPlan:
   694         case RMobilePhone::EUnknownNumberingPlan:
   695         default:
   695         default:
   696             {
   696             {
   697 TFLOGSTRING2("TSY: CMmSmsGsmAddress::GsmMapNpiToTUint8 - unknown numbering plan identification: %d", aNpi);
   697 TFLOGSTRING2("TSY: CMmSmsGsmAddress::GsmMapNpiToTUint8 - unknown numbering plan identification: %d", aNpi);
   698 OstTrace1( TRACE_NORMAL, DUP1_CMMSMSGSMADDRESS_GSMMAPNPITOTUINT8, "CMmSmsGsmAddress::GsmMapNpiToTUint8;unknown numbering plan identification aNpi=%d", aNpi );
   698 OstTrace1( TRACE_NORMAL,  DUP1_CMMSMSGSMADDRESS_GSMMAPNPITOTUINT8_TD, "CMmSmsGsmAddress::GsmMapNpiToTUint8;unknown numbering plan identification aNpi=%d", aNpi );
   699             numPlanIdentification = KNpiUnknown;
   699             numPlanIdentification = KNpiUnknown;
   700             } 
   700             } 
   701         }
   701         }
   702         
   702         
   703     return numPlanIdentification;
   703     return numPlanIdentification;
   725         TUint8& aAmountOfSemiOctets // Amount of semi-octets
   725         TUint8& aAmountOfSemiOctets // Amount of semi-octets
   726         )
   726         )
   727     {
   727     {
   728     
   728     
   729 TFLOGSTRING2("TSY: CMmSmsGsmAddress::GsmUnicodeAddrToAlphanumericAddr - source address: %S", &aSource);
   729 TFLOGSTRING2("TSY: CMmSmsGsmAddress::GsmUnicodeAddrToAlphanumericAddr - source address: %S", &aSource);
   730 OstTraceExt1( TRACE_NORMAL, CMMSMSGSMADDRESS_GSMUNICODEADDRTOALPHANUMERICADDR, "CMmSmsGsmAddress::GsmUnicodeAddrToAlphanumericAddr;aSource=%S", aSource );
   730 OstTraceExt1( TRACE_NORMAL,  CMMSMSGSMADDRESS_GSMUNICODEADDRTOALPHANUMERICADDR_TD, "CMmSmsGsmAddress::GsmUnicodeAddrToAlphanumericAddr;aSource=%S", aSource );
   731     
   731     
   732     TUint16 j( 0 );
   732     TUint16 j( 0 );
   733     TUint16 i( 0 );
   733     TUint16 i( 0 );
   734 
   734 
   735     TBuf8< RMobilePhone::KMaxMobileTelNumberSize > alphaChars;
   735     TBuf8< RMobilePhone::KMaxMobileTelNumberSize > alphaChars;
   822         TUint& aAmountOfChars,  // Amount of characters in address data
   822         TUint& aAmountOfChars,  // Amount of characters in address data
   823         TDes16& aDestination    // Destination data
   823         TDes16& aDestination    // Destination data
   824         )
   824         )
   825     {
   825     {
   826 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmAlphanumericAddrToUnicodeAddr");
   826 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmAlphanumericAddrToUnicodeAddr");
   827 OstTrace0( TRACE_NORMAL, CMMSMSGSMADDRESS_GSMALPHANUMERICADDRTOUNICODEADDR, "CMmSmsGsmAddress::GsmAlphanumericAddrToUnicodeAddr" );
   827 OstTrace0( TRACE_NORMAL,  CMMSMSGSMADDRESS_GSMALPHANUMERICADDRTOUNICODEADDR_TD, "CMmSmsGsmAddress::GsmAlphanumericAddrToUnicodeAddr" );
   828     
   828     
   829     //Maximum length of address data is 10 bytes. These bytes can contain
   829     //Maximum length of address data is 10 bytes. These bytes can contain
   830     //11 packed 7-bit characters.
   830     //11 packed 7-bit characters.
   831     TBuf8< KMaxLengthOfAddressData + 1 > unpackedSrc;
   831     TBuf8< KMaxLengthOfAddressData + 1 > unpackedSrc;
   832     GsmLibUnpackAlphanumericAddress( aSource, aAmountOfChars, unpackedSrc );
   832     GsmLibUnpackAlphanumericAddress( aSource, aAmountOfChars, unpackedSrc );
   924         TDes8& aDest,            // Packed address
   924         TDes8& aDest,            // Packed address
   925         TDes8& aSource           // Unpacked address
   925         TDes8& aSource           // Unpacked address
   926         )
   926         )
   927     {
   927     {
   928 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmLibPackAlphanumericAddress");
   928 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmLibPackAlphanumericAddress");
   929 OstTrace0( TRACE_NORMAL, CMMSMSGSMADDRESS_GSMLIBPACKALPHANUMERICADDRESS, "CMmSmsGsmAddress::GsmLibPackAlphanumericAddress" );
   929 OstTrace0( TRACE_NORMAL,  CMMSMSGSMADDRESS_GSMLIBPACKALPHANUMERICADDRESS_TD, "CMmSmsGsmAddress::GsmLibPackAlphanumericAddress" );
   930     TUint8 si( 0 );
   930     TUint8 si( 0 );
   931     TUint8 di( 0 );
   931     TUint8 di( 0 );
   932     TUint tempModulo( 0 );
   932     TUint tempModulo( 0 );
   933     
   933     
   934     // Set tempModulo and byteCount
   934     // Set tempModulo and byteCount
   996         TUint aAmountOfChars,   // Amount of characters in address data
   996         TUint aAmountOfChars,   // Amount of characters in address data
   997         TDes8& aDest            // Unpacked address data 
   997         TDes8& aDest            // Unpacked address data 
   998         )
   998         )
   999     {
   999     {
  1000 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmLibUnpackAlphanumericAddress");
  1000 TFLOGSTRING("TSY: CMmSmsGsmAddress::GsmLibUnpackAlphanumericAddress");
  1001 OstTrace0( TRACE_NORMAL, CMMSMSGSMADDRESS_GSMLIBUNPACKALPHANUMERICADDRESS, "CMmSmsGsmAddress::GsmLibUnpackAlphanumericAddress" );
  1001 OstTrace0( TRACE_NORMAL,  CMMSMSGSMADDRESS_GSMLIBUNPACKALPHANUMERICADDRESS_TD, "CMmSmsGsmAddress::GsmLibUnpackAlphanumericAddress" );
  1002     TUint8 di( 0 );
  1002     TUint8 di( 0 );
  1003     TUint8 si( 0 );  
  1003     TUint8 si( 0 );  
  1004     TUint tempModulo( 0 );
  1004     TUint tempModulo( 0 );
  1005 
  1005 
  1006     // Maximum length of address data field is 10 bytes. 10 bytes can contain
  1006     // Maximum length of address data field is 10 bytes. 10 bytes can contain