| class CEmsFormatIE : public CEmsInformationElement |
CEmsFormatIE wraps the creation & modification of an EMS format information element into a single class. Format of Extended Object. ----------------------------
Position (Octet) Bit Description 1 Start Position 2 Text Formatting Length 3 Formatting mode 3 1..0 Alignment 1..0 0 0 Left 1..0 0 1 Center 1..0 1 0 Right 1..0 1 1 Lang depend (default)
3..2 FontSize 3..2 0 0 Normal 3..2 0 1 Large 3..2 1 0 Small 3..2 1 1 reserved
4 Style Bold (1=on) 5 Style Italic (1=on) 6 Style Underline (1=on) 7 Style Strikethrough (1=on)
4 3..0 Text Color (See header for values) 3gpp Vrs 5 7..4 Background Text Color (See header for values) 3gpp Vrs 5
3gpp Spec V5 section 9.2.3.24.10.1.1
| Public Member Functions | |
|---|---|
| IMPORT_C TAlignment | Alignment() |
| IMPORT_C TBool | Bold() |
| IMPORT_C void | CopyL(const CEmsFormatIE &) |
| IMPORT_C CEmsInformationElement * | DuplicateL() |
| IMPORT_C TFontSize | FontSize() |
| IMPORT_C TUint | FormatLength() |
| IMPORT_C TBool | Italic() |
| IMPORT_C CEmsFormatIE * | NewL() |
| IMPORT_C void | SetAlignment(TAlignment) |
| IMPORT_C void | SetBold(TBool) |
| IMPORT_C void | SetFontSize(TFontSize) |
| IMPORT_C void | SetFormatLength(TUint) |
| IMPORT_C void | SetItalic(TBool) |
| IMPORT_C void | SetStrikethrough(TBool) |
| IMPORT_C void | SetUnderline(TBool) |
| IMPORT_C TBool | Strikethrough() |
| IMPORT_C TBool | Underline() |
| Private Member Functions | |
|---|---|
| CEmsFormatIE() | |
| void | DecodeBodyL(const TPtrC8, TBool) |
| void | EncodeBodyL(TPtr8, TBool) |
| TInt | SerialisedBodyLength() |
| Public Member Enumerations | |
|---|---|
| enum | TAlignment { ELeft = 0x00, ECenter = 0x01, ERight = 0x02, ELangDepend = 0x03 } |
| enum | TColor { EBlack = 0x00, EDarkGrey = 0x01, EDarkRed = 0x02, EDarkYellow = 0x03, EDarkGreen = 0x04, EDarkCyan = 0x05, EDarkBlue = 0x06, EDarkMagenta = 0x07, EGrey = 0x08, EWhite = 0x09, EBrightRed = 0x0A, EBrightYellow = 0x0B, EBrightGreen = 0x0C, EBrightCyan = 0x0D, EBrightBlue = 0x0E, EBrightMagenta = 0x0F } |
| enum | TEmsFormat { EAlignmentMask = 0x03, EFontSizeMask = 0x0c, EBold = 0x10, EItalic = 0x20, EUnderline = 0x40, EStrikethrough = 0x80 } |
| enum | TFontSize { ENormal = 0x00, ELarge = 0x01, ESmall = 0x02, EReserved = 0x03 } |
| Inherited Enumerations | |
|---|---|
| CSmsInformationElement:TSmsInformationElementIdentifier | |
| Private Attributes | |
|---|---|
| TUint8 | iFormat |
| TUint | iFormatLength |
| Inherited Attributes | |
|---|---|
| CEmsInformationElement::iEncodedBodyLength | |
| CEmsInformationElement::iStartPosition | |
| CSmsInformationElement::iData | |
| CSmsInformationElement::iIdentifier | |
| IMPORT_C void | CopyL | ( | const CEmsFormatIE & | aSrc | ) |
| const CEmsFormatIE & aSrc |
| void | DecodeBodyL | ( | const TPtrC8 | aPtr, |
| TBool | aIsFromSerialisation | |||
| ) | [private, virtual] | |||
Decodes the raw data out of an information element into this class.
| IMPORT_C CEmsInformationElement * | DuplicateL | ( | ) | const [virtual] |
Creates an exact copy of the object.
| void | EncodeBodyL | ( | TPtr8 | aPtr, |
| TBool | aIsForSerialisation | |||
| ) | const [private, virtual] | |||
Encodes the format object into its raw format. (no IE id)
| IMPORT_C void | SetAlignment | ( | TAlignment | aAlignment | ) |
| TAlignment aAlignment |
| IMPORT_C void | SetFontSize | ( | TFontSize | aSize | ) |
| TFontSize aSize |
| IMPORT_C void | SetFormatLength | ( | TUint | aLength | ) |
| TUint aLength |
| IMPORT_C void | SetStrikethrough | ( | TBool | aStrikethrough | ) |
| TBool aStrikethrough |
| IMPORT_C void | SetUnderline | ( | TBool | aUnderline | ) |
| TBool aUnderline |
| EBlack = 0x00 | |
| EDarkGrey = 0x01 | |
| EDarkRed = 0x02 | |
| EDarkYellow = 0x03 | |
| EDarkGreen = 0x04 | |
| EDarkCyan = 0x05 | |
| EDarkBlue = 0x06 | |
| EDarkMagenta = 0x07 | |
| EGrey = 0x08 | |
| EWhite = 0x09 | |
| EBrightRed = 0x0A | |
| EBrightYellow = 0x0B | |
| EBrightGreen = 0x0C | |
| EBrightCyan = 0x0D | |
| EBrightBlue = 0x0E | |
| EBrightMagenta = 0x0F |
| EAlignmentMask = 0x03 | |
| EFontSizeMask = 0x0c | |
| EBold = 0x10 | |
| EItalic = 0x20 | |
| EUnderline = 0x40 | |
| EStrikethrough = 0x80 |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.