smsprotocols/smsstack/wapprot/Inc/wapthdr.inl
changeset 20 244d7c5f118e
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
19:1f776524b15c 20:244d7c5f118e
    64 inline TInt TWapTextMessage::SourcePort(TBool* aIs16Bit) const
    64 inline TInt TWapTextMessage::SourcePort(TBool* aIs16Bit) const
    65     {
    65     {
    66     __ASSERT_DEBUG(iIsWapTextMessage, Panic(KPanicTextHeaderNotTextHeader));
    66     __ASSERT_DEBUG(iIsWapTextMessage, Panic(KPanicTextHeaderNotTextHeader));
    67     if (aIs16Bit)
    67     if (aIs16Bit)
    68         *aIs16Bit = iIs16Bit;
    68         *aIs16Bit = iIs16Bit;
    69     if (iSourcePort == (-1)) // TODO what does -1 mean?
    69     if (iSourcePort == (-1))
    70         return iDestinationPort;
    70         return iDestinationPort;
    71     return iSourcePort;
    71     return iSourcePort;
    72     }
    72     }
    73 
    73 
    74 
    74 
   139 
   139 
   140 
   140 
   141 /**
   141 /**
   142  *  from WAP spec: other header specified by text mode of WAP spec
   142  *  from WAP spec: other header specified by text mode of WAP spec
   143  *  
   143  *  
   144  *  TODO no idea what is it used for ?
       
   145  *  Descriptor lenght is set 0, if not present
   144  *  Descriptor lenght is set 0, if not present
   146  *  '//' is included
   145  *  '//' is included
   147  */
   146  */
   148 inline void TWapTextMessage::OtherHeader(TDes8&      aOtherHeader) const
   147 inline void TWapTextMessage::OtherHeader(TDes8&      aOtherHeader) const
   149     {
   148     {