karm
MainWindow Class Reference#include <mainwindow.h>
Inheritance diagram for MainWindow:
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] |
| 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] |
| QString MainWindow::setPerCentComplete |
( |
const QString & |
taskName, |
|
|
int |
PerCent | |
|
) |
| | [virtual] |
| int MainWindow::bookTime |
( |
const QString & |
taskId, |
|
|
const QString & |
iso8601StartDateTime, |
|
|
long |
durationInMinutes | |
|
) |
| | [virtual] |
| QString MainWindow::getError |
( |
int |
karmErrorNumber |
) |
const [virtual] |
| 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] |
| QString MainWindow::stoptimerfor |
( |
const QString & |
taskname |
) |
[virtual] |
| QString MainWindow::deletetodo |
( |
|
) |
[virtual] |
| 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] |
| QString MainWindow::importplannerfile |
( |
QString |
filename |
) |
[virtual] |
| void MainWindow::quit |
( |
|
) |
[virtual, slot] |
| bool MainWindow::save |
( |
|
) |
[protected, virtual, slot] |
The documentation for this class was generated from the following file:
|