epoc32/include/mw/msvschedulepackage.h
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 2fe1408b6811
child 4 837f303aceeb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/epoc32/include/mw/msvschedulepackage.h	Wed Mar 31 12:27:01 2010 +0100
@@ -0,0 +1,83 @@
+/// 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_SCHEDULE_PACKAGE_H_
+#define MSV_SCHEDULE_PACKAGE_H_
+
+/////////////////////////////////////////////////////////////////////////////
+//
+//	TMsvSchedulePackage Declaration
+//
+/////////////////////////////////////////////////////////////////////////////
+
+const TInt KMaxParameterLength = 256;
+
+class TTaskInfo;
+
+
+/**
+Packaged message scheduling information. 
+
+@publishedAll
+@released
+*/
+
+class TMsvSchedulePackage
+	{
+public:
+	IMPORT_C TMsvSchedulePackage();
+	
+	IMPORT_C void PackLC(TTaskInfo& aTask, HBufC*& aDes) const;
+	IMPORT_C void UnpackL(const TTaskInfo& aTask, const TDesC& aDes);
+
+private:
+
+	HBufC* PackLC() const;
+	void UnpackL(const TDesC& aDes);
+
+	void ExternalizeL(RWriteStream&) const;
+	void InternalizeL(RReadStream&);
+
+	TPtrC Convert(const TDesC8& aDes) const;
+	TPtrC8 Convert(const TDesC16& aDes) const;
+
+public:
+
+	/** Message ID. */
+	TMsvId iId;
+
+	/** Command ID to be passed to CMsvSession::TransferCommandL() when it is
+	time to send the messages. */
+	TInt iCommandId;
+
+	/** Intervals at which the scheduler should check the sending operation's
+	progress. */
+	TTimeIntervalMicroSeconds32 iPollProgress;
+
+	/** Server MTM specific binary data to be passed to 
+	CMsvSession::TransferCommandL() when it is time to send the messages. */
+	TBuf8<KMaxParameterLength> iParameter;
+
+	};
+
+#endif