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.
14 // Implements inline methods for classes TSAREntry and CSARStore
25 * Gets the Reference field.
27 * @return Concatenation reference
29 inline TInt TSAREntry::Reference() const
36 * Sets the Reference field.
38 * @param aReference The concatenation reference
40 inline void TSAREntry::SetReference(TInt aReference)
42 iReference=aReference;
47 * Gets the Total field.
49 * @return The total number of PDUs in SMS message
51 inline TInt TSAREntry::Total() const
58 * Sets the total number of PDUs in SMS message
60 * @param aTotal The total number of PDUs in the message
62 inline void TSAREntry::SetTotal(TInt aTotal)
69 * Gets the Count field.
71 * @return Number of PDUs sent/received
73 inline TInt TSAREntry::Count() const
80 * Sets the Count field.
82 * @param aCount The number of PDUs sent/received
84 inline void TSAREntry::SetCount(TInt aCount)
91 * Tests if the whole message is sent/received.
93 * @return True if the whole message is sent/received
95 inline TBool TSAREntry::IsComplete() const
97 return iCount==iTotal;
102 * Gets the Description1 field: a pointer to the first
103 * 32 characters from buffer.
105 * @return Description1 field
107 inline TPtrC TSAREntry::Description1() const
109 return iDescription1;
114 * Sets the Description1 field: the first 32 characters in buffer.
116 * @param aDescription Description1 field
118 inline void TSAREntry::SetDescription1(const TDesC& aDescription)
120 iDescription1=aDescription;
125 * Gets the Description2 field: a pointer to the original address.
127 * @return Description2 field
129 inline TPtrC TSAREntry::Description2() const
131 return iDescription2;
136 * Sets the Description2 field: the original address.
138 * @param aDescription Description2 field
140 inline void TSAREntry::SetDescription2(const TDesC& aDescription)
142 iDescription2=aDescription;
147 * Gets the Data3 field.
149 * @return Data3 field
151 inline TInt TSAREntry::Data3() const
158 * Sets the Data3 field.
160 * @param aData Data3 field
162 inline void TSAREntry::SetData3(TInt aData)
169 * Gets the Time field: the time when this message was sent/received.
173 inline const TTime& TSAREntry::Time() const
180 * Sets the Time field: the time when this message was sent/received.
182 * @param aTime Time field
184 inline void TSAREntry::SetTime(const TTime& aTime)
191 * Gets the data stream ID.
193 * @return Data stream ID
195 inline TStreamId TSAREntry::DataStreamId() const
197 return iDataStreamId;
202 * Sets the data stream ID.
204 * @param aStreamId Data stream ID
206 inline void TSAREntry::SetDataStreamId(TStreamId aStreamId)
208 iDataStreamId=aStreamId;
213 * @return ETrue if this message is deleted
215 inline TBool TSAREntry::IsDeleted() const
217 return iFlags&ESAREntryIsDeleted;
222 * Sets if this message should be marked as deleted
224 * @param aIsDeleted Set to True to mark a message as deleted
226 inline void TSAREntry::SetIsDeleted(TBool aIsDeleted)
228 iFlags=aIsDeleted?iFlags|ESAREntryIsDeleted: iFlags&(~ESAREntryIsDeleted);
233 * @return ETrue if this message is added
235 inline TBool TSAREntry::IsAdded() const
237 return iFlags&ESAREntryIsAdded;
242 * Sets if this message should be marked as added
244 * @param aIsDeleted Set to True to mark a message as added
246 inline void TSAREntry::SetIsAdded(TBool aIsAdded)
248 iFlags=aIsAdded?iFlags|ESAREntryIsAdded: iFlags&(~ESAREntryIsAdded);
253 * Gets the file server handle.
255 * @return File server handle
257 inline RFs& CSARStore::FileSession() const
264 * @return whether it's in transaction
266 inline TBool CSARStore::InTransaction() const
268 return iInTransaction;