epoc32/include/mw/msvrcpt.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100 (2010-03-31)
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 epoc32/include/msvrcpt.h@2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
     1 // Copyright (c) 1998-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #if !defined(__MSVRCPT_H__)
    17 #define __MSVRCPT_H__
    18 
    19 class RWriteStream;
    20 
    21 //**********************************
    22 // CMsvRecipient
    23 //**********************************
    24 //
    25 // Base class for  multiple recipients
    26 //
    27 
    28 class CMsvRecipient : public CBase
    29 /** Base class for information relating to a message recipient. 
    30 @publishedAll
    31 @released
    32 */
    33 	{
    34 public:
    35 	/** Message sending status for a recipient. 
    36 @publishedAll
    37 @released
    38 */
    39 	enum TRecipientStatus 
    40 							{	
    41 	/** Message is not sent. */
    42 							ENotYetSent=0,
    43 	/** Message has been sent. */
    44 							ESentSuccessfully=1,
    45 	/** Message sending failed. */
    46 				 			EFailedToSend=2};
    47 	IMPORT_C virtual void InternalizeL(RReadStream& aStream);
    48 	IMPORT_C virtual void ExternalizeL(RWriteStream& aStream) const;
    49 	inline TRecipientStatus Status() const;
    50 	inline void SetStatus(TRecipientStatus aStatus);
    51 	inline TInt Error() const;
    52 	inline void SetError(TInt aError);
    53 	inline const TTime& Time() const;
    54 	inline TTime& Time();
    55 	inline TInt Retries() const;
    56 	inline void IncreaseRetries();
    57 	inline void ResetRetries();
    58 protected:
    59 	IMPORT_C CMsvRecipient();
    60 private:
    61 	TRecipientStatus iStatus;
    62 	TInt   iError;
    63 	TInt   iRetries;
    64 	TTime	 iTime;
    65 	};
    66 
    67 #include <msvrcpt.inl>
    68 
    69 #endif