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

ktimer

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

#include <ktimer.h>

Inheritance diagram for KTimerJob:
Inheritance graph
[legend]

Public Types

enum  States { Stopped, Paused, Started }
 

Public Slots

void pause ()
 
void setCommand (const QString &cmd)
 
void setDelay (unsigned int sec)
 
void setDelay (int sec)
 
void setLoop (bool loop)
 
void setOneInstance (bool one)
 
void setState (States state)
 
void setValue (unsigned int value)
 
void setValue (int value)
 
void start ()
 
void stop ()
 

Signals

void changed (KTimerJob *job)
 
void commandChanged (KTimerJob *job, const QString &cmd)
 
void delayChanged (KTimerJob *job, unsigned int sec)
 
void error (KTimerJob *job)
 
void finished (KTimerJob *job, bool error)
 
void fired (KTimerJob *job)
 
void loopChanged (KTimerJob *job, bool loop)
 
void oneInstanceChanged (KTimerJob *job, bool one)
 
void stateChanged (KTimerJob *job, States state)
 
void valueChanged (KTimerJob *job, unsigned int value)
 

Public Member Functions

 KTimerJob (QObject *parent=0)
 
virtual ~KTimerJob ()
 
QString command () const
 
unsigned delay () const
 
QString formatTime (int seconds) const
 
void load (KConfig *cfg, const QString &grp)
 
bool loop () const
 
bool oneInstance () const
 
void save (KConfig *cfg, const QString &grp)
 
void secondsToHMS (int secs, int *hours, int *minutes, int *seconds) const
 
void setUser (void *user)
 
States state () const
 
int timeToSeconds (int hours, int minutes, int seconds) const
 
void * user ()
 
unsigned value () const
 

Protected Slots

virtual void fire ()
 

Detailed Description

Definition at line 30 of file ktimer.h.

Member Enumeration Documentation

enum KTimerJob::States
Enumerator
Stopped 
Paused 
Started 

Definition at line 37 of file ktimer.h.

Constructor & Destructor Documentation

KTimerJob::KTimerJob ( QObject *  parent = 0)

Definition at line 358 of file ktimer.cpp.

KTimerJob::~KTimerJob ( )
virtual

Definition at line 375 of file ktimer.cpp.

Member Function Documentation

void KTimerJob::changed ( KTimerJob *  job)
signal
QString KTimerJob::command ( ) const

Definition at line 486 of file ktimer.cpp.

void KTimerJob::commandChanged ( KTimerJob *  job,
const QString &  cmd 
)
signal
unsigned KTimerJob::delay ( ) const

Definition at line 441 of file ktimer.cpp.

void KTimerJob::delayChanged ( KTimerJob *  job,
unsigned int  sec 
)
signal
void KTimerJob::error ( KTimerJob *  job)
signal
void KTimerJob::finished ( KTimerJob *  job,
bool  error 
)
signal
void KTimerJob::fire ( )
protectedvirtualslot

Definition at line 604 of file ktimer.cpp.

void KTimerJob::fired ( KTimerJob *  job)
signal
QString KTimerJob::formatTime ( int  seconds) const

Definition at line 404 of file ktimer.cpp.

void KTimerJob::load ( KConfig *  cfg,
const QString &  grp 
)

Definition at line 392 of file ktimer.cpp.

bool KTimerJob::loop ( ) const

Definition at line 502 of file ktimer.cpp.

void KTimerJob::loopChanged ( KTimerJob *  job,
bool  loop 
)
signal
bool KTimerJob::oneInstance ( ) const

Definition at line 518 of file ktimer.cpp.

void KTimerJob::oneInstanceChanged ( KTimerJob *  job,
bool  one 
)
signal
void KTimerJob::pause ( )
slot

Definition at line 447 of file ktimer.cpp.

void KTimerJob::save ( KConfig *  cfg,
const QString &  grp 
)

Definition at line 381 of file ktimer.cpp.

void KTimerJob::secondsToHMS ( int  secs,
int *  hours,
int *  minutes,
int *  seconds 
) const

Definition at line 420 of file ktimer.cpp.

void KTimerJob::setCommand ( const QString &  cmd)
slot

Definition at line 492 of file ktimer.cpp.

void KTimerJob::setDelay ( unsigned int  sec)
slot
void KTimerJob::setDelay ( int  sec)
slot

Definition at line 462 of file ktimer.cpp.

void KTimerJob::setLoop ( bool  loop)
slot

Definition at line 508 of file ktimer.cpp.

void KTimerJob::setOneInstance ( bool  one)
slot

Definition at line 524 of file ktimer.cpp.

void KTimerJob::setState ( KTimerJob::States  state)
slot

Definition at line 556 of file ktimer.cpp.

void KTimerJob::setUser ( void *  user)

Definition at line 435 of file ktimer.cpp.

void KTimerJob::setValue ( unsigned int  value)
slot
void KTimerJob::setValue ( int  value)
slot

Definition at line 467 of file ktimer.cpp.

void KTimerJob::start ( )
slot

Definition at line 457 of file ktimer.cpp.

KTimerJob::States KTimerJob::state ( ) const

Definition at line 550 of file ktimer.cpp.

void KTimerJob::stateChanged ( KTimerJob *  job,
States  state 
)
signal
void KTimerJob::stop ( )
slot

Definition at line 452 of file ktimer.cpp.

int KTimerJob::timeToSeconds ( int  hours,
int  minutes,
int  seconds 
) const

Definition at line 413 of file ktimer.cpp.

void * KTimerJob::user ( )

Definition at line 429 of file ktimer.cpp.

unsigned KTimerJob::value ( ) const

Definition at line 534 of file ktimer.cpp.

void KTimerJob::valueChanged ( KTimerJob *  job,
unsigned int  value 
)
signal

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

KDE's Doxygen guidelines are available online.

ktimer

Skip menu "ktimer"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

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