kpilot
PilotMemo Class Reference
#include <pilotMemo.h>
Public Member Functions | |
virtual QString | getTextRepresentation (Qt::TextFormat richText) |
QString | getTitle (void) const |
PilotRecord * | pack () |
PilotMemo (const PilotRecordBase *r, const QString &s) | |
PilotMemo (const PilotRecord *rec) | |
PilotMemo (const QString &s) | |
PilotMemo (void) | |
QString | sensibleTitle () const |
void | setText (const QString &text) |
QString | shortTitle () const |
QString | text (void) const |
~PilotMemo () | |
Static Public Attributes | |
static const int | MAX_MEMO_LEN = 8192 |
Detailed Description
Definition at line 39 of file pilotMemo.h.
Constructor & Destructor Documentation
PilotMemo::PilotMemo | ( | void | ) | [inline] |
PilotMemo::PilotMemo | ( | const QString & | s | ) | [inline] |
Constructor.
Create a memo in the Unfiled category with text s
.
Definition at line 51 of file pilotMemo.h.
PilotMemo::PilotMemo | ( | const PilotRecord * | rec | ) |
Constructor.
Create a memo with the category and attributes of the given record rec
, and extract the text from that record as if it comes from the MemoDB.
Definition at line 38 of file pilotMemo.cc.
PilotMemo::PilotMemo | ( | const PilotRecordBase * | r, | |
const QString & | s | |||
) | [inline] |
Constructor.
Create a memo with category and attributes from the argument r
, and set the text of the memo from string s
.
Definition at line 68 of file pilotMemo.h.
PilotMemo::~PilotMemo | ( | ) | [inline] |
Definition at line 74 of file pilotMemo.h.
Member Function Documentation
QString PilotMemo::getTextRepresentation | ( | Qt::TextFormat | richText | ) | [virtual] |
Definition at line 77 of file pilotMemo.cc.
QString PilotMemo::getTitle | ( | void | ) | const |
Definition at line 91 of file pilotMemo.cc.
PilotRecord * PilotMemo::pack | ( | ) |
Definition at line 44 of file pilotMemo.cc.
QString PilotMemo::sensibleTitle | ( | ) | const |
Returns a (complete) title if there is one and [unknown] otherwise.
Definition at line 121 of file pilotMemo.cc.
void PilotMemo::setText | ( | const QString & | text | ) | [inline] |
Definition at line 78 of file pilotMemo.h.
QString PilotMemo::shortTitle | ( | ) | const |
Return a "short but sensible" title.
getTitle() returns the first line of the memo, which may be very long and inconvenient. shortTitle() returns about 30 characters.
Definition at line 100 of file pilotMemo.cc.
QString PilotMemo::text | ( | void | ) | const [inline] |
Definition at line 77 of file pilotMemo.h.
Member Data Documentation
const int PilotMemo::MAX_MEMO_LEN = 8192 [static] |
Definition at line 82 of file pilotMemo.h.
The documentation for this class was generated from the following files: