ktimetracker
Signals |
Public Member Functions |
Protected Slots |
Protected Member Functions |
List of all members
Task Class Reference
#include <task.h>
Inheritance diagram for Task:

Signals | |
| void | deletingTask (Task *thisTask) |
| void | totalTimesChanged (long minutesSession, long minutes) |
Public Member Functions | |
| Task (const QString &taskname, const QString &taskdescription, long minutes, long sessionTime, DesktopList desktops, TaskView *parent=0, bool konsolemode=false) | |
| Task (const QString &taskname, const QString &taskdescription, long minutes, long sessionTime, DesktopList desktops, Task *parent=0) | |
| Task (const KCalCore::Todo::Ptr &incident, TaskView *parent, bool konsolemode=false) | |
| ~Task () | |
| void | addComment (const QString &comment, timetrackerstorage *storage) |
| KCalCore::Todo::Ptr | asTodo (const KCalCore::Todo::Ptr &calendar) const |
| QString | comment () const |
| void | cut () |
| void | delete_recursive () |
| int | depth () |
| bool | isComplete () |
| bool | isRoot () const |
| void | move (Task *destination) |
| Task * | parent () const |
| bool | parseIncidence (const KCalCore::Incidence::Ptr &, long &minutes, long &sessionMinutes, QString &sessionStartTiMe, QString &name, QString &description, DesktopList &desktops, int &percent_complete, int &priority) |
| void | paste (Task *destination) |
| int | percentComplete () const |
| int | priority () const |
| bool | remove (timetrackerstorage *storage) |
| void | setDescription (QString desc, timetrackerstorage *storage) |
| void | setPercentComplete (const int percent, timetrackerstorage *storage) |
| void | setPixmapProgress () |
| void | setPriority (int priority) |
| void | setUid (const QString &uid) |
| TaskView * | taskView () const |
| QString | uid () const |
| void | update () |
| void | changeTime (long minutes, timetrackerstorage *storage) |
| void | changeTimes (long minutesSession, long minutes, timetrackerstorage *storage=0) |
| void | changeTotalTimes (long minutesSession, long minutes) |
| QString | addTime (long minutes) |
| QString | addTotalTime (long minutes) |
| QString | addSessionTime (long minutes) |
| QString | addTotalSessionTime (long minutes) |
| QString | setTime (long minutes) |
| void | setTotalTime (long minutes) |
| void | setTotalSessionTime (long minutes) |
| QString | recalculatetotaltime () |
| QString | recalculatetotalsessiontime () |
| QString | setSessionTime (long minutes) |
| void | resetTimes () |
| long | time () const |
| long | totalTime () const |
| long | sessionTime () const |
| long | totalSessionTime () const |
| KDateTime | sessionStartTiMe () const |
| QDateTime | startTime () const |
| void | startNewSession () |
| void | setDesktopList (DesktopList dl) |
| DesktopList | desktops () const |
| QString | getDesktopStr () const |
| void | setName (const QString &name, timetrackerstorage *storage) |
| void | setDescription (const QString &description) |
| QString | name () const |
| QString | description () const |
| QString | fullName () const |
| void | setRunning (bool on, timetrackerstorage *storage, const QDateTime &when=QDateTime::currentDateTime()) |
| void | resumeRunning () |
| bool | isRunning () const |
Protected Slots | |
| void | updateActiveIcon () |
Protected Member Functions | |
| void | changeParentTotalTimes (long minutesSession, long minutes) |
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.
Constructor & Destructor Documentation
| Task::Task | ( | const QString & | taskname, |
| const QString & | taskdescription, | ||
| long | minutes, | ||
| long | sessionTime, | ||
| DesktopList | desktops, | ||
| TaskView * | parent = 0, |
||
| bool | konsolemode = false |
||
| ) |
| Task::Task | ( | const QString & | taskname, |
| const QString & | taskdescription, | ||
| long | minutes, | ||
| long | sessionTime, | ||
| DesktopList | desktops, | ||
| Task * | parent = 0 |
||
| ) |
| Task::Task | ( | const KCalCore::Todo::Ptr & | incident, |
| TaskView * | parent, | ||
| bool | konsolemode = false |
||
| ) |
Member Function Documentation
| void Task::addComment | ( | const QString & | comment, |
| timetrackerstorage * | storage | ||
| ) |
| QString Task::addSessionTime | ( | long | minutes | ) |
| QString Task::addTime | ( | long | minutes | ) |
| QString Task::addTotalSessionTime | ( | long | minutes | ) |
| QString Task::addTotalTime | ( | long | minutes | ) |
| KCalCore::Todo::Ptr Task::asTodo | ( | const KCalCore::Todo::Ptr & | calendar | ) | const |
|
protected |
| void Task::changeTime | ( | long | minutes, |
| timetrackerstorage * | storage | ||
| ) |
| void Task::changeTimes | ( | long | minutesSession, |
| long | minutes, | ||
| timetrackerstorage * | storage = 0 |
||
| ) |
| void Task::changeTotalTimes | ( | long | minutesSession, |
| long | minutes | ||
| ) |
| QString Task::comment | ( | ) | const |
| void Task::cut | ( | ) |
|
signal |
signal that we're about to delete a task
| QString Task::description | ( | ) | const |
| DesktopList Task::desktops | ( | ) | const |
| QString Task::fullName | ( | ) | const |
| bool Task::isComplete | ( | ) |
|
inline |
| bool Task::isRunning | ( | ) | const |
| void Task::move | ( | Task * | destination | ) |
| QString Task::name | ( | ) | const |
|
inline |
| bool Task::parseIncidence | ( | const KCalCore::Incidence::Ptr & | incident, |
| long & | minutes, | ||
| long & | sessionMinutes, | ||
| QString & | sessionStartTiMe, | ||
| QString & | name, | ||
| QString & | description, | ||
| DesktopList & | desktops, | ||
| int & | percent_complete, | ||
| int & | priority | ||
| ) |
| void Task::paste | ( | Task * | destination | ) |
| QString Task::recalculatetotalsessiontime | ( | ) |
| QString Task::recalculatetotaltime | ( | ) |
| bool Task::remove | ( | timetrackerstorage * | storage | ) |
| void Task::resetTimes | ( | ) |
| void Task::resumeRunning | ( | ) |
| void Task::setDescription | ( | const QString & | description | ) |
| void Task::setDescription | ( | QString | desc, |
| timetrackerstorage * | storage | ||
| ) |
Set a task's description A description is a comment.
| void Task::setDesktopList | ( | DesktopList | dl | ) |
| void Task::setName | ( | const QString & | name, |
| timetrackerstorage * | storage | ||
| ) |
| void Task::setPercentComplete | ( | const int | percent, |
| timetrackerstorage * | storage | ||
| ) |
| void Task::setPixmapProgress | ( | ) |
| void Task::setPriority | ( | int | priority | ) |
| void Task::setRunning | ( | bool | on, |
| timetrackerstorage * | storage, | ||
| const QDateTime & | when = QDateTime::currentDateTime() |
||
| ) |
starts or stops a task
- Parameters
-
on true or false for starting or stopping a task storage a pointer to a timetrackerstorage object. when time when the task was started or stopped. Normally QDateTime::currentDateTime, but if calendar has been changed by another program and being reloaded the task is set to running with another start date
| QString Task::setSessionTime | ( | long | minutes | ) |
| QString Task::setTime | ( | long | minutes | ) |
|
inline |
|
inline |
| void Task::setUid | ( | const QString & | uid | ) |
| QDateTime Task::startTime | ( | ) | const |
|
inline |
|
inline |
|
signal |
| QString Task::uid | ( | ) | const |
| void Task::update | ( | ) |
|
protectedslot |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference