40 lines
1.2 KiB
C++
Executable File
40 lines
1.2 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* PDM Custom functions (extends pdmm_dtc_impl.cpp/.h)
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Hanna E. Rathje, ESZS, 2025-06-30
|
|
*/
|
|
#pragma once
|
|
|
|
#include <OperatorManagement/opm_dtc_impl.h>
|
|
#include <QHash>
|
|
#include <QVector>
|
|
|
|
//-------------------------------------------------------------------------------------------------------------
|
|
namespace OperatorManagement
|
|
{
|
|
namespace Interface
|
|
{
|
|
class DtcImplCustom final : public Interface::DtcImpl
|
|
{
|
|
|
|
Q_OBJECT
|
|
public:
|
|
explicit DtcImplCustom(const std::shared_ptr<DDSConnector::DdsConnector> &ddsConnector);
|
|
|
|
// custom procs, body must be implemented by user
|
|
QVector<int> getOperatorsByOperatorRight(int operatorRight) override;
|
|
QVector<int> operatorForExerciseParty(int exerciseId, int partyId) override;
|
|
QVector<int> getNotificationRecipents (const int exerciseId, const int partyId, const int operatorRight, const int notificationType) override;
|
|
bool isAdlerAllowedParty(int exerciseId, int partyId, int operatorId) override;
|
|
|
|
private:
|
|
bool sendAdlerNotification(const QString &jsonStr, const int exerciseId, const int partyId, const int notificationType);
|
|
|
|
|
|
};
|
|
} // Interface
|
|
} // namespace OperatorManagement
|