Konsole
Konsole::PlainTextDecoder Class Reference
#include <TerminalCharacterDecoder.h>

Detailed Description
A terminal character decoder which produces plain text, ignoring colours and other appearance-related properties of the original characters.Definition at line 68 of file TerminalCharacterDecoder.h.
Public Member Functions | |
| PlainTextDecoder () | |
| void | setTrailingWhitespace (bool enable) |
| bool | trailingWhitespace () const |
| virtual void | begin (QTextStream *output) |
| virtual void | end () |
| virtual void | decodeLine (const Character *const characters, int count, LineProperty properties) |
Constructor & Destructor Documentation
| PlainTextDecoder::PlainTextDecoder | ( | ) |
Definition at line 33 of file TerminalCharacterDecoder.cpp.
Member Function Documentation
| void PlainTextDecoder::setTrailingWhitespace | ( | bool | enable | ) |
Set whether trailing whitespace at the end of lines should be included in the output.
Defaults to true.
Definition at line 39 of file TerminalCharacterDecoder.cpp.
| bool PlainTextDecoder::trailingWhitespace | ( | ) | const |
Returns whether trailing whitespace at the end of lines is included in the output.
Definition at line 43 of file TerminalCharacterDecoder.cpp.
| void PlainTextDecoder::begin | ( | QTextStream * | output | ) | [virtual] |
Begin decoding characters.
The resulting text is appended to output.
Implements Konsole::TerminalCharacterDecoder.
Definition at line 47 of file TerminalCharacterDecoder.cpp.
| void PlainTextDecoder::end | ( | ) | [virtual] |
End decoding.
Implements Konsole::TerminalCharacterDecoder.
Definition at line 51 of file TerminalCharacterDecoder.cpp.
| void PlainTextDecoder::decodeLine | ( | const Character *const | characters, | |
| int | count, | |||
| LineProperty | properties | |||
| ) | [virtual] |
Converts a line of terminal characters with associated properties into a text string and writes the string into an output QTextStream.
- Parameters:
-
characters An array of characters of length count.properties Additional properties which affect all characters in the line output The output stream which receives the decoded text
Implements Konsole::TerminalCharacterDecoder.
Definition at line 55 of file TerminalCharacterDecoder.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference