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