libkdegames
KGameClock Class Reference
#include <kgameclock.h>
Inheritance diagram for KGameClock:

Detailed Description
Class representing a game clock, wraps after 24 hours.Definition at line 33 of file kgameclock.h.
Public Types | |
| enum | ClockType { HourMinSec = 0, MinSecOnly } |
Public Slots | |
| virtual void | restart () |
| virtual void | pause () |
| virtual void | resume () |
Signals | |
| void | timeChanged (const QString &) |
Public Member Functions | |
| KGameClock (QObject *parent=0, ClockType clocktype=HourMinSec) | |
| virtual | ~KGameClock () |
| uint | seconds () const |
| QString | timeString () const |
| void | setTime (uint seconds) |
| void | setTime (const QString &s) |
| void | showTime () |
Protected Slots | |
| virtual void | timeoutClock () |
Friends | |
| class | KGameClockPrivate |
Member Enumeration Documentation
Constructor & Destructor Documentation
| KGameClock::KGameClock | ( | QObject * | parent = 0, |
|
| KGameClock::ClockType | clocktype = HourMinSec | |||
| ) | [explicit] |
| KGameClock::~KGameClock | ( | ) | [virtual] |
Definition at line 48 of file kgameclock.cpp.
Member Function Documentation
| uint KGameClock::seconds | ( | ) | const |
| QString KGameClock::timeString | ( | ) | const |
- Returns:
- the time as a string to be displayed: "mm:ss" or "hh:mm:ss" depending on clock type.
Definition at line 68 of file kgameclock.cpp.
| void KGameClock::setTime | ( | uint | seconds | ) |
| void KGameClock::setTime | ( | const QString & | s | ) |
| void KGameClock::showTime | ( | ) |
| void KGameClock::timeChanged | ( | const QString & | ) | [signal] |
| void KGameClock::restart | ( | ) | [virtual, slot] |
| void KGameClock::pause | ( | ) | [virtual, slot] |
| void KGameClock::resume | ( | ) | [virtual, slot] |
| void KGameClock::timeoutClock | ( | ) | [protected, virtual, slot] |
Definition at line 53 of file kgameclock.cpp.
Friends And Related Function Documentation
friend class KGameClockPrivate [friend] |
Definition at line 94 of file kgameclock.h.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference