X-Git-Url: http://git.maemo.org/git/?p=chessclock;a=blobdiff_plain;f=classes%2Ftimecontrol%2Fhourglassclock.h;fp=classes%2Ftimecontrol%2Fhourglassclock.h;h=bceb063e296551db570adb6b0f7760002d119a76;hp=0000000000000000000000000000000000000000;hb=cfcfb018dce39cd48eda0f601aa5134632a50484;hpb=434b0c4e94e2ff4c3a44483892a44a227f081e71 diff --git a/classes/timecontrol/hourglassclock.h b/classes/timecontrol/hourglassclock.h new file mode 100644 index 0000000..bceb063 --- /dev/null +++ b/classes/timecontrol/hourglassclock.h @@ -0,0 +1,42 @@ + /************************************************************************** + + Chess Clock + + Copyright (c) Arto Hyvättinen 2010 + + This file is part of Chess Clock software. + + Chess Clock is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Chess Clock is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + +**************************************************************************/ + +#ifndef HOURGLASSCLOCK_H +#define HOURGLASSCLOCK_H + +#include "../chessclockwidget.h" + + +class HourGlassClock : public ChessClockWidget +{ + Q_OBJECT +public: + HourGlassClock(bool white, QWidget *parent = 0); + + int getTimeAvailable(); + TurnInformation* endTurn(); + +public slots: + void updateClock(); + +}; + +#endif // HOURGLASSCLOCK_H