#include <karmdcopiface.h>
Detailed Description
Define DCOP interface to karm.
Methods implemented in MainWindow
Definition at line 27 of file karmdcopiface.h.
Member Function Documentation
◆ addTask
|
pure virtual |
Add a new top-level task.
A top-level task is one that has no parent tasks.
- Parameters
-
taskName Name of new task.
- Returns
- 0 on success, error number on failure.
Implemented in karmPart, and MainWindow.
◆ bookTime
|
pure virtual |
Add time to a task.
The GUI will be non-responsive until this method returns.
- Returns
- 0 on success, error number on failure.
- Parameters
-
taskId Unique ID of task to add time to iso8601StartDateTime Date and time the booking starts, in extended ISO-8601 format; for example, YYYY-MM-DDTHH:MI:SS format (see TQt::ISODate). No timezone support–time is interpreted as the local time. If just the date is passed in (i.e., YYYY-MM-DD) , then the time is set to noon. durationInMinutes The amount of time to book against the taskId.
Implemented in MainWindow, and karmPart.
◆ deletetodo
|
pure virtual |
delete the current item
Implemented in MainWindow, and karmPart.
◆ exportcsvfile
|
pure virtual |
export csv history or totals file
Implemented in karmPart, and MainWindow.
◆ getError
|
pure virtual |
Return error string associated with karm error number.
- Parameters
-
karmErrorNumber An integer error number.
- Returns
- String associated with error number. These strings are internationalized. An unknown error number produces an empty string as the return value.
Implemented in MainWindow, and karmPart.
◆ getpromptdelete
|
pure virtual |
get if prompted on deleting a task
Implemented in MainWindow, and karmPart.
◆ importplannerfile
|
pure virtual |
import planner project file
Implemented in MainWindow, and karmPart.
◆ quit
|
pure virtual |
Graceful shutdown.
Implemented in karmPart.
◆ save
|
pure virtual |
save your tasks
Implemented in karmPart.
◆ setPerCentComplete
|
pure virtual |
Set percent complete to a task.
- Parameters
-
taskName Name of new task. perCent percent, e.g. 99
- Returns
- "" on success, error msg on failure.
Implemented in MainWindow, and karmPart.
◆ setpromptdelete
|
pure virtual |
set if prompted on deleting a task
Implemented in MainWindow, and karmPart.
◆ starttimerfor
|
pure virtual |
◆ stoptimerfor
|
pure virtual |
◆ taskIdFromName
|
pure virtual |
Return id of task found, empty string if no match.
Implemented in MainWindow, and karmPart.
◆ totalMinutesForTaskId
|
pure virtual |
Total time currently associated with a task.
A task has two counters: the total session time and the total time. Note that th euser can reset both counters.
- Parameters
-
taskId Unique ID of task to lookup bookings for.
Implemented in MainWindow, and karmPart.
◆ version
|
pure virtual |
Return karm version.
Implemented in MainWindow, and karmPart.
The documentation for this class was generated from the following file: