KDE PIM / Developers / API Docs / karm

TaskView Class Reference

Container and interface for the tasks. More...

#include <taskview.h>

Inherits KListView.

List of all members.

Public Slots

Signals

Public Member Functions

Protected Slots


Detailed Description

Container and interface for the tasks.


Member Function Documentation

Task * TaskView::first_child  )  const
 

Return the first item in the view, cast to a Task pointer.

Task * TaskView::current_item  )  const
 

Return the current item in the view, cast to a Task pointer.

Task * TaskView::item_at_index int  i  ) 
 

Return the i'th item (zero-based), cast to a Task pointer.

void TaskView::load  ) 
 

Load the view from storage.

void TaskView::closeStorage  ) 
 

Close the storage and release lock.

void TaskView::startNewSession  ) 
 

Reset session time to zero for all tasks.

void TaskView::resetTimeForAllTasks  ) 
 

Reset session and total time to zero for all tasks.

long TaskView::count  ) 
 

Return the total number if items in the view.

QValueList< HistoryEvent > TaskView::getHistory const QDate &  from,
const QDate &  to
const
 

Return list of start/stop events for given date range.

void TaskView::scheduleSave  ) 
 

Schedule that we should save very soon.

Preferences * TaskView::preferences  ) 
 

Return preferences user selected on settings dialog.

QString TaskView::addTask const QString &  taskame,
long  total,
long  session,
const DesktopList &  desktops,
Task parent = 0
 

Add a task to view and storage.

QString TaskView::save  )  [slot]
 

Save to persistent storage.

void TaskView::startCurrentTimer  )  [slot]
 

Start the timer on the current item (task) in view.

void TaskView::stopCurrentTimer  )  [slot]
 

Stop the timer for the current item in the view.

void TaskView::stopAllTimers  )  [slot]
 

Stop all running timers.

void TaskView::changeTimer QListViewItem *  = 0  )  [slot]
 

Stop all running timers, and start timer on current item.

void TaskView::newTask  )  [slot]
 

Calls newTask with caption "New Task".

void TaskView::newTask QString  caption,
Task parent
[slot]
 

Display edit task dialog and create a new task with results.

void TaskView::refresh  )  [slot]
 

Used to refresh (e.g.

after import)

void TaskView::loadFromFlatFile  )  [slot]
 

Used to import a legacy file format.

void TaskView::importPlanner  )  [slot]
 

used to import tasks from imendio planner

void TaskView::exportcsvFile  )  [slot]
 

Export comma separated values format for task time totals.

QString TaskView::exportcsvHistory  )  [slot]
 

Export comma-separated values format for task history.

void TaskView::newSubTask  )  [slot]
 

Calls newTask with caption "New Sub Task".

void TaskView::deleteTask bool  markingascomplete = false  )  [slot]
 

Delete task (and children) from view.

Parameters:
markingascomplete If false (the default), deletes history for current task and all children. If markingascomplete is true, then sets percent complete to 100 and removes task and all it's children from the list view.

void TaskView::extractTime int  minutes  )  [slot]
 

Subtracts time from all active tasks, and does not log event.

void TaskView::deletingTask Task deletedTask  )  [slot]
 

receiving signal that a task is being deleted

void TaskView::iCalFileChanged QString  file  )  [slot]
 

User has picked a new iCalendar file on preferences screen.

void TaskView::clipTotals  )  [slot]
 

Copy totals for current and all sub tasks to clipboard.

void TaskView::clipHistory  )  [slot]
 

Copy history for current and all sub tasks to clipboard.


The documentation for this class was generated from the following files: