messagingfw/scheduledsendmtm/schedulesendmtm/inc/MsvSchedulePackage.h
changeset 62 db3f5fa34ec7
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     1 // Copyright (c) 1999-2010 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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef MSV_SCHEDULE_PACKAGE_H_
       
    17 #define MSV_SCHEDULE_PACKAGE_H_
       
    18 
       
    19 #include <s32std.h>
       
    20 #include <msvstd.h>
       
    21 
       
    22 //
       
    23 //
       
    24 //	TMsvSchedulePackage Declaration
       
    25 //
       
    26 //
       
    27 
       
    28 const TInt KMaxParameterLength = 256;
       
    29 
       
    30 class TTaskInfo;
       
    31 
       
    32 
       
    33 /**
       
    34 Packaged message scheduling information. 
       
    35 
       
    36 @publishedAll
       
    37 @released
       
    38 */
       
    39 
       
    40 class TMsvSchedulePackage
       
    41 	{
       
    42 public:
       
    43 	IMPORT_C TMsvSchedulePackage();
       
    44 	
       
    45 	IMPORT_C void PackLC(TTaskInfo& aTask, HBufC*& aDes) const;
       
    46 	IMPORT_C void UnpackL(const TTaskInfo& aTask, const TDesC& aDes);
       
    47 
       
    48 private:
       
    49 
       
    50 	HBufC* PackLC() const;
       
    51 	void UnpackL(const TDesC& aDes);
       
    52 
       
    53 	void ExternalizeL(RWriteStream&) const;
       
    54 	void InternalizeL(RReadStream&);
       
    55 
       
    56 	TPtrC Convert(const TDesC8& aDes) const;
       
    57 	TPtrC8 Convert(const TDesC16& aDes) const;
       
    58 
       
    59 public:
       
    60 
       
    61 	/** Message ID. */
       
    62 	TMsvId iId;
       
    63 
       
    64 	/** Command ID to be passed to CMsvSession::TransferCommandL() when it is
       
    65 	time to send the messages. */
       
    66 	TInt iCommandId;
       
    67 
       
    68 	/** Intervals at which the scheduler should check the sending operation's
       
    69 	progress. */
       
    70 	TTimeIntervalMicroSeconds32 iPollProgress;
       
    71 
       
    72 	/** Server MTM specific binary data to be passed to 
       
    73 	CMsvSession::TransferCommandL() when it is time to send the messages. */
       
    74 	TBuf8<KMaxParameterLength> iParameter;
       
    75 
       
    76 	};
       
    77 
       
    78 #endif