• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

ktimetracker

Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
TimetrackerWidget Class Reference

#include <timetrackerwidget.h>

Inheritance diagram for TimetrackerWidget:
Inheritance graph
[legend]

Public Slots

QStringList activeTasks () const
 
void addSubTask (const QString &taskName, const QString &taskId)
 
void addTask (const QString &taskName)
 
int changeTime (const QString &taskId, int minutes)
 
bool closeAllFiles ()
 
bool closeFile ()
 
void deleteTask ()
 
void deleteTask (const QString &taskId)
 
void editHistory ()
 
void editTask ()
 
QString error (int errorCode) const
 
void exportcsvFile ()
 
QString exportCSVFile (const QString &filename, const QString &from, const QString &to, int type, bool decimalMinutes, bool allTasks, const QString &delimiter, const QString &quote)
 
void exportcsvHistory ()
 
int focusSearchBar ()
 
void focusTracking ()
 
void importPlanner (const QString &fileName="")
 
void importPlannerFile (const QString &filename)
 
bool isActive (const QString &taskId) const
 
bool isIdleDetectionPossible () const
 
bool isTaskNameActive (const QString &taskId) const
 
void markTaskAsComplete ()
 
void markTaskAsIncomplete ()
 
void newSubTask ()
 
void newTask ()
 
void openFile (const QString &fileName=QString())
 
void openFile (const KUrl &fileName)
 
void quit ()
 
void resetAllTimes ()
 
void saveAll ()
 
void saveFile ()
 
void setPercentComplete (const QString &taskId, int percent)
 
void showSearchBar (bool visible)
 
void slotSearchBar ()
 
void startCurrentTimer ()
 
void startNewSession ()
 
void startTimerFor (const QString &taskId)
 
bool startTimerForTaskName (const QString &taskName)
 
void stopAllTimers (const QDateTime &when=QDateTime::currentDateTime())
 
void stopAllTimersDBUS ()
 
void stopCurrentTimer ()
 
void stopTimerFor (const QString &taskId)
 
bool stopTimerForTaskName (const QString &taskName)
 
QStringList taskIdsFromName (const QString &taskName) const
 
QStringList tasks () const
 
int totalMinutesForTaskId (const QString &taskId) const
 
QString version () const
 

Signals

void contextMenuRequested (const QPoint &pos)
 
void currentTaskChanged ()
 
void currentTaskViewChanged ()
 
void reSetTimes ()
 
void setCaption (const QString &qs)
 
void statusBarTextChangeRequested (const QString &text)
 
void tasksChanged (const QList< Task * > &)
 
void timersActive ()
 
void timersInactive ()
 
void totalTimesChanged (long session, long total)
 
void updateButtons ()
 

Public Member Functions

 TimetrackerWidget (QWidget *parent=0)
 
 ~TimetrackerWidget ()
 
KAction * action (const QString &name) const
 
bool allEventsHaveEndTiMe ()
 
Task * currentTask ()
 
TaskView * currentTaskView () const
 
void setupActions (KActionCollection *actionCollection)
 

Protected Member Functions

bool event (QEvent *event)
 

Detailed Description

Definition at line 36 of file timetrackerwidget.h.

Constructor & Destructor Documentation

TimetrackerWidget::TimetrackerWidget ( QWidget *  parent = 0)
explicit

Definition at line 90 of file timetrackerwidget.cpp.

TimetrackerWidget::~TimetrackerWidget ( )

Definition at line 120 of file timetrackerwidget.cpp.

Member Function Documentation

KAction * TimetrackerWidget::action ( const QString &  name) const

returns a generated action by name.

You have to call setupActions before.

Parameters
nameThe name of the action
Returns
A pointer to a KAction instance

Definition at line 338 of file timetrackerwidget.cpp.

bool TimetrackerWidget::allEventsHaveEndTiMe ( )

Delivers if all task have an end time.

This is useful e.g. at the start of the program to see if a timer needs to be resumed. This function checks all (TaskView) mTabWidget->widget() to see if any task is open.

Definition at line 125 of file timetrackerwidget.cpp.

bool TimetrackerWidget::closeAllFiles ( )
slot

tries to close all files.

This slot has to be called before quitting the application to ensure that no data is lost.

Returns
true if the user has saved or consciously not saved all files, otherwise false.

Definition at line 395 of file timetrackerwidget.cpp.

bool TimetrackerWidget::closeFile ( )
slot

closes the current opened tab widget and saves the data of the corresponding taskview.

Returns
whether the file has been closed.

Definition at line 363 of file timetrackerwidget.cpp.

void TimetrackerWidget::contextMenuRequested ( const QPoint &  pos)
signal
Task * TimetrackerWidget::currentTask ( )

Returns the current task of the current opened TaskView widget.

Definition at line 187 of file timetrackerwidget.cpp.

void TimetrackerWidget::currentTaskChanged ( )
signal
TaskView * TimetrackerWidget::currentTaskView ( ) const

Returns the TaskView widget of the current opened tabpage.

Definition at line 182 of file timetrackerwidget.cpp.

void TimetrackerWidget::currentTaskViewChanged ( )
signal
void TimetrackerWidget::deleteTask ( )
slot

Definition at line 546 of file timetrackerwidget.cpp.

void TimetrackerWidget::editHistory ( )
slot

Definition at line 581 of file timetrackerwidget.cpp.

void TimetrackerWidget::editTask ( )
slot

Definition at line 541 of file timetrackerwidget.cpp.

void TimetrackerWidget::exportcsvFile ( )
slot

Definition at line 561 of file timetrackerwidget.cpp.

void TimetrackerWidget::exportcsvHistory ( )
slot

Definition at line 566 of file timetrackerwidget.cpp.

int TimetrackerWidget::focusSearchBar ( )
slot

this method puts the input focus onto the search bar

Definition at line 130 of file timetrackerwidget.cpp.

void TimetrackerWidget::focusTracking ( )
slot

Definition at line 604 of file timetrackerwidget.cpp.

void TimetrackerWidget::importPlanner ( const QString &  fileName = "")
slot

Definition at line 571 of file timetrackerwidget.cpp.

void TimetrackerWidget::markTaskAsComplete ( )
slot

Definition at line 551 of file timetrackerwidget.cpp.

void TimetrackerWidget::markTaskAsIncomplete ( )
slot

Definition at line 556 of file timetrackerwidget.cpp.

void TimetrackerWidget::newSubTask ( )
slot

Definition at line 536 of file timetrackerwidget.cpp.

void TimetrackerWidget::newTask ( )
slot

Definition at line 531 of file timetrackerwidget.cpp.

void TimetrackerWidget::openFile ( const QString &  fileName = QString())
slot

opens an existing ics file.

Definition at line 343 of file timetrackerwidget.cpp.

void TimetrackerWidget::openFile ( const KUrl &  fileName)
slot

opens an existing ics file (wrapper for KUrl).

Definition at line 358 of file timetrackerwidget.cpp.

void TimetrackerWidget::resetAllTimes ( )
slot

Definition at line 593 of file timetrackerwidget.cpp.

void TimetrackerWidget::reSetTimes ( )
signal
void TimetrackerWidget::saveFile ( )
slot

saves the current taskview.

This is especially important on unsaved files to give them a non-temporary filename.

Definition at line 385 of file timetrackerwidget.cpp.

void TimetrackerWidget::setCaption ( const QString &  qs)
signal
void TimetrackerWidget::setupActions ( KActionCollection *  actionCollection)

initializes the KActionCollection object of a main window for example.

The actions are connected to the TreeWidget itself to ensure reusability.

Parameters
actionCollectionThe KActionCollection instance of the host object.

Definition at line 200 of file timetrackerwidget.cpp.

void TimetrackerWidget::showSearchBar ( bool  visible)
slot

shows/hides the search bar.

Definition at line 390 of file timetrackerwidget.cpp.

void TimetrackerWidget::slotSearchBar ( )
slot

Definition at line 610 of file timetrackerwidget.cpp.

void TimetrackerWidget::startCurrentTimer ( )
slot

Definition at line 516 of file timetrackerwidget.cpp.

void TimetrackerWidget::startNewSession ( )
slot

Definition at line 576 of file timetrackerwidget.cpp.

void TimetrackerWidget::statusBarTextChangeRequested ( const QString &  text)
signal
void TimetrackerWidget::stopAllTimers ( const QDateTime &  when = QDateTime::currentDateTime())
slot

Definition at line 526 of file timetrackerwidget.cpp.

void TimetrackerWidget::stopCurrentTimer ( )
slot

Definition at line 521 of file timetrackerwidget.cpp.

void TimetrackerWidget::tasksChanged ( const QList< Task * > &  )
signal
void TimetrackerWidget::timersActive ( )
signal
void TimetrackerWidget::timersInactive ( )
signal
void TimetrackerWidget::totalTimesChanged ( long  session,
long  total 
)
signal
void TimetrackerWidget::updateButtons ( )
signal

The documentation for this class was generated from the following files:
  • timetrackerwidget.h
  • timetrackerwidget.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ktimetracker

Skip menu "ktimetracker"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal