ktimetracker
task.h
Go to the documentation of this file.
291 long& sessionMinutes, QString& sessionStartTiMe, QString& name, QString& description, DesktopList& desktops,
367 void init( const QString& taskname, const QString& taskdescription, long minutes, long sessionTime, QString sessionStartTiMe,
void setPercentComplete(const int percent, timetrackerstorage *storage)
Update percent complete for this task.
Definition: task.cpp:238
Task(const QString &taskname, const QString &taskdescription, long minutes, long sessionTime, DesktopList desktops, TaskView *parent=0, bool konsolemode=false)
Definition: task.cpp:42
bool parseIncidence(const KCalCore::Incidence::Ptr &, long &minutes, long &sessionMinutes, QString &sessionStartTiMe, QString &name, QString &description, DesktopList &desktops, int &percent_complete, int &priority)
Parses an incidence.
Definition: task.cpp:513
void setRunning(bool on, timetrackerstorage *storage, const QDateTime &when=QDateTime::currentDateTime())
starts or stops a task
Definition: task.cpp:159
void changeParentTotalTimes(long minutesSession, long minutes)
Definition: task.cpp:436
void setTotalTime(long minutes)
Sets the total time, does not change the parent's total time.
Definition: task.h:174
void changeTotalTimes(long minutesSession, long minutes)
adds minutes to total and session time by adding an event
Definition: task.cpp:412
bool isComplete()
Return true if task is complete (percent complete equals 100).
Definition: task.cpp:304
void totalTimesChanged(long minutesSession, long minutes)
void setName(const QString &name, timetrackerstorage *storage)
sets the name of the task
Definition: task.cpp:213
void changeTimes(long minutesSession, long minutes, timetrackerstorage *storage=0)
Add minutes to time and session time by adding an event, and write to storage.
Definition: task.cpp:393
void setTotalSessionTime(long minutes)
Sets the total session time, does not change the parent's total session time.
Definition: task.h:179
QString addTotalSessionTime(long minutes)
Adds minutes to the task's and its supertasks' total session time.
Definition: task.cpp:341
QString addTime(long minutes)
Adds minutes to the time of the task and the total time of its supertasks.
Definition: task.cpp:311
QString addSessionTime(long minutes)
Adds minutes to the task's session time and its supertasks' total session time.
Definition: task.cpp:331
void addComment(const QString &comment, timetrackerstorage *storage)
Add a comment to this task.
Definition: task.cpp:647
void changeTime(long minutes, timetrackerstorage *storage)
Change task time.
Definition: task.cpp:407
QString addTotalTime(long minutes)
Adds minutes to the total time of the task and its supertasks.
Definition: task.cpp:321
QString recalculatetotalsessiontime()
A recursive function to calculate the total session time of a task.
Definition: task.cpp:372
void move(Task *destination)
cut Task out of parent Task or the TaskView and into the destination Task
Definition: task.cpp:623
QString fullName() const
Returns that task name, prefixed by parent tree up to root.
Definition: task.cpp:472
void setPixmapProgress()
Sets an appropriate icon for this task based on its level of completion.
Definition: task.cpp:284
KCalCore::Todo::Ptr asTodo(const KCalCore::Todo::Ptr &calendar) const
Load the todo passed in with this tasks info.
Definition: task.cpp:480
QString recalculatetotaltime()
A recursive function to calculate the total time of a task.
Definition: task.cpp:361
Class to store/retrieve KTimeTracker data to/from persistent storage.
Definition: timetrackerstorage.h:57
void setDescription(const QString &description)
sets the description of the task
Definition: task.cpp:226
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.