epoc32/include/mw/msvschedulepackage.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     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".
     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 //
    20 //
    21 //	TMsvSchedulePackage Declaration
    22 //
    23 //
    24 
    25 const TInt KMaxParameterLength = 256;
    26 
    27 class TTaskInfo;
    28 
    29 
    30 /**
    31 Packaged message scheduling information. 
    32 
    33 @publishedAll
    34 @released
    35 */
    36 
    37 class TMsvSchedulePackage
    38 	{
    39 public:
    40 	IMPORT_C TMsvSchedulePackage();
    41 	
    42 	IMPORT_C void PackLC(TTaskInfo& aTask, HBufC*& aDes) const;
    43 	IMPORT_C void UnpackL(const TTaskInfo& aTask, const TDesC& aDes);
    44 
    45 private:
    46 
    47 	HBufC* PackLC() const;
    48 	void UnpackL(const TDesC& aDes);
    49 
    50 	void ExternalizeL(RWriteStream&) const;
    51 	void InternalizeL(RReadStream&);
    52 
    53 	TPtrC Convert(const TDesC8& aDes) const;
    54 	TPtrC8 Convert(const TDesC16& aDes) const;
    55 
    56 public:
    57 
    58 	/** Message ID. */
    59 	TMsvId iId;
    60 
    61 	/** Command ID to be passed to CMsvSession::TransferCommandL() when it is
    62 	time to send the messages. */
    63 	TInt iCommandId;
    64 
    65 	/** Intervals at which the scheduler should check the sending operation's
    66 	progress. */
    67 	TTimeIntervalMicroSeconds32 iPollProgress;
    68 
    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;
    72 
    73 	};
    74 
    75 #endif