1.1 --- a/epoc32/include/msvrcpt.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/msvrcpt.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,69 @@
1.4 -msvrcpt.h
1.5 +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// 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.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +#if !defined(__MSVRCPT_H__)
1.21 +#define __MSVRCPT_H__
1.22 +
1.23 +class RWriteStream;
1.24 +
1.25 +//**********************************
1.26 +// CMsvRecipient
1.27 +//**********************************
1.28 +//
1.29 +// Base class for multiple recipients
1.30 +//
1.31 +
1.32 +class CMsvRecipient : public CBase
1.33 +/** Base class for information relating to a message recipient.
1.34 +@publishedAll
1.35 +@released
1.36 +*/
1.37 + {
1.38 +public:
1.39 + /** Message sending status for a recipient.
1.40 +@publishedAll
1.41 +@released
1.42 +*/
1.43 + enum TRecipientStatus
1.44 + {
1.45 + /** Message is not sent. */
1.46 + ENotYetSent=0,
1.47 + /** Message has been sent. */
1.48 + ESentSuccessfully=1,
1.49 + /** Message sending failed. */
1.50 + EFailedToSend=2};
1.51 + IMPORT_C virtual void InternalizeL(RReadStream& aStream);
1.52 + IMPORT_C virtual void ExternalizeL(RWriteStream& aStream) const;
1.53 + inline TRecipientStatus Status() const;
1.54 + inline void SetStatus(TRecipientStatus aStatus);
1.55 + inline TInt Error() const;
1.56 + inline void SetError(TInt aError);
1.57 + inline const TTime& Time() const;
1.58 + inline TTime& Time();
1.59 + inline TInt Retries() const;
1.60 + inline void IncreaseRetries();
1.61 + inline void ResetRetries();
1.62 +protected:
1.63 + IMPORT_C CMsvRecipient();
1.64 +private:
1.65 + TRecipientStatus iStatus;
1.66 + TInt iError;
1.67 + TInt iRetries;
1.68 + TTime iTime;
1.69 + };
1.70 +
1.71 +#include <msvrcpt.inl>
1.72 +
1.73 +#endif