--- a/epoc32/include/csmsemailfields.h Tue Nov 24 13:55:44 2009 +0000
+++ b/epoc32/include/csmsemailfields.h Tue Mar 16 16:12:26 2010 +0000
@@ -1,1 +1,65 @@
-csmsemailfields.h
+// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// 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
+// which accompanies this distribution, and is available
+// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+//
+
+#ifndef __CSMSEMAILFIELDS_H__
+#define __CSMSEMAILFIELDS_H__
+
+#include <e32base.h>
+#include <s32file.h>
+#include <badesca.h>
+
+class CMsvStore;
+
+/**
+Encapsulates the address and subject fields for Email sent over SMS.
+
+@publishedAll
+@released
+*/
+class CSmsEmailFields : public CBase
+ {
+public:
+ IMPORT_C static CSmsEmailFields* NewL();
+ IMPORT_C static CSmsEmailFields* NewL(const CSmsEmailFields& aEmailFields);
+ IMPORT_C virtual ~CSmsEmailFields();
+
+ IMPORT_C void Reset();
+ IMPORT_C TInt Length() const;
+ IMPORT_C TBool HasAddress() const;
+ IMPORT_C HBufC* ComposeLC() const;
+ TInt ParseL(const TDesC& aBuffer);
+
+ IMPORT_C void AddAddressL(const TDesC& aAddress);
+ IMPORT_C void RemoveAddress(TInt aIndex);
+ IMPORT_C const MDesCArray& Addresses() const;
+
+ IMPORT_C void SetSubjectL(const TDesC& aSubject);
+ IMPORT_C const TDesC& Subject() const;
+
+ void RestoreL(CMsvStore& aStore);
+ void StoreL(CMsvStore& aStore) const;
+private:
+ CSmsEmailFields();
+ void ConstructL();
+ void ConstructL(const CSmsEmailFields& aEmailFields);
+
+ void InternalizeL(RReadStream& aStream);
+ void ExternalizeL(RWriteStream& aStream) const;
+private:
+ CDesCArray* iAddresses;
+ HBufC* iSubject;
+ };
+
+#endif // __CSMSEMAILFIELDS_H__