Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 // Copyright (c) 2004-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __CSMSEMAILFIELDS_H__
17 #define __CSMSEMAILFIELDS_H__
26 Encapsulates the address and subject fields for Email sent over SMS.
31 class CSmsEmailFields : public CBase
34 IMPORT_C static CSmsEmailFields* NewL();
35 IMPORT_C static CSmsEmailFields* NewL(const CSmsEmailFields& aEmailFields);
36 IMPORT_C virtual ~CSmsEmailFields();
38 IMPORT_C void Reset();
39 IMPORT_C TInt Length() const;
40 IMPORT_C TBool HasAddress() const;
41 IMPORT_C HBufC* ComposeLC() const;
42 TInt ParseL(const TDesC& aBuffer);
44 IMPORT_C void AddAddressL(const TDesC& aAddress);
45 IMPORT_C void RemoveAddress(TInt aIndex);
46 IMPORT_C const MDesCArray& Addresses() const;
48 IMPORT_C void SetSubjectL(const TDesC& aSubject);
49 IMPORT_C const TDesC& Subject() const;
51 void RestoreL(CMsvStore& aStore);
52 void StoreL(CMsvStore& aStore) const;
56 void ConstructL(const CSmsEmailFields& aEmailFields);
58 void InternalizeL(RReadStream& aStream);
59 void ExternalizeL(RWriteStream& aStream) const;
61 CDesCArray* iAddresses;
65 #endif // __CSMSEMAILFIELDS_H__