Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+41
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* Retrieve information about which exercise is using which radio group
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Christian Ehrlicher, SLSE, 2016-04-14
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <ExerciseManagement/exm_dtc.h>
|
||||
#include <unordered_map>
|
||||
#include "logger.h"
|
||||
|
||||
namespace TrainingAreaBase
|
||||
{
|
||||
class MainHandler;
|
||||
|
||||
class ExmHandler final : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ExmHandler(MainHandler *mainHandler);
|
||||
|
||||
bool init();
|
||||
|
||||
std::unordered_map<int, int> exercise2RadioGroup() const { return m_exercise2RadioGroup; }
|
||||
ExerciseManagement::Exercise exercise(int exerciseId);
|
||||
|
||||
Q_SIGNALS:
|
||||
void exercise2RadioGroupChanged();
|
||||
void exerciseChanged(const ExerciseManagement::Exercise &data, DataModification modType);
|
||||
private Q_SLOTS:
|
||||
void onExerciseChanged(const ExerciseManagement::Exercise &data, DataModification modType);
|
||||
private:
|
||||
std::unordered_map<int, int> m_exercise2RadioGroup;
|
||||
std::shared_ptr<ExerciseManagement::Interface::Dtc> m_exmDtc;
|
||||
MainHandler *m_mainHandler;
|
||||
|
||||
LOGGER_T m_logger;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user