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: |
203 inline void SetIsAdded(TBool aIsAdded); |
201 inline void SetIsAdded(TBool aIsAdded); |
204 |
202 |
205 private: |
203 private: |
206 enum TSAREntryFlags |
204 enum TSAREntryFlags |
207 { |
205 { |
208 ESAREntryIsDeleted=0x01, ///< indicates that this entry is deleted |
206 ESAREntryIsDeleted=0x01, //< indicates that this entry is deleted |
209 ESAREntryIsAdded=0x02 ///< indicated that this entry is added |
207 ESAREntryIsAdded=0x02 //< indicated that this entry is added |
210 }; |
208 }; |
211 private: |
209 private: |
212 TInt iReference; ///< concatenation reference |
210 TInt iReference; //< concatenation reference |
213 TInt iTotal; ///< total number of PDUs in this SMS message |
211 TInt iTotal; //< total number of PDUs in this SMS message |
214 TInt iCount; ///< number of PDUs sent/received for this SMS message |
212 TInt iCount; //< number of PDUs sent/received for this SMS message |
215 protected: |
213 protected: |
216 TInt iData1; /// TODO should be TUint32 |
214 TInt iData1; // TODO should be TUint32 |
217 TInt iData2; ///< Log server ID |
215 TInt iData2; //< Log server ID |
218 TInt iData3; |
216 TInt iData3; |
219 TInt iData4; |
217 TInt iData4; |
220 private: |
218 private: |
221 TBuf<ESmsSAREntryDescriptionLength> iDescription1; ///< first 32 characters from buffer |
219 TBuf<ESmsSAREntryDescriptionLength> iDescription1; //< first 32 characters from buffer |
222 TBuf<ESmsSAREntryDescriptionLength> iDescription2; ///< original address |
220 TBuf<ESmsSAREntryDescriptionLength> iDescription2; //< original address |
223 TTime iTime; ///< time when message was sent/received |
221 TTime iTime; //< time when message was sent/received |
224 TStreamId iDataStreamId; |
222 TStreamId iDataStreamId; |
225 TInt iFlags; // Not externalized |
223 TInt iFlags; // Not externalized |
226 friend class CSARStore; |
224 friend class CSARStore; |
227 friend class CSmsPermanentFileStore; |
225 friend class CSmsPermanentFileStore; |
228 friend class CPreallocatedFile; |
226 friend class CPreallocatedFile; |
482 { |
480 { |
483 KNumStoreCommitsBeforeCompaction=16 |
481 KNumStoreCommitsBeforeCompaction=16 |
484 }; |
482 }; |
485 |
483 |
486 protected: |
484 protected: |
487 RFs& iFs; ///< File server handle. |
485 RFs& iFs; //< File server handle. |
488 private: |
486 /** Maximum number of SMS messages that can be stored in segmentation store.*/ |
489 |
487 TInt iMaxmumNumberOfMessagesInSegmentationStore; |
490 CFileStore* iFileStore; ///< pointer to the file store |
488 |
491 CArrayFixFlat<TSAREntry> iEntryArray; ///< array of SAR entries |
489 private: |
492 TStreamId iExtraStreamId; ///< used for any other data that needs persisting |
490 |
493 TInt iCommitCount; ///< counts number of Commit's - used for CompactL |
491 CFileStore* iFileStore; //< pointer to the file store |
494 TPtrC iFullName; ///< holds the name of the File Store |
492 CArrayFixSeg<TSAREntry> iEntryArray; //< array of SAR entries |
|
493 TStreamId iExtraStreamId; //< used for any other data that needs persisting |
|
494 TInt iCommitCount; //< counts number of Commit's - used for CompactL |
|
495 TPtrC iFullName; //< holds the name of the File Store |
495 TUid iThirdUid; |
496 TUid iThirdUid; |
496 TBool iInTransaction; ///< For debugging purposes to ensure only one transaction at a time |
497 TBool iInTransaction; //< For debugging purposes to ensure only one transaction at a time |
497 }; |
498 }; |
498 |
499 |
499 /** |
500 /** |
500 * Closes all SAR stores if a backup event starts. |
501 * Closes all SAR stores if a backup event starts. |
501 * |
502 * |