- cmake/FindRTI.cmake: Add INTERFACE placeholder targets when RTI not found - cmake/FindRTI.cmake: Force BUILD_RTI=OFF when RTI not installed - Lts/Common/LtsSession/CMakeLists.txt: Make LtsSessionDataDds conditional on BUILD_RTI - Lts/Viewer/CMakeLists.txt: Make LtsDataView conditional on BUILD_RTI - Lts/Plugins/*/CMakeLists.txt: 97 plugin files wrapped in BUILD_RTI conditionals - cmake/NGLMacros.cmake: Fix NGL_ADD_BIG_RESOURCES macro (removed premature return()) - Multiple Qt6 API fixes: QLinkedList→std::list, QStringRef→QStringView, etc. - BUILD_RTI_FIXES_SUMMARY.md: Comprehensive documentation of all fixes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
63 lines
1.9 KiB
C++
Executable File
63 lines
1.9 KiB
C++
Executable File
/**
|
|
* NomNotification object
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Hanna E. Rathje, ESZS, 2025-06-23
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "dds_handler.h"
|
|
//#include "nom_db.h"
|
|
#include <Core/core_types.h>
|
|
|
|
// Generated
|
|
#include <NotificationManagement/nom_db.h>
|
|
|
|
namespace NotificationManagement
|
|
{
|
|
|
|
class ObjectNotification final
|
|
{
|
|
public:
|
|
explicit ObjectNotification(const std::shared_ptr<DdsHandler> &ddsHandler,
|
|
const std::shared_ptr<DatabaseInterface> &db);
|
|
|
|
~ObjectNotification();
|
|
|
|
Core::FunctionReplyObject createObject(const NomNotification &data);
|
|
Core::FunctionReplyObject readReceipt(const ReadReceipt &data, int notificationId);
|
|
Core::FunctionReplyObject deleteMessage(const DeleteMessage &data, int notificationId);
|
|
Core::FunctionReplyObject deleteObject(const DeleteMessage &data, int notificationId);
|
|
Core::FunctionReplyObject removeObject();
|
|
|
|
Core::FunctionReplyObject setUsed(bool isUsed);
|
|
|
|
qint32 id() const { return m_dataNotificationObject.id(); }
|
|
NomNotification notification() const { return m_dataNotificationObject; }
|
|
QString title() const { return QString::fromStdString(m_dataNotificationObject.title()); }
|
|
|
|
bool isValid() const;
|
|
bool isUsed() const;
|
|
|
|
|
|
// convert methods
|
|
Database::NomNotification toDbData(const NomNotification &ddsData); // dds -> db
|
|
static NomNotification toDdsData(const Database::NomNotification &dbData); // db -> dds
|
|
|
|
static Database::NomAddress toDbData(const Address &ddsData); // dds -> db
|
|
static Address toDdsData(const Database::NomAddress &dbData); // db -> dds
|
|
|
|
private:
|
|
void onPublishData();
|
|
QString contentArgsToJson();
|
|
static std::vector<std::string> jsonToContentArgs(const QString &properties);
|
|
|
|
private:
|
|
std::shared_ptr<DdsHandler> m_ddsHandler;
|
|
std::shared_ptr<DatabaseInterface> m_db;
|
|
NomNotification m_dataNotificationObject;
|
|
};
|
|
} // namespace NotificationManagement
|