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 /// All rights reserved.
15 /// This component and the accompanying materials are made available
16 /// 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
17 /// which accompanies this distribution, and is available
18 /// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
19 /// Initial Contributors:
20 /// Nokia Corporation - initial contribution.
24 #ifndef MSV_ENTRY_SCHEDULE_DATA_H_
25 #define MSV_ENTRY_SCHEDULE_DATA_H_
27 /////////////////////////////////////////////////////////////////////////////
31 /////////////////////////////////////////////////////////////////////////////
38 /////////////////////////////////////////////////////////////////////////////
42 /////////////////////////////////////////////////////////////////////////////
44 const TUid KUidMsvFileScheduleData = {0x100056A2}; //Used by TMsvEntryScheduleData
45 const TInt16 KMsvEntryScheduleDataVersion = 1;
47 /////////////////////////////////////////////////////////////////////////////
49 // TMsvEntryScheduleData Declaration
51 /////////////////////////////////////////////////////////////////////////////
54 Stores message-specific data related to scheduling.
56 The data is not required by the Client/UI side. This data is stored in a
57 stream associated with the TMsvEntry.
63 class TMsvEntryScheduleData
66 IMPORT_C TMsvEntryScheduleData();
68 IMPORT_C void RestoreL(CMsvStore& aStore);
69 IMPORT_C void StoreL(CMsvStore& aStore) const;
70 IMPORT_C void RemoveL(CMsvStore& aStore) const;
72 IMPORT_C void Reset();
73 IMPORT_C TBool IsReset() const;
75 IMPORT_C TInt Retries() const;
76 IMPORT_C void IncreaseRetries();
77 IMPORT_C void ResetRetries();
80 The Task ID returned by the Task Scheduler when the message is
86 The TSchedulerItemRef returned by the Task Scheduler when the schedule
87 on which the message is scheduled is created.
89 TSchedulerItemRef iRef;
92 /** The number of retries that have been made to send this message. */
94 /** Structure version. */
97 void ExternalizeL(RWriteStream& aWriteStream) const;
98 void InternalizeL(RReadStream& aReadStream);