epoc32/include/app/smuthdr.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/app/smuthdr.h	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ b/epoc32/include/app/smuthdr.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -1,9 +1,9 @@
     1.4  // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5  // All rights reserved.
     1.6  // This component and the accompanying materials are made available
     1.7 -// 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.8 +// under the terms of "Eclipse Public License v1.0"
     1.9  // which accompanies this distribution, and is available
    1.10 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.11 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.12  //
    1.13  // Initial Contributors:
    1.14  // Nokia Corporation - initial contribution.
    1.15 @@ -11,8 +11,13 @@
    1.16  // Contributors:
    1.17  //
    1.18  // Description:
    1.19 +// SMUTHDR.H
    1.20  //
    1.21 -
    1.22 +/**
    1.23 + * @file 
    1.24 + * @publishedAll
    1.25 + * @released
    1.26 + */
    1.27  #ifndef __SMUTHDR_H__
    1.28  #define __SMUTHDR_H__
    1.29  
    1.30 @@ -23,6 +28,10 @@
    1.31  #include <msvstd.h>
    1.32  #include <smutset.h>
    1.33  
    1.34 +#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS  
    1.35 +#include <tmsvsmsentry.h>
    1.36 +#endif
    1.37 +
    1.38  class RMsvReadStream;
    1.39  class RMsvWriteStream;
    1.40  class CMsvStore;
    1.41 @@ -56,7 +65,7 @@
    1.42  @publishedAll
    1.43  @released
    1.44  */
    1.45 -class CSmsHeader : public CBase
    1.46 +NONSHARABLE_CLASS (CSmsHeader) : public CBase
    1.47  	{
    1.48  public:
    1.49  
    1.50 @@ -111,6 +120,7 @@
    1.51  	IMPORT_C void StoreL(CMsvStore& aStore) const;
    1.52  
    1.53  	IMPORT_C  TBool ContainsSmsHeaderL(const CMsvStore& aStore); 
    1.54 +
    1.55  	
    1.56  private:
    1.57  	CSmsHeader(CSmsMessage* aSmsMessage = NULL);
    1.58 @@ -129,7 +139,14 @@
    1.59  	void SetCanConcatenate(TBool aCanConcatenate);
    1.60  	
    1.61  	void SetEmailReplyForwardSubjectL(CSmsEmailFields* aEmailFields, const TDesC& aSubject, const TDesC& aSubjectFormat);
    1.62 -	
    1.63 +
    1.64 +#if (defined SYMBIAN_MESSAGESTORE_HEADER_BODY_USING_SQLDB)
    1.65 +	void StoreDbL(CMsvStore& aStore) const;
    1.66 +	void ReStoreDBL(CMsvStore& aStore);
    1.67 +	void GetRecipientL(TDesC16& aRecipientStrList);
    1.68 +	TInt ConvertToTInt(TDesC16& aStr);
    1.69 +#endif
    1.70 +
    1.71  private:
    1.72  	CArrayPtrFlat<CSmsNumber> iRecipients;
    1.73  	CSmsMessage* iMessage;
    1.74 @@ -143,128 +160,7 @@
    1.75  	TBool			iCloseFs;
    1.76  	};
    1.77  	
    1.78 -/**
    1.79 -A specialisation of the message server index class for SMS message entries.
    1.80 -
    1.81 -It provides accessers for SMS message specific data, for instance the class type
    1.82 -of the SMS message.
    1.83 -
    1.84 -@publishedPartner
    1.85 -@released
    1.86 -*/
    1.87 -class TMsvSmsEntry : public TMsvEntry
    1.88 -	{
    1.89 -public:
    1.90 -
    1.91 -/**
    1.92 -Defines a set flags used to access message entry data specific to an SMS message.
    1.93 -
    1.94 -@internalTechnology
    1.95 -@released
    1.96 -
    1.97 -*/
    1.98 -	enum TMsvSmsEntryFlags
    1.99 -		{
   1.100 -/**
   1.101 -Clears the entire set of SMS flags.
   1.102 -*/
   1.103 -		EMsvSmsEntryClearFlag				= 0x00000000,
   1.104 -/**
   1.105 -Mask for the protocol identifier data.
   1.106 -*/
   1.107 -		EMsvSmsEntryProtocolIdentifier		= 0x000000FF,
   1.108 -/**
   1.109 -Mask for the User Prompt Indicator flag.
   1.110 -*/
   1.111 -		EMsvSmsEntryUserPromptIndicator 	= 0x00000100,
   1.112 -/**
   1.113 -Mask for the SMS class data.
   1.114 -*/
   1.115 -		EMsvSmsEntryClass					= 0x00000E00,
   1.116 -/**
   1.117 -Mask for the flag indicating whether the class data has been defined.
   1.118 -*/
   1.119 -		EMsvSmsEntryClassDefined			= 0x00001000,
   1.120 -/**
   1.121 -Mask for the flag indicating whether the message ID is valid. 
   1.122 -*/
   1.123 -		EMsvSmsMessageValid					= 0x00002000,
   1.124 -/**
   1.125 -Mask for the delivery acknowledgement information.
   1.126 -*/
   1.127 -		EMsvSmsEntryDeliveryAckSummary		= 0x0001C000,
   1.128 -/**
   1.129 -Parameter defining the number of bits to be shifted in order for the SMS class
   1.130 -data to be at the LSB of the data block.
   1.131 -*/
   1.132 -		EMsvSmsEntryClassShift				= 9,
   1.133 -/**
   1.134 -Parameter defining the number of bits to be shifted in order for the delivery
   1.135 -acknowlwdgement information to be at the LSB of the data block.
   1.136 -*/
   1.137 -		EMsvSmsEntryDeliveryAckSummaryShift	= 14
   1.138 -		};
   1.139 -
   1.140 -/**
   1.141 -Defines the summary acknowledgement information.
   1.142 -
   1.143 -This information indicates whether the SMS message is not supplying a summary 
   1.144 -for an acknowledgement, is still expecting acknowledgments or it has received 
   1.145 -all expected acknowledgements.
   1.146 -
   1.147 -If all acknowledgements have been received the summary indicates whether all 
   1.148 -the recipients have successfully acknowledged the message, all failed or there
   1.149 -was a mixture of successful and failed acknowledgements from the recipients. 
   1.150 -*/
   1.151 -	enum TMsvSmsEntryAckSummary
   1.152 -		{
   1.153 -/**
   1.154 -No summary information is being formed.
   1.155 -*/
   1.156 -		ENoAckSummary			= 0,
   1.157 -/**
   1.158 -The message is waiting for acknowledgements to be received for all recipients
   1.159 -of this message. Some recipients may have received their acknowledgements but
   1.160 -there are still some recipients that have not.
   1.161 -*/
   1.162 -		EPendingAcks,
   1.163 -/**
   1.164 -The summary indicates that the message was successfully acknowledged by all recipients.
   1.165 -*/
   1.166 -		EAllSuccessful,
   1.167 -/**
   1.168 -The summary indicates that the message failed to be acknowledged by all recipients.
   1.169 -*/
   1.170 -		EAllFailed,
   1.171 -/**
   1.172 -The summary indicates a mixture of successful and failed acknowledgements from 
   1.173 -the recipients of the message. All recipients of this message have received 
   1.174 -their acknowledgements.
   1.175 -*/
   1.176 -		EMixed
   1.177 -		};
   1.178 -
   1.179 -public:
   1.180 -	inline TMsvSmsEntry();
   1.181 -	inline TMsvSmsEntry(const TMsvEntry& aEntry);
   1.182 -
   1.183 -	inline void SetUserPromptIndicator(TBool aUPI);
   1.184 -	inline TBool UserPromptIndicator() const;
   1.185 -
   1.186 -	inline TUint8 ProtocolIdentifier() const;
   1.187 -	inline void SetProtocolIdentifier(TSmsProtocolIdentifier aPID);
   1.188 -	inline void SetProtocolIdentifier(TUint8 aPID);
   1.189 -
   1.190 -	inline TBool Class(TSmsDataCodingScheme::TSmsClass& aClass) const;
   1.191 -	inline void SetClass(TBool aClassDefined,TSmsDataCodingScheme::TSmsClass aClass = TSmsDataCodingScheme::ESmsClass0);
   1.192 -
   1.193 -	IMPORT_C TMsvSmsEntryAckSummary AckSummary(TSmsAckType aAckType) const;
   1.194 -	IMPORT_C void SetAckSummary(TSmsAckType aAckType, TMsvSmsEntryAckSummary aAckSummary);
   1.195 -
   1.196 -	IMPORT_C TBool MessageId(TInt32& aMessageId) const;
   1.197 -	IMPORT_C void SetMessageId(TInt32 aMessageId, TBool aIsValid);
   1.198 -	};
   1.199 -
   1.200  #include <smuthdr.inl>
   1.201  
   1.202  #endif	// __SMUTHDR_H__
   1.203 +