2
|
1 // Filename: qdata.h
|
3
|
2 // Last Change: 2015-09-24 Thu 06:09:33.
|
2
|
3 //
|
|
4 #ifndef __QDATA_H__
|
|
5 #define __QDATA_H__
|
|
6
|
|
7 class QlipData {
|
|
8 public:
|
|
9 int id; // key
|
|
10 wxString text;
|
|
11 bool overwrite;
|
|
12 int max_active_time;
|
|
13 int max_live_time;
|
|
14 int active_time;
|
|
15 int live_time;
|
3
|
16 bool remember;
|
2
|
17 wxString desc;
|
|
18
|
|
19 bool IsArrived() {
|
|
20 active_time++;
|
|
21 if ( max_active_time == active_time ) {
|
|
22 active_time = 0;
|
|
23 return true;
|
|
24 }
|
|
25 return false;
|
|
26 };
|
|
27 bool IsAlive() {
|
|
28 if ( live_time == 0 ) return false;
|
|
29 return true;
|
|
30 }
|
|
31 void Kill() {
|
|
32 live_time = 0;
|
|
33 active_time = 0;
|
|
34 text = wxEmptyString;
|
|
35 }
|
|
36 };
|
|
37
|
|
38 #endif //__QDATA_H__
|
|
39
|