karm
Task Class Reference
#include <task.h>
Detailed Description
A class representing a task.A "Task" object stores information about a task such as it's name, total and session times.
It can log when the task is started, stoped or deleted.
If a task is associated with some desktop's activity it can remember that too.
It can also contain subtasks - these are managed using the QListViewItem class.
Definition at line 43 of file task.h.
Signals | |
void | totalTimesChanged (long minutesSession, long minutes) |
void | deletingTask (Task *thisTask) |
Public Member Functions | |
~Task () | |
Task * | firstChild () const |
Task * | nextSibling () const |
Task * | parent () const |
TaskView * | taskView () const |
QString | uid () const |
void | setUid (const QString uid) |
void | cut () |
void | move (Task *destination) |
void | paste (Task *destination) |
int | compare (QListViewItem *i, int col, bool ascending) const |
void | update () |
bool | parseIncidence (KCal::Incidence *, long &minutes, long &sessionMinutes, QString &name, DesktopList &desktops, int &percent_complete) |
KCal::Todo * | asTodo (KCal::Todo *calendar) const |
void | addComment (QString comment, KarmStorage *storage) |
QString | comment () const |
bool | isRoot () const |
bool | remove (QPtrList< Task > &activeTasks, KarmStorage *storage) |
void | setPercentComplete (const int percent, KarmStorage *storage) |
void | setPixmapProgress () |
bool | isComplete () |
void | removeFromView () |
QDateTime | lastStart () |
Task (const QString &taskame, long minutes, long sessionTime, DesktopList desktops, TaskView *parent=0) | |
Task (const QString &taskame, long minutes, long sessionTime, DesktopList desktops, Task *parent=0) | |
Task (KCal::Todo *incident, TaskView *parent) | |
void | changeTime (long minutes, KarmStorage *storage) |
void | changeTimes (long minutesSession, long minutes, KarmStorage *storage=0) |
void | changeTotalTimes (long minutesSession, long minutes) |
void | resetTimes () |
long | time () const |
long | totalTime () const |
long | sessionTime () const |
long | totalSessionTime () const |
QDateTime | startTime () const |
void | startNewSession () |
void | setDesktopList (DesktopList dl) |
DesktopList | getDesktops () const |
QString | getDesktopStr () const |
void | setName (const QString &name, KarmStorage *storage) |
QString | name () const |
QString | fullName () const |
void | setRunning (bool on, KarmStorage *storage, QDateTime whenStarted=QDateTime::currentDateTime()) |
bool | isRunning () const |
Protected Slots | |
void | updateActiveIcon () |
Protected Member Functions | |
void | changeParentTotalTimes (long minutesSession, long minutes) |
Member Function Documentation
|
Add a comment to this task.
|
|
Load the todo passed in with this tasks info.
|
|
Change task time. Adds minutes to both total time and session time.
|
|
Add minutes to time and session time, and write to storage.
|
|
adds minutes to total and session time
|
|
Retrieve the entire comment for the task.
|
|
Sort times numerically, not alphabetically.
|
|
cut Task out of parent Task or the TaskView
|
|
signal that we're about to delete a task
|
|
return parent Task or null in case of TaskView. same as QListViewItem::parent() |
|
Returns that task name, prefixed by parent tree up to root. Task names are seperated by a forward slash: / |
|
Return true if task is complete (percent complete equals 100).
|
|
tells you whether this task is the root of the task tree
|
|
return the state of a task - if it's running or not
|
|
delivers when the task was started last
|
|
cut Task out of parent Task or the TaskView and into the destination Task
|
|
returns the name of this task.
|
|
insert Task into the destination Task
|
|
remove Task with all it's children
|
|
Remove current task and all it's children from the view.
|
|
Reset all times to 0.
|
|
sets the name of the task
|
|
Update percent complete for this task. Tasks that are complete (i.e., percent = 100) do not show up in taskview. If percent NULL, set to zero. If greater than 100, set to 100. If less than zero, set to zero. |
|
Sets an appropriate icon for this task based on its level of completion.
|
|
starts or stops a task
|
|
Set unique id for the task. The uid is the key used to update the storage.
|
|
sets session time to zero.
|
|
Return time the task was started.
|
|
Return task view for this task.
|
|
Return unique iCalendar Todo ID for this task.
|
|
Update the display of the task (all columns) in the UI.
|
|
animate the active icon
|
The documentation for this class was generated from the following files: