• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libkdegames

KGameLCDClock Class Reference

#include <kgamelcd.h>

Inheritance diagram for KGameLCDClock:

Inheritance graph
[legend]

List of all members.


Detailed Description

This class is a digital clock widget.

It has a maximum duration of 3599 seconds (one hour) and it gets updated every second.

Definition at line 122 of file kgamelcd.h.


Public Slots

virtual void reset ()
virtual void stop ()
virtual void start ()

Public Member Functions

 KGameLCDClock (QWidget *parent=0)
 ~KGameLCDClock ()
uint seconds () const
QString pretty () const
void setTime (uint seconds)
void setTime (const QString &s)

Protected Slots

virtual void timeoutClock ()

Constructor & Destructor Documentation

KGameLCDClock::KGameLCDClock ( QWidget *  parent = 0  ) 

Definition at line 114 of file kgamelcd.cpp.

KGameLCDClock::~KGameLCDClock (  ) 

Definition at line 121 of file kgamelcd.cpp.


Member Function Documentation

uint KGameLCDClock::seconds (  )  const

Returns:
the total number of seconds elapsed.

Definition at line 166 of file kgamelcd.cpp.

QString KGameLCDClock::pretty (  )  const

Returns:
the time as a string to be displayed: "mm:ss".

Definition at line 136 of file kgamelcd.cpp.

void KGameLCDClock::setTime ( uint  seconds  ) 

Set the time.

Definition at line 171 of file kgamelcd.cpp.

void KGameLCDClock::setTime ( const QString &  s  ) 

Set the time (format should be "mm:ss").

Definition at line 179 of file kgamelcd.cpp.

void KGameLCDClock::reset (  )  [virtual, slot]

Stop the clock and reset it to zero.

Definition at line 148 of file kgamelcd.cpp.

void KGameLCDClock::stop (  )  [virtual, slot]

Stop the clock but do not reset it to zero.

Definition at line 161 of file kgamelcd.cpp.

void KGameLCDClock::start (  )  [virtual, slot]

Start the clock from the current time.

Definition at line 156 of file kgamelcd.cpp.

void KGameLCDClock::timeoutClock (  )  [protected, virtual, slot]

Definition at line 124 of file kgamelcd.cpp.


The documentation for this class was generated from the following files:
  • kgamelcd.h
  • kgamelcd.cpp

libkdegames

Skip menu "libkdegames"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal