TreeFrogFramework  1.18
tapplicationscheduler.h
Go to the documentation of this file.
1 #ifndef TAPPLICATIONSCHEDULER_H
2 #define TAPPLICATIONSCHEDULER_H
3 
4 #include <TScheduler>
5 
6 
8 {
9  Q_OBJECT
10 public:
11  TApplicationScheduler(QObject *parent = nullptr);
12  virtual ~TApplicationScheduler();
13 
14  void start(int msec);
15  void stop();
16  int interval() const;
17  bool isSingleShot() const;
18  void setSingleShot(bool singleShot);
19 
20 protected:
21  virtual void job() = 0;
22  void rollbackTransaction();
23 
24 private:
27 };
28 
29 #endif // TAPPLICATIONSCHEDULER_H
#define T_CORE_EXPORT
Definition: tglobal.h:81
#define T_DISABLE_COPY(Class)
Definition: tglobal.h:137
#define T_DISABLE_MOVE(Class)
Definition: tglobal.h:141
void rollbackTransaction()
Definition: tscheduler.cpp:76
bool isSingleShot() const
Definition: tscheduler.cpp:64
void stop()
Definition: tscheduler.cpp:52
void setSingleShot(bool singleShot)
Definition: tscheduler.cpp:70
void start(int msec)
Definition: tscheduler.cpp:40
int interval() const
Definition: tscheduler.cpp:58
virtual void job()=0
The TScheduler class provides functionality for job scheduler.
Definition: tscheduler.h:9
The TApplicationScheduler class provides functionality for job scheduler.
Definition: tapplicationscheduler.h:7