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_SCHEDULE_PACKAGE_H_
25 #define MSV_SCHEDULE_PACKAGE_H_
27 /////////////////////////////////////////////////////////////////////////////
29 // TMsvSchedulePackage Declaration
31 /////////////////////////////////////////////////////////////////////////////
33 const TInt KMaxParameterLength = 256;
39 Packaged message scheduling information.
45 class TMsvSchedulePackage
48 IMPORT_C TMsvSchedulePackage();
50 IMPORT_C void PackLC(TTaskInfo& aTask, HBufC*& aDes) const;
51 IMPORT_C void UnpackL(const TTaskInfo& aTask, const TDesC& aDes);
55 HBufC* PackLC() const;
56 void UnpackL(const TDesC& aDes);
58 void ExternalizeL(RWriteStream&) const;
59 void InternalizeL(RReadStream&);
61 TPtrC Convert(const TDesC8& aDes) const;
62 TPtrC8 Convert(const TDesC16& aDes) const;
69 /** Command ID to be passed to CMsvSession::TransferCommandL() when it is
70 time to send the messages. */
73 /** Intervals at which the scheduler should check the sending operation's
75 TTimeIntervalMicroSeconds32 iPollProgress;
77 /** Server MTM specific binary data to be passed to
78 CMsvSession::TransferCommandL() when it is time to send the messages. */
79 TBuf8<KMaxParameterLength> iParameter;