epoc32/include/schsend.hrh
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/schsend.hrh	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,106 @@
     1.4 +// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// 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
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef __SCHSEND_HRH__
    1.20 +#define __SCHSEND_HRH__
    1.21 +
    1.22 +/** TMsvSendAction flags mask value. */
    1.23 +#define KActionMask					0x0013
    1.24 +/** ESendActionFail flag value. */
    1.25 +#define KActionFail					0x0000
    1.26 +/** ESendActionRetryImmediately flag value. */
    1.27 +#define KActionRetryImmediately		0x0001
    1.28 +/** ESendActionRetryLater flag value. */
    1.29 +#define KActionRetryLater			0x0002
    1.30 +/** ESendActionSentAlready flag value. */
    1.31 +#define KActionSentAlready			0x0003
    1.32 +/** ESendActionRetryConditionMet flag value. */
    1.33 +#define KActionRetryConditionMet	0x0010
    1.34 +
    1.35 +/** TMsvSendRetries flags mask value. */
    1.36 +#define KRetriesMask			0x0004
    1.37 +/** ESendRetriesFixed flag value. */
    1.38 +#define KRetriesFixed			0x0000
    1.39 +/** ESendRetriesInfinite flag value. */
    1.40 +#define KRetriesInfinite		0x0004
    1.41 +
    1.42 +/** TMsvSendRetrySpacing flags mask value. */
    1.43 +#define KRetrySpacingMask		0x0008
    1.44 +/** ESendRetrySpacingStatic flag value. */
    1.45 +#define KRetrySpacingStatic		0x0000
    1.46 +/** ESendRetrySpacingVariable flag value. */
    1.47 +#define KRetrySpacingVariable	0x0008
    1.48 +
    1.49 +
    1.50 +/**
    1.51 +Defines the action to take if an error occurs in message sending.
    1.52 +
    1.53 +@publishedAll
    1.54 +@released
    1.55 +*/
    1.56 +
    1.57 +enum TMsvSendAction
    1.58 +	{
    1.59 +/** Fail and do not retry. */
    1.60 +	ESendActionFail					= KActionFail,
    1.61 +/** Retry (after short retry interval). */
    1.62 +	ESendActionRetryImmediately		= KActionRetryImmediately,
    1.63 +/** Retry (after long retry interval). */
    1.64 +	ESendActionRetryLater			= KActionRetryLater,
    1.65 +/** Do not retry. */
    1.66 +	ESendActionSentAlready			= KActionSentAlready,
    1.67 +/** Retry when condition met.
    1.68 +
    1.69 +This is only supported in 8.1 onwards. In 8.0 this action is treated the same
    1.70 +as ESendActionRetryImmediately.
    1.71 + */
    1.72 +	ESendActionRetryConditionMet	= KActionRetryConditionMet
    1.73 +	};
    1.74 +
    1.75 +/**
    1.76 +Flag that defines retry behaviour if sending a message fails.
    1.77 +
    1.78 +@see TMsvSendErrorAction
    1.79 +
    1.80 +@publishedAll
    1.81 +@released
    1.82 +*/
    1.83 +
    1.84 +enum TMsvSendRetries
    1.85 +	{
    1.86 +/** Retry for a specified number of attempts. */
    1.87 +	ESendRetriesFixed		= KRetriesFixed,
    1.88 +/** Retry until successful (or the user intervenes). */
    1.89 +	ESendRetriesInfinite		= KRetriesInfinite
    1.90 +	};
    1.91 +
    1.92 +/**
    1.93 +Flag that defines retry behaviour if sending a message fails.
    1.94 +
    1.95 +@see TMsvSendErrorAction
    1.96 +
    1.97 +@publishedAll
    1.98 +@released
    1.99 +*/
   1.100 +
   1.101 +enum TMsvSendRetrySpacing
   1.102 +	{
   1.103 +/** Retry at fixed intervals. */
   1.104 +	ESendRetrySpacingStatic		= KRetrySpacingStatic,
   1.105 +/** Retry at variable intervals. */
   1.106 +	ESendRetrySpacingVariable	= KRetrySpacingVariable
   1.107 +	};
   1.108 +
   1.109 +#endif