epoc32/include/gsmumsg.inl
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    10 //
    10 //
    11 // Contributors:
    11 // Contributors:
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 //
    14 //
    15 
    15 
    16 
       
    17 
       
    18 
       
    19 /**
    16 /**
    20  @file
    17  @file
    21  
    18  
    22  Gets the SMS-XXX message type.
    19  Gets the SMS-XXX message type.
    23  
    20  
    24  @return SMS-XXX message type 
    21  @return SMS-XXX message type 
    25  
    22  
    26 */
    23 */
    27 inline CSmsPDU::TSmsPDUType CSmsMessage::Type() const
    24 inline CSmsPDU::TSmsPDUType CSmsMessage::Type() const
    28 	{
    25 	{
    29 	return iSmsPDU->Type();
    26 	return SmsPDU().Type();
    30 	}
    27 	}
    31 
    28 
    32 
    29 
    33 /**
    30 /**
    34  *  Tests if the SMS message is complete.
    31  *  Tests if the SMS message is complete.
   167  *  
   164  *  
   168  *  @return Service Center Address 
   165  *  @return Service Center Address 
   169  */
   166  */
   170 inline TPtrC CSmsMessage::ServiceCenterAddress() const
   167 inline TPtrC CSmsMessage::ServiceCenterAddress() const
   171 	{
   168 	{
   172 	return iSmsPDU->ServiceCenterAddress();
   169 	return SmsPDU().ServiceCenterAddress();
   173 	}
   170 	}
   174 
   171 
   175 
   172 
   176 /**
   173 /**
   177  *  Sets the message Service Center Address.
   174  *  Sets the message Service Center Address.
   178  *  
   175  *  
   179  *  @param aAddress Service Center Address 
   176  *  @param aAddress Service Center Address 
   180  */
   177  */
   181 inline void CSmsMessage::SetServiceCenterAddressL(const TDesC& aAddress)
   178 inline void CSmsMessage::SetServiceCenterAddressL(const TDesC& aAddress)
   182 	{
   179 	{
   183 	iSmsPDU->SetServiceCenterAddressL(aAddress);
   180 	SmsPDU().SetServiceCenterAddressL(aAddress);
   184 	}
   181 	}
   185 
   182 
   186 
   183 
   187 /**
   184 /**
   188  *  Gets the Service Center Address as an ETSI-formatted telephone number.
   185  *  Gets the Service Center Address as an ETSI-formatted telephone number.
   189  *  
   186  *  
   190  *  @param aParsedAddress Service Center Address 
   187  *  @param aParsedAddress Service Center Address 
   191  */
   188  */
   192 inline void CSmsMessage::ParsedServiceCenterAddress(TGsmSmsTelNumber& aParsedAddress) const
   189 inline void CSmsMessage::ParsedServiceCenterAddress(TGsmSmsTelNumber& aParsedAddress) const
   193 	{
   190 	{
   194 	iSmsPDU->ParsedServiceCenterAddress(aParsedAddress);
   191 	SmsPDU().ParsedServiceCenterAddress(aParsedAddress);
   195 	}
   192 	}
   196 
   193 
   197 
   194 
   198 /**
   195 /**
   199  *  Sets the Service Center Address as an ETSI-formatted telephone number.
   196  *  Sets the Service Center Address as an ETSI-formatted telephone number.
   200  *  
   197  *  
   201  *  @param aParsedAddress Service Center Address 
   198  *  @param aParsedAddress Service Center Address 
   202  */
   199  */
   203 inline void CSmsMessage::SetParsedServiceCenterAddressL(const TGsmSmsTelNumber& aParsedAddress)
   200 inline void CSmsMessage::SetParsedServiceCenterAddressL(const TGsmSmsTelNumber& aParsedAddress)
   204 	{
   201 	{
   205 	iSmsPDU->SetParsedServiceCenterAddressL(aParsedAddress);
   202 	SmsPDU().SetParsedServiceCenterAddressL(aParsedAddress);
   206 	}
   203 	}
   207 
   204 
   208 
   205 
   209 /**
   206 /**
   210  *  Gets unparsed To and From addresses.
   207  *  Gets unparsed To and From addresses.
   211  *  
   208  *  
   212  *  @return To and From addresses 
   209  *  @return To and From addresses 
   213  */
   210  */
   214 inline TPtrC CSmsMessage::ToFromAddress() const
   211 inline TPtrC CSmsMessage::ToFromAddress() const
   215 	{
   212 	{
   216 	return iSmsPDU->ToFromAddress();
   213 	return SmsPDU().ToFromAddress();
   217 	}
   214 	}
   218 
   215 
   219 
   216 
   220 /**
   217 /**
   221  *  Sets unparsed To and From addresses.
   218  *  Sets unparsed To and From addresses.
   222  *  
   219  *  
   223  *  @param aAddress To and From addresses 
   220  *  @param aAddress To and From addresses 
   224  */
   221  */
   225 inline void CSmsMessage::SetToFromAddressL(const TDesC& aAddress)
   222 inline void CSmsMessage::SetToFromAddressL(const TDesC& aAddress)
   226 	{
   223 	{
   227 	iSmsPDU->SetToFromAddressL(aAddress);
   224 	SmsPDU().SetToFromAddressL(aAddress);
   228 	}
   225 	}
   229 
   226 
   230 
   227 
   231 /**
   228 /**
   232  *  Gets To and From addresses in ETSI format.
   229  *  Gets To and From addresses in ETSI format.
   233  *  
   230  *  
   234  *  @param aParsedAddress To and From addresses 
   231  *  @param aParsedAddress To and From addresses 
   235  */
   232  */
   236 inline void CSmsMessage::ParsedToFromAddress(TGsmSmsTelNumber& aParsedAddress) const
   233 inline void CSmsMessage::ParsedToFromAddress(TGsmSmsTelNumber& aParsedAddress) const
   237 	{
   234 	{
   238 	iSmsPDU->ParsedToFromAddress(aParsedAddress);
   235 	SmsPDU().ParsedToFromAddress(aParsedAddress);
   239 	}
   236 	}
   240 
   237 
   241 
   238 
   242 /**
   239 /**
   243  *  Sets To and From addresses in ETSI format.
   240  *  Sets To and From addresses in ETSI format.
   244  *  
   241  *  
   245  *  @param aParsedAddress To and From addresses 
   242  *  @param aParsedAddress To and From addresses 
   246  */
   243  */
   247 inline void CSmsMessage::SetParsedToFromAddressL(const TGsmSmsTelNumber& aParsedAddress)
   244 inline void CSmsMessage::SetParsedToFromAddressL(const TGsmSmsTelNumber& aParsedAddress)
   248 	{
   245 	{
   249 	iSmsPDU->SetParsedToFromAddressL(aParsedAddress);
   246 	SmsPDU().SetParsedToFromAddressL(aParsedAddress);
   250 	}
   247 	}
   251 
   248 
   252 
   249 
   253 /**
   250 /**
   254  *  Gets the text portion of the message (non-const).
   251  *  Gets the text portion of the message (non-const).
   291 /**
   288 /**
   292  *  @return True if the User Data is Binary
   289  *  @return True if the User Data is Binary
   293  */
   290  */
   294 inline TBool CSmsMessage::BinaryData() const
   291 inline TBool CSmsMessage::BinaryData() const
   295 	{
   292 	{
   296 	return iSmsPDU->UserData().IsBinaryData();
   293 	return SmsPDU().UserData().IsBinaryData();
   297 	}
   294 	}
   298 
   295 
   299 
   296 
   300 inline void CSmsMessage::Set16BitConcatenation(TBool aIs16BitConcatenation)
   297 inline void CSmsMessage::Set16BitConcatenation(TBool aIs16BitConcatenation)
   301 	{
   298 	{