Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Services/InfrastructureManagement/object_main_schedule.h
T
torstenandCopilot d5af8b9764 Session 026: Lts/Services Qt5:: to Qt6:: migration
- 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>
2026-08-25 19:23:30 +02:00

59 lines
1.9 KiB
C++
Executable File

/**
* @RDE_HEADER@
* ISM Object Mounting Point Schedule
* $Id$
* $HeadURL$
* $Author$
* Created by Iuliana Ojog, SLSE, 2016-11-26
*/
#pragma once
#include "base.h"
#include <DDS/Core/function_reply_object.h>
#include <InfrastructureManagement/ism_db.h>
//-------------------------------------------------------------------------------------------------------------
namespace InfrastructureManagement
{
class ObjectMainSchedule : public Base
{
public:
explicit ObjectMainSchedule(MainHandler *mainHandler);
~ObjectMainSchedule();
Core::FunctionReplyObject createObject(const MainSchedule &data);
Core::FunctionReplyObject updateObject(const MainSchedule &data);
Core::FunctionReplyObject removeObject();
Core::FunctionReplyObject copyObject(qint32 scheduleId);
qint32 getId() const { return m_data.id(); }
MainSchedule getData() const { return m_data; }
QString getName() const { return QString::fromStdString(m_data.name()); }
ScheduleStatus scheduleStatus() const { return m_data.statusId(); }
Core::FunctionReplyObject updateElements(const std::vector<MountingPointPlan> &newElements);
bool isValid() const;
bool isUsed() const;
Core::FunctionReplyObject setUsed(bool isUsed);
// convert methods
static Database::IsmMountingPointPlan toDbData(int scheduleId, const MountingPointPlan &ddsData); // dds -> db
static MountingPointPlan toDdsData(const Database::IsmMountingPointPlan &dbData); // db -> dds
static Database::IsmMountingPointSchedule toDbData(const MainSchedule &ddsData); // dds -> db
static MainSchedule toDdsData(const Database::IsmMountingPointSchedule &dbData); // db -> dds
bool loadMountingPointPlans();
private:
// Used by ScheduleStatusManager (only internal)
bool setScheduleStatus(const ScheduleStatus &status);
private:
MainSchedule m_data;
QHash<int, MountingPointPlan> m_mppMap;
};
}