kpilot/lib
PilotTodoEntry Class Reference
#include <pilotTodoEntry.h>

Detailed Description
A decoded ToDo item.
Definition at line 49 of file pilotTodoEntry.h.
Public Member Functions | |
PilotTodoEntry () | |
PilotTodoEntry (PilotRecord *rec) | |
PilotTodoEntry (const PilotTodoEntry &e) | |
~PilotTodoEntry () | |
QString | getTextRepresentation (Qt::TextFormat richText) |
PilotTodoEntry & | operator= (const PilotTodoEntry &e) |
struct tm | getDueDate () const |
void | setDueDate (struct tm &d) |
int | getIndefinite () const |
void | setIndefinite (int i) |
int | getPriority () const |
void | setPriority (int p) |
int | getComplete () const |
void | setComplete (int c) |
QString | getDescription () const |
void | setDescription (const QString &) |
QString | getNote () const |
void | setNote (const QString ¬e) |
QString | getCategoryLabel () const |
PilotRecord * | pack () const |
Protected Member Functions | |
const char * | getDescriptionP () const |
void | setDescriptionP (const char *, int len=-1) |
const char * | getNoteP () const |
void | setNoteP (const char *, int len=-1) |
Constructor & Destructor Documentation
PilotTodoEntry::PilotTodoEntry | ( | ) |
PilotTodoEntry::PilotTodoEntry | ( | PilotRecord * | rec | ) |
Constructor.
Create a ToDo item and fill it with data from the uninterpreted record rec
. The record may be NULL, in which case the todo is empty and its category and ID are zero, as in the constructor above.
Definition at line 52 of file pilotTodoEntry.cc.
PilotTodoEntry::PilotTodoEntry | ( | const PilotTodoEntry & | e | ) |
PilotTodoEntry::~PilotTodoEntry | ( | ) | [inline] |
Member Function Documentation
QString PilotTodoEntry::getTextRepresentation | ( | Qt::TextFormat | richText | ) |
Return a string for the ToDo item.
If
- Parameters:
-
richText is true, then use qt style markup to make the string clearer when displayed.
Definition at line 118 of file pilotTodoEntry.cc.
PilotTodoEntry & PilotTodoEntry::operator= | ( | const PilotTodoEntry & | e | ) |
struct tm PilotTodoEntry::getDueDate | ( | ) | const [inline, read] |
void PilotTodoEntry::setDueDate | ( | struct tm & | d | ) | [inline] |
int PilotTodoEntry::getIndefinite | ( | ) | const [inline] |
Return the indefinite status of the ToDo (? that is, whether it had a Due Date that is relevant or not).
Return values are 0 (not indefinite) or non-0.
Definition at line 93 of file pilotTodoEntry.h.
void PilotTodoEntry::setIndefinite | ( | int | i | ) | [inline] |
int PilotTodoEntry::getPriority | ( | ) | const [inline] |
Return the priority of the ToDo item.
The priority ranges from 1-5 on the handheld, so this needs to be mapped (perhaps) onto KOrganizer's priority levels.
Definition at line 108 of file pilotTodoEntry.h.
void PilotTodoEntry::setPriority | ( | int | p | ) | [inline] |
int PilotTodoEntry::getComplete | ( | ) | const [inline] |
Return whether the ToDo is complete (done, finished) or not.
Definition at line 120 of file pilotTodoEntry.h.
void PilotTodoEntry::setComplete | ( | int | c | ) | [inline] |
QString PilotTodoEntry::getDescription | ( | ) | const |
Get the ToDo item's description (which is the title shown on the handheld, and the item's Title in KDE).
This uses the default codec.
Definition at line 221 of file pilotTodoEntry.cc.
void PilotTodoEntry::setDescription | ( | const QString & | desc | ) |
QString PilotTodoEntry::getNote | ( | ) | const |
Get the ToDo item's note (the longer text, not immediately accessible on the handheld).
This uses the default codec.
Definition at line 266 of file pilotTodoEntry.cc.
void PilotTodoEntry::setNote | ( | const QString & | note | ) |
QString PilotTodoEntry::getCategoryLabel | ( | ) | const |
Returns the label for the category this ToDo item is in.
The documentation for this class was generated from the following files: