Wt examples
3.3.0
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
build
buildd
witty-3.3.0
examples
mission
CountDownWidget.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
3
*
4
* See the LICENSE file for terms of use.
5
*/
6
// This may look like C code, but it's really -*- C++ -*-
7
#ifndef WCOUNTDOWNWIDGET_H_
8
#define WCOUNTDOWNWIDGET_H_
9
10
#include <Wt/WText>
11
12
namespace
Wt {
13
class
WTimer
;
14
}
15
16
using namespace
Wt;
17
22
25
class
CountDownWidget
:
public
WText
26
{
27
public
:
33
CountDownWidget
(
int
start,
int
stop,
unsigned
msec,
34
WContainerWidget
*parent = 0);
35
38
Wt::Signal<void>
&
done
() {
return
done_; }
39
42
void
cancel();
43
44
private
:
45
Wt::Signal<void>
done_
;
46
int
start_
;
47
int
stop_
;
48
unsigned
msec_
;
49
50
int
current_
;
51
52
WTimer
*
timer_
;
53
56
void
timerTick();
57
};
58
61
#endif // WCOUNTDOWNWIDGET_H_
Generated on Fri May 31 2013 for
the C++ Web Toolkit (Wt)
by
1.8.3.1