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 "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #if !defined(__MSVRCPT_H__)
21 //**********************************
23 //**********************************
25 // Base class for multiple recipients
28 class CMsvRecipient : public CBase
29 /** Base class for information relating to a message recipient.
35 /** Message sending status for a recipient.
41 /** Message is not sent. */
43 /** Message has been sent. */
45 /** Message sending failed. */
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;
55 inline TInt Retries() const;
56 inline void IncreaseRetries();
57 inline void ResetRetries();
58 #if (defined SYMBIAN_MESSAGESTORE_HEADER_BODY_USING_SQLDB)
59 inline void SetRetries(TInt aRetries);
60 inline void SetTimeValue(TInt64 aTime);
63 IMPORT_C CMsvRecipient();
65 TRecipientStatus iStatus;
71 #include <msvrcpt.inl>