mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
cc_frm_clock.cpp/h: fix incomplete result of isRun() methode
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
#include <neutrino.h>
|
#include <neutrino.h>
|
||||||
|
|
||||||
#include "cc_frm_clock.h"
|
#include "cc_frm_clock.h"
|
||||||
#include "cc_timer.h"
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@@ -35,6 +35,7 @@
|
|||||||
#include "cc_base.h"
|
#include "cc_base.h"
|
||||||
#include "cc_frm.h"
|
#include "cc_frm.h"
|
||||||
#include "cc_text_screen.h"
|
#include "cc_text_screen.h"
|
||||||
|
#include "cc_timer.h"
|
||||||
//! Sub class of CComponents. Show clock with digits on screen.
|
//! Sub class of CComponents. Show clock with digits on screen.
|
||||||
/*!
|
/*!
|
||||||
Usable as simple fixed display or as ticking clock.
|
Usable as simple fixed display or as ticking clock.
|
||||||
@@ -152,7 +153,7 @@ class CComponentsFrmClock : public CComponentsForm, public CCTextScreen
|
|||||||
virtual bool isBlocked(void) {return !paintClock;}
|
virtual bool isBlocked(void) {return !paintClock;}
|
||||||
|
|
||||||
///returns true, if clock is running
|
///returns true, if clock is running
|
||||||
virtual bool isRun() const {return cl_timer ? true : false;};
|
virtual bool isRun() const {return cl_timer ? cl_timer->isRun() : false;}
|
||||||
///set refresh interval in seconds, default value=1 (=1 sec)
|
///set refresh interval in seconds, default value=1 (=1 sec)
|
||||||
virtual void setClockInterval(const int& seconds){cl_interval = seconds;}
|
virtual void setClockInterval(const int& seconds){cl_interval = seconds;}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user