kpilot/lib
PilotMemo Class Reference
Inheritance diagram for PilotMemo:

Detailed Description
Definition at line 38 of file pilotMemo.h.
Public Member Functions | |
PilotMemo (void) | |
PilotMemo (const QString &s) | |
PilotMemo (const PilotRecord *rec) | |
PilotMemo (const PilotRecordBase *r, const QString &s) | |
~PilotMemo () | |
virtual QString | getTextRepresentation (bool richText=false) |
QString | text (void) const |
void | setText (const QString &text) |
QString | getTitle (void) const |
PilotRecord * | pack () |
QString | shortTitle () const |
QString | sensibleTitle () const |
Static Public Attributes | |
static const int | MAX_MEMO_LEN = 8192 |
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 50 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 37 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 67 of file pilotMemo.h.
Member Function Documentation
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 71 of file pilotMemo.cc.
QString PilotMemo::sensibleTitle | ( | ) | const |
Returns a (complete) title if there is one and [unknown] otherwise.
Definition at line 92 of file pilotMemo.cc.
The documentation for this class was generated from the following files: