| 1 |
#ifndef _CSYNCBLOCKEREVENT_ |
| 2 |
#define _CSYNCBLOCKEREVENT_ |
| 3 |
|
| 4 |
#include "CSequencedEvent.h" |
| 5 |
|
| 6 |
class CSyncBlockerEvent : public CSequencedEvent |
| 7 |
{ |
| 8 |
public: |
| 9 |
CSyncBlockerEvent(int n) : CSequencedEvent(false), total(n), i(0) {} |
| 10 |
|
| 11 |
CSyncBlockerEvent* getCopy() { return new CSyncBlockerEvent(*this); } |
| 12 |
|
| 13 |
void gotEventData() { if (++i == total) { setDone(); } } |
| 14 |
void setTotal(int n) { total = n; } |
| 15 |
void doUpdate() { } |
| 16 |
bool hasDraw() { return true; } |
| 17 |
|
| 18 |
protected: |
| 19 |
int total, i; |
| 20 |
}; |
| 21 |
|
| 22 |
#endif |