#include <karm_part.h>
Public Member Functions | |
karmPart (TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name) | |
void | quit () |
virtual bool | save () |
TQString | version () const |
TQString | taskIdFromName (const TQString &taskName) const |
int | addTask (const TQString &taskName) |
TQString | setPerCentComplete (const TQString &taskName, int PerCent) |
int | bookTime (const TQString &taskId, const TQString &iso8601StartDateTime, long durationInMinutes) |
TQString | getError (int karmErrorNumber) const |
int | totalMinutesForTaskId (const TQString &taskId) |
TQString | starttimerfor (const TQString &taskname) |
TQString | stoptimerfor (const TQString &taskname) |
TQString | deletetodo () |
bool | getpromptdelete () |
TQString | setpromptdelete (bool prompt) |
TQString | exportcsvfile (TQString filename, TQString from, TQString to, int type=0, bool decimalMinutes=true, bool allTasks=true, TQString delimiter="r", TQString quote="q") |
TQString | importplannerfile (TQString filename) |
virtual void | setReadWrite (bool rw) |
virtual void | setModified (bool modified) |
Protected Slots | |
void | contextMenuRequest (TQListViewItem *, const TQPoint &point, int) |
void | fileOpen () |
void | fileSaveAs () |
void | slotSelectionChanged () |
void | startNewSession () |
Protected Member Functions | |
virtual bool | openFile () |
virtual bool | saveFile () |
Friends | |
class | KarmTray |
Detailed Description
This is a "Part".
It that does all the real work in a KPart application.
Main Part
- Version
- 0.1
Definition at line 30 of file karm_part.h.
Member Function Documentation
◆ addTask()
|
virtual |
- Reimplemented from superclass. from KarmDCOPIface
Implements KarmDCOPIface.
Definition at line 489 of file karm_part.cpp.
◆ bookTime()
|
virtual |
- Reimplemented from superclass. from KarmDCOPIface
Implements KarmDCOPIface.
Definition at line 523 of file karm_part.cpp.
◆ deletetodo()
|
virtual |
◆ exportcsvfile()
|
virtual |
export csv history or totals file
Implements KarmDCOPIface.
Definition at line 677 of file karm_part.cpp.
◆ getError()
|
virtual |
- Reimplemented from superclass. from KarmDCOPIface
Implements KarmDCOPIface.
Definition at line 576 of file karm_part.cpp.
◆ getpromptdelete()
|
virtual |
get if prompted on deleting a task
Implements KarmDCOPIface.
Definition at line 449 of file karm_part.cpp.
◆ importplannerfile()
|
virtual |
◆ openFile()
|
protectedvirtual |
This must be implemented by each part.
Definition at line 319 of file karm_part.cpp.
◆ quit()
|
virtual |
◆ save()
|
virtual |
◆ saveFile()
|
protectedvirtual |
This must be implemented by each read-write part.
Definition at line 330 of file karm_part.cpp.
◆ setModified()
|
virtual |
Reimplemented to disable and enable Save action.
Definition at line 301 of file karm_part.cpp.
◆ setPerCentComplete()
|
virtual |
- Reimplemented from superclass. from KarmDCOPIface
Implements KarmDCOPIface.
Definition at line 503 of file karm_part.cpp.
◆ setpromptdelete()
|
virtual |
set if prompted on deleting a task
Implements KarmDCOPIface.
Definition at line 454 of file karm_part.cpp.
◆ setReadWrite()
|
virtual |
This is a virtual function inherited from KParts::ReadWritePart.
A shell will use this to inform this Part if it should act read-only
Definition at line 286 of file karm_part.cpp.
◆ starttimerfor()
|
virtual |
Start timer for all tasks with the summary taskname.
Implements KarmDCOPIface.
Definition at line 649 of file karm_part.cpp.
◆ stoptimerfor()
|
virtual |
Stop timer for all tasks with the summary taskname.
Implements KarmDCOPIface.
Definition at line 663 of file karm_part.cpp.
◆ taskIdFromName()
|
virtual |
Return id of task found, empty string if no match.
Implements KarmDCOPIface.
Definition at line 460 of file karm_part.cpp.
◆ totalMinutesForTaskId()
|
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.
Implements KarmDCOPIface.
Definition at line 582 of file karm_part.cpp.
◆ version()
|
virtual |
The documentation for this class was generated from the following files: