epoc32/include/gsmuset.h
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
       
     1 // Copyright (c) 1999-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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // This file contains the class definition for TSmsUserDataSettings
       
    15 // 
       
    16 //
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @publishedAll
       
    23  @released
       
    24 */
       
    25 
       
    26 #ifndef __GSMUSET_H__
       
    27 #define __GSMUSET_H__
       
    28 
       
    29 #include <gsmuelem.h>
       
    30 
       
    31 /**
       
    32  *  Operations on TP-UD User Data.
       
    33  */
       
    34 class TSmsUserDataSettings
       
    35 	{
       
    36 public:
       
    37 	IMPORT_C TSmsUserDataSettings::TSmsUserDataSettings();
       
    38 
       
    39 	inline TSmsDataCodingScheme::TSmsAlphabet Alphabet() const;
       
    40 	inline void SetAlphabet(TSmsDataCodingScheme::TSmsAlphabet aAlphabet);
       
    41 	inline TBool TextCompressed() const;
       
    42 	inline void SetTextCompressed(TBool aCompressed);
       
    43 	IMPORT_C TBool TextConcatenated(TBool* aIs16Bit=NULL) const;
       
    44 	IMPORT_C void SetTextConcatenated(TBool aConcatenated,TBool aIs16Bit=EFalse);
       
    45 
       
    46 	IMPORT_C void InternalizeL(RReadStream& aStream);
       
    47 	IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
       
    48 
       
    49 private:
       
    50 	enum TSmsUserDataSettingsFlags
       
    51 		{
       
    52 		ESmsFlagCompressed=0x01,
       
    53 		ESmsFlagConcatenated=0x02,
       
    54 		ESmsFlagConcatenatedUsing16BitReference=0x04
       
    55 		};
       
    56 private:
       
    57 	TSmsDataCodingScheme::TSmsAlphabet iAlphabet;
       
    58 	TInt iFlags;
       
    59 	};
       
    60 
       
    61 
       
    62 #include "gsmuset.inl"
       
    63 
       
    64 #endif // !defined __GSMUSET_H__