karm

MainWindow Class Reference

#include <mainwindow.h>

Inheritance diagram for MainWindow:

KarmDCOPIface List of all members.

Detailed Description

Main window to tie the application together.

Definition at line 26 of file mainwindow.h.


Public Slots

void setStatusBar (QString)
void quit ()

Public Member Functions

 MainWindow (const QString &icsfile="")
QString version () const
QString taskIdFromName (const QString &taskName) const
int addTask (const QString &storage)
QString setPerCentComplete (const QString &taskName, int PerCent)
int bookTime (const QString &taskId, const QString &iso8601StartDateTime, long durationInMinutes)
QString getError (int karmErrorNumber) const
int totalMinutesForTaskId (const QString &taskId)
QString starttimerfor (const QString &taskname)
QString stoptimerfor (const QString &taskname)
QString deletetodo ()
bool getpromptdelete ()
QString setpromptdelete (bool prompt)
QString exportcsvfile (QString filename, QString from, QString to, int type, bool decimalMinutes, bool allTasks, QString delimiter, QString quote)
QString importplannerfile (QString filename)

Protected Slots

void keyBindings ()
void startNewSession ()
void resetAllTimes ()
void updateTime (long, long)
void updateStatusBar ()
bool save ()
void exportcsvHistory ()
void print ()
void slotSelectionChanged ()
void contextMenuRequest (QListViewItem *, const QPoint &, int)
void enableStopAll ()
void disableStopAll ()

Protected Member Functions

void startStatusBar ()
virtual void saveProperties (KConfig *)
virtual void readProperties (KConfig *)
void saveGeometry ()
void loadGeometry ()
bool queryClose ()

Friends

class KarmTray

Member Function Documentation

QString MainWindow::version (  )  const [virtual]

Return karm version.

Implements KarmDCOPIface.

QString MainWindow::taskIdFromName ( const QString &  taskName  )  const [virtual]

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

Implements KarmDCOPIface.

int MainWindow::addTask ( const QString &  storage  )  [virtual]

Reimplemented from superclass.

from KarmDCOPIface::addTask

Implements KarmDCOPIface.

QString MainWindow::setPerCentComplete ( const QString &  taskName,
int  PerCent 
) [virtual]

Reimplemented from superclass.

from KarmDCOPIface::setPerCentComplete

Implements KarmDCOPIface.

int MainWindow::bookTime ( const QString &  taskId,
const QString &  iso8601StartDateTime,
long  durationInMinutes 
) [virtual]

Reimplemented from superclass.

from KarmDCOPIface::bookTime

Implements KarmDCOPIface.

QString MainWindow::getError ( int  karmErrorNumber  )  const [virtual]

Reimplemented from superclass.

from KarmDCOPIface::getError

Implements KarmDCOPIface.

int MainWindow::totalMinutesForTaskId ( const QString &  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:
taskId Unique ID of task to lookup bookings for.

Implements KarmDCOPIface.

QString MainWindow::starttimerfor ( const QString &  taskname  )  [virtual]

start the timer for taskname

Implements KarmDCOPIface.

QString MainWindow::stoptimerfor ( const QString &  taskname  )  [virtual]

stop the timer for taskname

Implements KarmDCOPIface.

QString MainWindow::deletetodo (  )  [virtual]

delete the current item

Implements KarmDCOPIface.

bool MainWindow::getpromptdelete (  )  [virtual]

shall there be a "really delete" question

Implements KarmDCOPIface.

QString MainWindow::setpromptdelete ( bool  prompt  )  [virtual]

set if there will be a "really delete" question

Implements KarmDCOPIface.

QString MainWindow::exportcsvfile ( QString  filename,
QString  from,
QString  to,
int  type,
bool  decimalMinutes,
bool  allTasks,
QString  delimiter,
QString  quote 
) [virtual]

export csv history or totals file

Implements KarmDCOPIface.

QString MainWindow::importplannerfile ( QString  filename  )  [virtual]

import planner project file

Implements KarmDCOPIface.

void MainWindow::quit (  )  [virtual, slot]

Graceful shutdown.

Implements KarmDCOPIface.

bool MainWindow::save (  )  [protected, virtual, slot]

save your tasks

Implements KarmDCOPIface.


The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys