karm

#include <karm_part.h>

Inheritance diagram for karmPart:
KarmDCOPIface

List of all members.

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

Author:
Thorsten Staerk <kde at="" staerk="" dot="" de>="">
Version:
0.1

Definition at line 30 of file karm_part.h.


Member Function Documentation

int karmPart::addTask ( const TQString &  taskName) [virtual]
Reimplemented from superclass. from KarmDCOPIface

Implements KarmDCOPIface.

Definition at line 489 of file karm_part.cpp.

int karmPart::bookTime ( const TQString &  taskId,
const TQString &  iso8601StartDateTime,
long  durationInMinutes 
) [virtual]
Reimplemented from superclass. from KarmDCOPIface

Implements KarmDCOPIface.

Definition at line 524 of file karm_part.cpp.

TQString karmPart::deletetodo ( ) [virtual]

delete the current item

Implements KarmDCOPIface.

Definition at line 443 of file karm_part.cpp.

TQString karmPart::exportcsvfile ( TQString  filename,
TQString  from,
TQString  to,
int  type = 0,
bool  decimalMinutes = true,
bool  allTasks = true,
TQString  delimiter = "r",
TQString  quote = "q" 
) [virtual]

export csv history or totals file

Implements KarmDCOPIface.

Definition at line 677 of file karm_part.cpp.

TQString karmPart::getError ( int  karmErrorNumber) const [virtual]
Reimplemented from superclass. from KarmDCOPIface

Implements KarmDCOPIface.

Definition at line 576 of file karm_part.cpp.

bool karmPart::getpromptdelete ( ) [virtual]

get if prompted on deleting a task

Implements KarmDCOPIface.

Definition at line 449 of file karm_part.cpp.

TQString karmPart::importplannerfile ( TQString  filename) [virtual]

import planner project file

Implements KarmDCOPIface.

Definition at line 691 of file karm_part.cpp.

bool karmPart::openFile ( ) [protected, virtual]

This must be implemented by each part.

Definition at line 319 of file karm_part.cpp.

void karmPart::quit ( ) [virtual]

Graceful shutdown.

Implements KarmDCOPIface.

Definition at line 474 of file karm_part.cpp.

bool karmPart::save ( ) [virtual]

save your tasks

Implements KarmDCOPIface.

Definition at line 479 of file karm_part.cpp.

bool karmPart::saveFile ( ) [protected, virtual]

This must be implemented by each read-write part.

Definition at line 330 of file karm_part.cpp.

void karmPart::setModified ( bool  modified) [virtual]

Reimplemented to disable and enable Save action.

Definition at line 301 of file karm_part.cpp.

TQString karmPart::setPerCentComplete ( const TQString &  taskName,
int  PerCent 
) [virtual]
Reimplemented from superclass. from KarmDCOPIface

Implements KarmDCOPIface.

Definition at line 503 of file karm_part.cpp.

TQString karmPart::setpromptdelete ( bool  prompt) [virtual]

set if prompted on deleting a task

Implements KarmDCOPIface.

Definition at line 454 of file karm_part.cpp.

void karmPart::setReadWrite ( bool  rw) [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.

TQString karmPart::starttimerfor ( const TQString &  taskname) [virtual]

Start timer for all tasks with the summary taskname.

Implements KarmDCOPIface.

Definition at line 649 of file karm_part.cpp.

TQString karmPart::stoptimerfor ( const TQString &  taskname) [virtual]

Stop timer for all tasks with the summary taskname.

Implements KarmDCOPIface.

Definition at line 663 of file karm_part.cpp.

TQString karmPart::taskIdFromName ( const TQString &  taskName) const [virtual]

Return id of task found, empty string if no match.

Implements KarmDCOPIface.

Definition at line 460 of file karm_part.cpp.

int karmPart::totalMinutesForTaskId ( const TQString &  taskId) [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:
taskIdUnique ID of task to lookup bookings for.

Implements KarmDCOPIface.

Definition at line 582 of file karm_part.cpp.

TQString karmPart::version ( ) const [virtual]

Return karm version.

Implements KarmDCOPIface.

Definition at line 438 of file karm_part.cpp.


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