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.
16 #ifndef MSV_SCHEDULE_PACKAGE_H_
17 #define MSV_SCHEDULE_PACKAGE_H_
21 // TMsvSchedulePackage Declaration
25 const TInt KMaxParameterLength = 256;
31 Packaged message scheduling information.
37 class TMsvSchedulePackage
40 IMPORT_C TMsvSchedulePackage();
42 IMPORT_C void PackLC(TTaskInfo& aTask, HBufC*& aDes) const;
43 IMPORT_C void UnpackL(const TTaskInfo& aTask, const TDesC& aDes);
47 HBufC* PackLC() const;
48 void UnpackL(const TDesC& aDes);
50 void ExternalizeL(RWriteStream&) const;
51 void InternalizeL(RReadStream&);
53 TPtrC Convert(const TDesC8& aDes) const;
54 TPtrC8 Convert(const TDesC16& aDes) const;
61 /** Command ID to be passed to CMsvSession::TransferCommandL() when it is
62 time to send the messages. */
65 /** Intervals at which the scheduler should check the sending operation's
67 TTimeIntervalMicroSeconds32 iPollProgress;
69 /** Server MTM specific binary data to be passed to
70 CMsvSession::TransferCommandL() when it is time to send the messages. */
71 TBuf8<KMaxParameterLength> iParameter;