OpendTect  6.6
timer.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: A.H. Lammertink
8  Date: 16/10/2000
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "basicmod.h"
15 #include "namedobj.h"
16 
17 mFDQtclass(QTimer)
19 
20 
25 {
26 public :
27  Timer(const char* nm="Timer");
28  virtual ~Timer();
29 
30  bool isActive() const;
31  bool isSingleShot() const;
32 
33  void start(int msec,bool singleshot=false);
34  void stop();
35 
37 
38  void notifyHandler();
39 
40  enum ScriptPolicy { DefaultPolicy, DontWait, UserWait, KeepWaiting };
42 
43 protected:
44  mQtclass(QTimer*) timer_;
47 
48 public:
49  // Not for casual use
50 
52  static bool setUserWaitFlag(bool); // returns old state
53 
58 
59 };
60 
61 
Timer::comm_
::QTimerComm * comm_
Definition: timer.h:45
Timer::isActive
bool isActive() const
Timer::isSingleShot
bool isSingleShot() const
Timer::timerStarts
static Notifier< Timer > * timerStarts()
NamedCallBacker
CallBacker object with a name. Use if you want your object to be able to send and receive CallBack's,...
Definition: namedobj.h:72
QTimerComm
QTimer communication class.
Definition: qtimercomm.h:27
Timer::setScriptPolicy
void setScriptPolicy(ScriptPolicy)
mFDQtclass
#define mFDQtclass(cls)
Definition: commondefs.h:233
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
Timer::ScriptPolicy
ScriptPolicy
Definition: timer.h:40
namedobj.h
Timer::Timer
Timer(const char *nm="Timer")
Timer::timerStopped
static Notifier< Timer > * timerStopped()
Timer
Timer class.
Definition: timer.h:25
Timer::~Timer
virtual ~Timer()
Timer::timerShoots
static Notifier< Timer > * timerShoots()
Notifier< Timer >
Timer::UserWait
@ UserWait
Definition: timer.h:40
Timer::timerShot
static Notifier< Timer > * timerShot()
Timer::scriptPolicy
ScriptPolicy scriptPolicy() const
mQtclass
#define mQtclass(cls)
Definition: commondefs.h:234
Timer::setUserWaitFlag
static bool setUserWaitFlag(bool)
Timer::timer_
::QTimer * timer_
Definition: timer.h:44
Timer::scriptpolicy_
ScriptPolicy scriptpolicy_
Definition: timer.h:46
Timer::notifyHandler
void notifyHandler()
Timer::stop
void stop()
Timer::tick
Notifier< Timer > tick
Definition: timer.h:36
Timer::start
void start(int msec, bool singleshot=false)

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2021