- training_area_telegrams.cpp: Fixed QJsonObject initializer syntax (Qt6 requires {{}} not ({}))
- training_area_telegrams.cpp: Fixed fromJson() methods to access m_* members directly
- training_area_telegrams.cpp: Fixed brace mismatches in multiple toJson() methods
- training_area_telegrams.h: Changed Header struct to public members for consistency
- tx_mixin.cpp: Fixed getEquipmentNumber() template for direct member access
- lts_coordinate.cpp: Added missing #include <iomanip>
- MIGRATION_STATUS.md: Added migration progress tracking document
C++17 constraint enforced due to RTI Connext DDS 7.7.0 incompatibility with C++20+
Build status: BUILD_RTI=OFF successful (0 errors, warnings only)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
41 lines
722 B
C++
Executable File
41 lines
722 B
C++
Executable File
|
|
|
|
|
|
#ifndef QTLOCALPEER_H
|
|
#define QTLOCALPEER_H
|
|
|
|
#include <QtNetwork/QLocalServer>
|
|
#include <QtNetwork/QLocalSocket>
|
|
#include <QtCore/QDir>
|
|
|
|
#include "qtlockedfile.h"
|
|
|
|
class QtLocalPeer : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QtLocalPeer(QObject *parent = nullptr, const QString &appId = QString());
|
|
bool isClient();
|
|
bool sendMessage(const QString &message, int timeout);
|
|
QString applicationId() const
|
|
{ return id; }
|
|
|
|
Q_SIGNALS:
|
|
void messageReceived(const QString &message);
|
|
|
|
protected Q_SLOTS:
|
|
void receiveConnection();
|
|
|
|
protected:
|
|
QString id;
|
|
QString socketName;
|
|
QLocalServer* server;
|
|
QtLP_Private::QtLockedFile lockFile;
|
|
|
|
private:
|
|
static const char* ack;
|
|
};
|
|
|
|
#endif
|