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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Implements inline methods for classes TSAREntry and CSARStore
27 * Gets the Reference field.
29 * @return Concatenation reference
31 inline TInt TSAREntry::Reference() const
38 * Sets the Reference field.
40 * @param aReference The concatenation reference
42 inline void TSAREntry::SetReference(TInt aReference)
44 iReference=aReference;
49 * Gets the Total field.
51 * @return The total number of PDUs in SMS message
53 inline TInt TSAREntry::Total() const
60 * Sets the total number of PDUs in SMS message
62 * @param aTotal The total number of PDUs in the message
64 inline void TSAREntry::SetTotal(TInt aTotal)
71 * Gets the Count field.
73 * @return Number of PDUs sent/received
75 inline TInt TSAREntry::Count() const
82 * Sets the Count field.
84 * @param aCount The number of PDUs sent/received
86 inline void TSAREntry::SetCount(TInt aCount)
93 * Tests if the whole message is sent/received.
95 * @return True if the whole message is sent/received
97 inline TBool TSAREntry::IsComplete() const
99 return iCount==iTotal;
104 * Gets the Description1 field: a pointer to the first
105 * 32 characters from buffer.
107 * @return Description1 field
109 inline TPtrC TSAREntry::Description1() const
111 return iDescription1;
116 * Sets the Description1 field: the first 32 characters in buffer.
118 * @param aDescription Description1 field
120 inline void TSAREntry::SetDescription1(const TDesC& aDescription)
122 iDescription1=aDescription;
127 * Gets the Description2 field: a pointer to the original address.
129 * @return Description2 field
131 inline TPtrC TSAREntry::Description2() const
133 return iDescription2;
138 * Sets the Description2 field: the original address.
140 * @param aDescription Description2 field
142 inline void TSAREntry::SetDescription2(const TDesC& aDescription)
144 iDescription2=aDescription;
149 * Gets the Data3 field.
151 * @return Data3 field
153 inline TInt TSAREntry::Data3() const
160 * Sets the Data3 field.
162 * @param aData Data3 field
164 inline void TSAREntry::SetData3(TInt aData)
171 * Gets the Time field: the time when this message was sent/received.
175 inline const TTime& TSAREntry::Time() const
182 * Sets the Time field: the time when this message was sent/received.
184 * @param aTime Time field
186 inline void TSAREntry::SetTime(const TTime& aTime)
193 * Gets the data stream ID.
195 * @return Data stream ID
197 inline TStreamId TSAREntry::DataStreamId() const
199 return iDataStreamId;
204 * Sets the data stream ID.
206 * @param aStreamId Data stream ID
208 inline void TSAREntry::SetDataStreamId(TStreamId aStreamId)
210 iDataStreamId=aStreamId;
215 * @return ETrue if this message is deleted
217 inline TBool TSAREntry::IsDeleted() const
219 return iFlags&ESAREntryIsDeleted;
224 * Sets if this message should be marked as deleted
226 * @param aIsDeleted Set to True to mark a message as deleted
228 inline void TSAREntry::SetIsDeleted(TBool aIsDeleted)
230 iFlags=aIsDeleted?iFlags|ESAREntryIsDeleted: iFlags&(~ESAREntryIsDeleted);
235 * @return ETrue if this message is added
237 inline TBool TSAREntry::IsAdded() const
239 return iFlags&ESAREntryIsAdded;
244 * Sets if this message should be marked as added
246 * @param aIsDeleted Set to True to mark a message as added
248 inline void TSAREntry::SetIsAdded(TBool aIsAdded)
250 iFlags=aIsAdded?iFlags|ESAREntryIsAdded: iFlags&(~ESAREntryIsAdded);
255 * Gets the file server handle.
257 * @return File server handle
259 inline RFs& CSARStore::FileSession() const
266 * @return whether it's in transaction
268 inline TBool CSARStore::InTransaction() const
270 return iInTransaction;