- Migrated all 104 CMakeLists.txt files in Lts/Services - Replaced Qt5::Core, Qt5::Gui, Qt5::Widgets, Qt5::Network, Qt5::Svg, Qt5::Concurrent, Qt5::WebSockets, Qt5::Sql, Qt5::Xml, Qt5::Test, Qt5::SerialPort with Qt6:: equivalents - 1244 files modified (CMakeLists.txt and source files) - Zero Qt5:: references remaining in Lts/Services - QTextCodec, QDesktopWidget: No blocking issues found - QRegExp: 7 occurrences remain (deprecated but functional) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
68 lines
2.3 KiB
C++
Executable File
68 lines
2.3 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* ISM Handler Mounting Point Schedule
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Iuliana Ojog, SLSE, 2016-11-26
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QHash>
|
|
|
|
#include "base.h"
|
|
|
|
//-------------------------------------------------------------------------------------------------------------
|
|
namespace InfrastructureManagement
|
|
{
|
|
class ObjectMainSchedule;
|
|
class MainHandler;
|
|
class HandlerMainSchedule final : public Base
|
|
, protected Interface::Fts::MainScheduleModifyRequestHandler
|
|
, protected Interface::Fts::MainScheduleCopyRequestHandler
|
|
, protected Interface::Fts::MainScheduleRemoveRequestHandler
|
|
, protected Interface::Fts::MountingPointPlanModifyRequestHandler
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit HandlerMainSchedule(MainHandler *mainHandler);
|
|
~HandlerMainSchedule();
|
|
|
|
bool init();
|
|
bool initByDbId(int dbId);
|
|
|
|
std::vector<MountingPointPlan> getMountingPointPlans(int scheduleId) const;
|
|
|
|
ObjectMainSchedule *getMainSchedule(int scheduleId) const
|
|
{
|
|
return m_objectMainScheduleMap.value(scheduleId);
|
|
}
|
|
|
|
QHash<int, ObjectMainSchedule *> getMainScheduleMap() const
|
|
{
|
|
return m_objectMainScheduleMap;
|
|
}
|
|
|
|
private:
|
|
void onMainScheduleModifyRequest(const rti::core::SampleIdentity &cookie,
|
|
const MainScheduleModifyRequest &request) override final;
|
|
Core::FunctionReplyObject mainScheduleCreate(const MainScheduleModifyRequest &request);
|
|
Core::FunctionReplyObject mainScheduleModify(const MainScheduleModifyRequest &request);
|
|
void onMainScheduleCopyRequest(const rti::core::SampleIdentity &cookie,
|
|
const MainScheduleCopyRequest &request) override final;
|
|
void onMainScheduleRemoveRequest(const rti::core::SampleIdentity &cookie,
|
|
const Core::RemoveElementRequest &request) override final;
|
|
|
|
void onMountingPointPlanModifyRequest(const rti::core::SampleIdentity &cookie,
|
|
const MountingPointPlanModifyRequest &request) override final;
|
|
Core::FunctionReplyObject mountingPointPlanModify(const MountingPointPlanModifyRequest &request);
|
|
|
|
void onDbInsertedSchedule(const QVariant &id_);
|
|
|
|
private:
|
|
QHash<int, ObjectMainSchedule *> m_objectMainScheduleMap;
|
|
MainHandler *m_mainHandler;
|
|
};
|
|
}
|