24
|
1 |
// Copyright (c) 2003-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 "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
/**
|
|
17 |
@file
|
|
18 |
|
|
19 |
Gets the Alphabet for the User Data.
|
|
20 |
|
|
21 |
@return Alphabet
|
|
22 |
|
|
23 |
*/
|
|
24 |
inline TSmsDataCodingScheme::TSmsAlphabet TSmsUserDataSettings::Alphabet() const
|
|
25 |
{
|
|
26 |
return iAlphabet;
|
|
27 |
}
|
|
28 |
|
|
29 |
|
|
30 |
/**
|
|
31 |
* Sets the Alphabet for the User Data.
|
|
32 |
*
|
|
33 |
* @param aAlphabet Alphabet
|
|
34 |
*/
|
|
35 |
inline void TSmsUserDataSettings::SetAlphabet(TSmsDataCodingScheme::TSmsAlphabet aAlphabet)
|
|
36 |
{
|
|
37 |
iAlphabet=aAlphabet;
|
|
38 |
}
|
|
39 |
|
|
40 |
|
|
41 |
/**
|
|
42 |
* Tests if the message text is compressed.
|
|
43 |
*
|
|
44 |
* @return True if the message text is compressed
|
|
45 |
*/
|
|
46 |
inline TBool TSmsUserDataSettings::TextCompressed() const
|
|
47 |
{
|
|
48 |
return iFlags&ESmsFlagCompressed;
|
|
49 |
}
|
|
50 |
|
|
51 |
|
|
52 |
/**
|
|
53 |
* Sets if the message text is compressed.
|
|
54 |
*
|
|
55 |
* @param aCompressed True if the message text is compressed
|
|
56 |
*/
|
|
57 |
inline void TSmsUserDataSettings::SetTextCompressed(TBool aCompressed)
|
|
58 |
{
|
|
59 |
iFlags=aCompressed? iFlags|ESmsFlagCompressed: iFlags&(~ESmsFlagCompressed);
|
|
60 |
}
|