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_SCHEDULE_PACKAGE_H_ williamr@2: #define MSV_SCHEDULE_PACKAGE_H_ williamr@2: williamr@2: ///////////////////////////////////////////////////////////////////////////// williamr@2: // williamr@2: // TMsvSchedulePackage Declaration williamr@2: // williamr@2: ///////////////////////////////////////////////////////////////////////////// williamr@2: williamr@2: const TInt KMaxParameterLength = 256; williamr@2: williamr@2: class TTaskInfo; williamr@2: williamr@2: williamr@2: /** williamr@2: Packaged message scheduling information. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: williamr@2: class TMsvSchedulePackage williamr@2: { williamr@2: public: williamr@2: IMPORT_C TMsvSchedulePackage(); williamr@2: williamr@2: IMPORT_C void PackLC(TTaskInfo& aTask, HBufC*& aDes) const; williamr@2: IMPORT_C void UnpackL(const TTaskInfo& aTask, const TDesC& aDes); williamr@2: williamr@2: private: williamr@2: williamr@2: HBufC* PackLC() const; williamr@2: void UnpackL(const TDesC& aDes); williamr@2: williamr@2: void ExternalizeL(RWriteStream&) const; williamr@2: void InternalizeL(RReadStream&); williamr@2: williamr@2: TPtrC Convert(const TDesC8& aDes) const; williamr@2: TPtrC8 Convert(const TDesC16& aDes) const; williamr@2: williamr@2: public: williamr@2: williamr@2: /** Message ID. */ williamr@2: TMsvId iId; williamr@2: williamr@2: /** Command ID to be passed to CMsvSession::TransferCommandL() when it is williamr@2: time to send the messages. */ williamr@2: TInt iCommandId; williamr@2: williamr@2: /** Intervals at which the scheduler should check the sending operation's williamr@2: progress. */ williamr@2: TTimeIntervalMicroSeconds32 iPollProgress; williamr@2: williamr@2: /** Server MTM specific binary data to be passed to williamr@2: CMsvSession::TransferCommandL() when it is time to send the messages. */ williamr@2: TBuf8 iParameter; williamr@2: williamr@2: }; williamr@2: williamr@2: #endif