diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/msventryscheduledata.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/epoc32/include/msventryscheduledata.h Tue Mar 16 16:12:26 2010 +0000 @@ -0,0 +1,101 @@ +/// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). +/// All rights reserved. +/// This component and the accompanying materials are made available +/// 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 +/// which accompanies this distribution, and is available +/// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +/// +/// Initial Contributors: +/// Nokia Corporation - initial contribution. +/// +/// Contributors: +/// +/// Description: +/// All rights reserved. +/// This component and the accompanying materials are made available +/// 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 +/// which accompanies this distribution, and is available +/// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +/// Initial Contributors: +/// Nokia Corporation - initial contribution. +/// Contributors: +/// + +#ifndef MSV_ENTRY_SCHEDULE_DATA_H_ +#define MSV_ENTRY_SCHEDULE_DATA_H_ + +///////////////////////////////////////////////////////////////////////////// +// +// Includes +// +///////////////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include + +///////////////////////////////////////////////////////////////////////////// +// +// Constants +// +///////////////////////////////////////////////////////////////////////////// + +const TUid KUidMsvFileScheduleData = {0x100056A2}; //Used by TMsvEntryScheduleData +const TInt16 KMsvEntryScheduleDataVersion = 1; + +///////////////////////////////////////////////////////////////////////////// +// +// TMsvEntryScheduleData Declaration +// +///////////////////////////////////////////////////////////////////////////// + +/** +Stores message-specific data related to scheduling. + +The data is not required by the Client/UI side. This data is stored in a +stream associated with the TMsvEntry. + +@publishedAll +@released +*/ + +class TMsvEntryScheduleData + { +public: + IMPORT_C TMsvEntryScheduleData(); + + IMPORT_C void RestoreL(CMsvStore& aStore); + IMPORT_C void StoreL(CMsvStore& aStore) const; + IMPORT_C void RemoveL(CMsvStore& aStore) const; + + IMPORT_C void Reset(); + IMPORT_C TBool IsReset() const; + + IMPORT_C TInt Retries() const; + IMPORT_C void IncreaseRetries(); + IMPORT_C void ResetRetries(); + + /** + The Task ID returned by the Task Scheduler when the message is + scheduled. + */ + TInt iTaskId; + + /** + The TSchedulerItemRef returned by the Task Scheduler when the schedule + on which the message is scheduled is created. + */ + TSchedulerItemRef iRef; + +protected: + /** The number of retries that have been made to send this message. */ + TInt iRetryCount; + /** Structure version. */ + TInt16 iVersion; + + void ExternalizeL(RWriteStream& aWriteStream) const; + void InternalizeL(RReadStream& aReadStream); + }; + +#endif