epoc32/include/app/smuthdr.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
--- a/epoc32/include/app/smuthdr.h	Wed Mar 31 12:27:01 2010 +0100
+++ b/epoc32/include/app/smuthdr.h	Wed Mar 31 12:33:34 2010 +0100
@@ -1,9 +1,9 @@
 // Copyright (c) 1999-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
+// under the terms of "Eclipse Public License v1.0"
 // which accompanies this distribution, and is available
-// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
 //
 // Initial Contributors:
 // Nokia Corporation - initial contribution.
@@ -11,8 +11,13 @@
 // Contributors:
 //
 // Description:
+// SMUTHDR.H
 //
-
+/**
+ * @file 
+ * @publishedAll
+ * @released
+ */
 #ifndef __SMUTHDR_H__
 #define __SMUTHDR_H__
 
@@ -23,6 +28,10 @@
 #include <msvstd.h>
 #include <smutset.h>
 
+#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS  
+#include <tmsvsmsentry.h>
+#endif
+
 class RMsvReadStream;
 class RMsvWriteStream;
 class CMsvStore;
@@ -56,7 +65,7 @@
 @publishedAll
 @released
 */
-class CSmsHeader : public CBase
+NONSHARABLE_CLASS (CSmsHeader) : public CBase
 	{
 public:
 
@@ -111,6 +120,7 @@
 	IMPORT_C void StoreL(CMsvStore& aStore) const;
 
 	IMPORT_C  TBool ContainsSmsHeaderL(const CMsvStore& aStore); 
+
 	
 private:
 	CSmsHeader(CSmsMessage* aSmsMessage = NULL);
@@ -129,7 +139,14 @@
 	void SetCanConcatenate(TBool aCanConcatenate);
 	
 	void SetEmailReplyForwardSubjectL(CSmsEmailFields* aEmailFields, const TDesC& aSubject, const TDesC& aSubjectFormat);
-	
+
+#if (defined SYMBIAN_MESSAGESTORE_HEADER_BODY_USING_SQLDB)
+	void StoreDbL(CMsvStore& aStore) const;
+	void ReStoreDBL(CMsvStore& aStore);
+	void GetRecipientL(TDesC16& aRecipientStrList);
+	TInt ConvertToTInt(TDesC16& aStr);
+#endif
+
 private:
 	CArrayPtrFlat<CSmsNumber> iRecipients;
 	CSmsMessage* iMessage;
@@ -143,128 +160,7 @@
 	TBool			iCloseFs;
 	};
 	
-/**
-A specialisation of the message server index class for SMS message entries.
-
-It provides accessers for SMS message specific data, for instance the class type
-of the SMS message.
-
-@publishedPartner
-@released
-*/
-class TMsvSmsEntry : public TMsvEntry
-	{
-public:
-
-/**
-Defines a set flags used to access message entry data specific to an SMS message.
-
-@internalTechnology
-@released
-
-*/
-	enum TMsvSmsEntryFlags
-		{
-/**
-Clears the entire set of SMS flags.
-*/
-		EMsvSmsEntryClearFlag				= 0x00000000,
-/**
-Mask for the protocol identifier data.
-*/
-		EMsvSmsEntryProtocolIdentifier		= 0x000000FF,
-/**
-Mask for the User Prompt Indicator flag.
-*/
-		EMsvSmsEntryUserPromptIndicator 	= 0x00000100,
-/**
-Mask for the SMS class data.
-*/
-		EMsvSmsEntryClass					= 0x00000E00,
-/**
-Mask for the flag indicating whether the class data has been defined.
-*/
-		EMsvSmsEntryClassDefined			= 0x00001000,
-/**
-Mask for the flag indicating whether the message ID is valid. 
-*/
-		EMsvSmsMessageValid					= 0x00002000,
-/**
-Mask for the delivery acknowledgement information.
-*/
-		EMsvSmsEntryDeliveryAckSummary		= 0x0001C000,
-/**
-Parameter defining the number of bits to be shifted in order for the SMS class
-data to be at the LSB of the data block.
-*/
-		EMsvSmsEntryClassShift				= 9,
-/**
-Parameter defining the number of bits to be shifted in order for the delivery
-acknowlwdgement information to be at the LSB of the data block.
-*/
-		EMsvSmsEntryDeliveryAckSummaryShift	= 14
-		};
-
-/**
-Defines the summary acknowledgement information.
-
-This information indicates whether the SMS message is not supplying a summary 
-for an acknowledgement, is still expecting acknowledgments or it has received 
-all expected acknowledgements.
-
-If all acknowledgements have been received the summary indicates whether all 
-the recipients have successfully acknowledged the message, all failed or there
-was a mixture of successful and failed acknowledgements from the recipients. 
-*/
-	enum TMsvSmsEntryAckSummary
-		{
-/**
-No summary information is being formed.
-*/
-		ENoAckSummary			= 0,
-/**
-The message is waiting for acknowledgements to be received for all recipients
-of this message. Some recipients may have received their acknowledgements but
-there are still some recipients that have not.
-*/
-		EPendingAcks,
-/**
-The summary indicates that the message was successfully acknowledged by all recipients.
-*/
-		EAllSuccessful,
-/**
-The summary indicates that the message failed to be acknowledged by all recipients.
-*/
-		EAllFailed,
-/**
-The summary indicates a mixture of successful and failed acknowledgements from 
-the recipients of the message. All recipients of this message have received 
-their acknowledgements.
-*/
-		EMixed
-		};
-
-public:
-	inline TMsvSmsEntry();
-	inline TMsvSmsEntry(const TMsvEntry& aEntry);
-
-	inline void SetUserPromptIndicator(TBool aUPI);
-	inline TBool UserPromptIndicator() const;
-
-	inline TUint8 ProtocolIdentifier() const;
-	inline void SetProtocolIdentifier(TSmsProtocolIdentifier aPID);
-	inline void SetProtocolIdentifier(TUint8 aPID);
-
-	inline TBool Class(TSmsDataCodingScheme::TSmsClass& aClass) const;
-	inline void SetClass(TBool aClassDefined,TSmsDataCodingScheme::TSmsClass aClass = TSmsDataCodingScheme::ESmsClass0);
-
-	IMPORT_C TMsvSmsEntryAckSummary AckSummary(TSmsAckType aAckType) const;
-	IMPORT_C void SetAckSummary(TSmsAckType aAckType, TMsvSmsEntryAckSummary aAckSummary);
-
-	IMPORT_C TBool MessageId(TInt32& aMessageId) const;
-	IMPORT_C void SetMessageId(TInt32 aMessageId, TBool aIsValid);
-	};
-
 #include <smuthdr.inl>
 
 #endif	// __SMUTHDR_H__
+