49 lines
1.0 KiB
C++
49 lines
1.0 KiB
C++
/*
|
|
* File: SplitAbortTimer.h
|
|
* Author: sgaebler
|
|
* Author: jgaebler
|
|
*
|
|
* Created on May 24, 2011, 4:09 PM
|
|
*/
|
|
#pragma once
|
|
|
|
#ifndef SPLITABORTTIMER_H
|
|
#define SPLITABORTTIMER_H
|
|
|
|
#include "common/timer/MoversightTimer.h"
|
|
#include "split/SplitOperation.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
class SplitService;
|
|
|
|
/**
|
|
* @class SplitAbortTimer
|
|
* @author Jan Gäbler
|
|
* @author Silvio Gäbler
|
|
* @ingroup Moversight
|
|
* @brief Monitors the duration of confirming a split and abort them, is
|
|
* the confirmation not received in time.
|
|
*/
|
|
class SplitAbortTimer : public MoversightTimer {
|
|
public:
|
|
|
|
SplitAbortTimer(SplitService & aService);
|
|
virtual ~SplitAbortTimer();
|
|
|
|
virtual void timeout();
|
|
SplitAbortTimer * dup();
|
|
|
|
void setSplit(SplitOperation & sp);
|
|
SplitOperation getSplit();
|
|
|
|
void start();
|
|
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* SPLITABORTTIMER_H */
|