author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:33:34 +0100 | |
branch | Symbian3 |
changeset 4 | 837f303aceeb |
parent 3 | e1b950c65cb4 |
permissions | -rw-r--r-- |
williamr@4 | 1 |
// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
williamr@4 | 2 |
// All rights reserved. |
williamr@4 | 3 |
// This component and the accompanying materials are made available |
williamr@4 | 4 |
// under the terms of "Eclipse Public License v1.0" |
williamr@4 | 5 |
// which accompanies this distribution, and is available |
williamr@4 | 6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
williamr@4 | 7 |
// |
williamr@4 | 8 |
// Initial Contributors: |
williamr@4 | 9 |
// Nokia Corporation - initial contribution. |
williamr@4 | 10 |
// |
williamr@4 | 11 |
// Contributors: |
williamr@4 | 12 |
// |
williamr@4 | 13 |
// Description: |
williamr@4 | 14 |
// |
williamr@2 | 15 |
|
williamr@2 | 16 |
#ifndef MSV_SCHEDULE_PACKAGE_H_ |
williamr@2 | 17 |
#define MSV_SCHEDULE_PACKAGE_H_ |
williamr@2 | 18 |
|
williamr@4 | 19 |
// |
williamr@2 | 20 |
// |
williamr@2 | 21 |
// TMsvSchedulePackage Declaration |
williamr@2 | 22 |
// |
williamr@4 | 23 |
// |
williamr@2 | 24 |
|
williamr@2 | 25 |
const TInt KMaxParameterLength = 256; |
williamr@2 | 26 |
|
williamr@2 | 27 |
class TTaskInfo; |
williamr@2 | 28 |
|
williamr@2 | 29 |
|
williamr@2 | 30 |
/** |
williamr@2 | 31 |
Packaged message scheduling information. |
williamr@2 | 32 |
|
williamr@2 | 33 |
@publishedAll |
williamr@2 | 34 |
@released |
williamr@2 | 35 |
*/ |
williamr@2 | 36 |
|
williamr@2 | 37 |
class TMsvSchedulePackage |
williamr@2 | 38 |
{ |
williamr@2 | 39 |
public: |
williamr@2 | 40 |
IMPORT_C TMsvSchedulePackage(); |
williamr@2 | 41 |
|
williamr@2 | 42 |
IMPORT_C void PackLC(TTaskInfo& aTask, HBufC*& aDes) const; |
williamr@2 | 43 |
IMPORT_C void UnpackL(const TTaskInfo& aTask, const TDesC& aDes); |
williamr@2 | 44 |
|
williamr@2 | 45 |
private: |
williamr@2 | 46 |
|
williamr@2 | 47 |
HBufC* PackLC() const; |
williamr@2 | 48 |
void UnpackL(const TDesC& aDes); |
williamr@2 | 49 |
|
williamr@2 | 50 |
void ExternalizeL(RWriteStream&) const; |
williamr@2 | 51 |
void InternalizeL(RReadStream&); |
williamr@2 | 52 |
|
williamr@2 | 53 |
TPtrC Convert(const TDesC8& aDes) const; |
williamr@2 | 54 |
TPtrC8 Convert(const TDesC16& aDes) const; |
williamr@2 | 55 |
|
williamr@2 | 56 |
public: |
williamr@2 | 57 |
|
williamr@2 | 58 |
/** Message ID. */ |
williamr@2 | 59 |
TMsvId iId; |
williamr@2 | 60 |
|
williamr@2 | 61 |
/** Command ID to be passed to CMsvSession::TransferCommandL() when it is |
williamr@2 | 62 |
time to send the messages. */ |
williamr@2 | 63 |
TInt iCommandId; |
williamr@2 | 64 |
|
williamr@2 | 65 |
/** Intervals at which the scheduler should check the sending operation's |
williamr@2 | 66 |
progress. */ |
williamr@2 | 67 |
TTimeIntervalMicroSeconds32 iPollProgress; |
williamr@2 | 68 |
|
williamr@2 | 69 |
/** Server MTM specific binary data to be passed to |
williamr@2 | 70 |
CMsvSession::TransferCommandL() when it is time to send the messages. */ |
williamr@2 | 71 |
TBuf8<KMaxParameterLength> iParameter; |
williamr@2 | 72 |
|
williamr@2 | 73 |
}; |
williamr@2 | 74 |
|
williamr@2 | 75 |
#endif |