1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 Gets the SMS-XXX message type.
21 @return SMS-XXX message type
24 inline CSmsPDU::TSmsPDUType CSmsMessage::Type() const
26 return SmsPDU().Type();
31 * Tests if the SMS message is complete.
33 * @return True if complete
35 inline TBool CSmsMessage::IsComplete() const
37 return iFlags&ESmsFlagIsComplete;
42 * Tests if the SMS message is Decoded.
44 * @return True if Decoded
46 inline TBool CSmsMessage::IsDecoded() const
48 return iFlags&ESmsFlagIsDecoded;
53 * Gets the physical location where the message represented by the object is stored.
55 * @return Physical location
57 inline CSmsMessage::TMobileSmsStorage CSmsMessage::Storage() const
59 return (TMobileSmsStorage) (iFlags&ESmsStorageMask);
64 * Sets the physical location where the message represented by the object is stored.
66 * @param aStorage Physical location
68 inline void CSmsMessage::SetStorage(TMobileSmsStorage aStorage)
70 iFlags=aStorage|(iFlags&(~ESmsStorageMask));
75 * Gets the SMS store status of the message.
77 * @return SMS store status
79 inline NMobileSmsStore::TMobileSmsStoreStatus CSmsMessage::Status() const
86 * Sets the SMS store status of the message.
88 * @param aStatus SMS store status
90 inline void CSmsMessage::SetStatus(NMobileSmsStore::TMobileSmsStoreStatus aStatus)
97 * Gets the Log Server Id.
99 * @return Log Server Id
101 inline TInt CSmsMessage::LogServerId() const
108 * Sets the Log Server Id.
110 * @param aId Log Server Id
112 inline void CSmsMessage::SetLogServerId(TInt aId)
119 * Gets the time of message creation.
121 * @return Time of message creation
123 inline const TTime& CSmsMessage::Time() const
130 * Sets the time of message creation.
132 * @param aTime Time of message creation
134 inline void CSmsMessage::SetTime(const TTime& aTime)
141 * Gets the message PDU.
145 inline CSmsPDU& CSmsMessage::SmsPDU()
152 * Gets the message PDU (const).
156 inline const CSmsPDU& CSmsMessage::SmsPDU() const
163 * Gets the message Service Center Address.
165 * @return Service Center Address
167 inline TPtrC CSmsMessage::ServiceCenterAddress() const
169 return SmsPDU().ServiceCenterAddress();
174 * Sets the message Service Center Address.
176 * @param aAddress Service Center Address
178 inline void CSmsMessage::SetServiceCenterAddressL(const TDesC& aAddress)
180 SmsPDU().SetServiceCenterAddressL(aAddress);
185 * Gets the Service Center Address as an ETSI-formatted telephone number.
187 * @param aParsedAddress Service Center Address
189 inline void CSmsMessage::ParsedServiceCenterAddress(TGsmSmsTelNumber& aParsedAddress) const
191 SmsPDU().ParsedServiceCenterAddress(aParsedAddress);
196 * Sets the Service Center Address as an ETSI-formatted telephone number.
198 * @param aParsedAddress Service Center Address
200 inline void CSmsMessage::SetParsedServiceCenterAddressL(const TGsmSmsTelNumber& aParsedAddress)
202 SmsPDU().SetParsedServiceCenterAddressL(aParsedAddress);
207 * Gets unparsed To and From addresses.
209 * @return To and From addresses
211 inline TPtrC CSmsMessage::ToFromAddress() const
213 return SmsPDU().ToFromAddress();
218 * Sets unparsed To and From addresses.
220 * @param aAddress To and From addresses
222 inline void CSmsMessage::SetToFromAddressL(const TDesC& aAddress)
224 SmsPDU().SetToFromAddressL(aAddress);
229 * Gets To and From addresses in ETSI format.
231 * @param aParsedAddress To and From addresses
233 inline void CSmsMessage::ParsedToFromAddress(TGsmSmsTelNumber& aParsedAddress) const
235 SmsPDU().ParsedToFromAddress(aParsedAddress);
240 * Sets To and From addresses in ETSI format.
242 * @param aParsedAddress To and From addresses
244 inline void CSmsMessage::SetParsedToFromAddressL(const TGsmSmsTelNumber& aParsedAddress)
246 SmsPDU().SetParsedToFromAddressL(aParsedAddress);
251 * Gets the text portion of the message (non-const).
253 * @return Text portion of the message
255 inline CSmsBufferBase& CSmsMessage::Buffer()
262 * @return The text portion of the CSmsMessage (const)
264 inline const CSmsBufferBase& CSmsMessage::Buffer() const
271 * @param aIsComplete Set to True for CSmsMessage complete
273 inline void CSmsMessage::SetIsComplete(TBool aIsComplete)
275 iFlags=aIsComplete? iFlags|ESmsFlagIsComplete: iFlags&(~ESmsFlagIsComplete);
280 * @param aIsDecoded Set to True for CSmsMessage decoded
282 inline void CSmsMessage::SetIsDecoded(TBool aIsDecoded)
284 iFlags=aIsDecoded? iFlags|ESmsFlagIsDecoded: iFlags&(~ESmsFlagIsDecoded);
289 * @return True if the User Data is Binary
291 inline TBool CSmsMessage::BinaryData() const
293 return SmsPDU().UserData().IsBinaryData();
297 inline void CSmsMessage::Set16BitConcatenation(TBool aIs16BitConcatenation)
299 iIs16BitConcatenation=aIs16BitConcatenation;
303 inline TBool CSmsMessage::Is16BitConcatenation()const
305 return iIs16BitConcatenation;