35 lines
663 B
C++
Executable File
35 lines
663 B
C++
Executable File
/**
|
|
* Current Time for exercise
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Hanna E. Rathje, SLSE, 2016-08-01
|
|
*/
|
|
#pragma once
|
|
|
|
#include <QThread>
|
|
#include <QTimer>
|
|
|
|
#include <DDS/Core/core_dts_types.h>
|
|
|
|
#include "dds_handler.h"
|
|
|
|
namespace ParticipantManagement
|
|
{
|
|
class ExerciseTime final : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ExerciseTime(const std::shared_ptr<DTS::PartitionTime> &partitionTime);
|
|
~ExerciseTime();
|
|
public Q_SLOTS:
|
|
void publishPartitionTime();
|
|
|
|
private:
|
|
std::shared_ptr<DTS::PartitionTime> m_dtsPartitionTime;
|
|
QTimer *m_exerciseTimer;
|
|
QThread *m_thread;
|
|
};
|
|
}
|