Removes migration stub headers superseded by codegen outputs

Drops 184 stub headers and obsolete stub tests now generated in the build tree.
This commit is contained in:
berrux-dev committed 2026-09-21 02:38:33 +02:00
1 parent 4e29022c06
commit 220ca64679
184 files changed
-8951

No files matched your search

@@ -1,322 +0,0 @@
/**
* STUB-HEADER: Diese Datei wird normalerweise von AudioVideoManagement generiert
* Für die Migration ohne RTI erstellen wir minimale Typ-Definitionen
*/
#pragma once
#include <QtCore/QMetaType>
#include "svcavmcommon_export.h"
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVector>
#include <QtCore/QPair>
#include <chrono>
#include <cstdint>
namespace AudioVideoManagement
{
class StreamNameMapping;
enum class AvaVisibility
{
Visible = 1,
Hidden = 0
};
enum class AvaStreamState
{
Stop = 0,
Start = 1,
Pause = 2,
NotPossible = 3
};
enum class AvaStreamType
{
Audio = 1,
Video = 2
};
enum class AvaStreamSource
{
Interface = 1, //!< live streams
Server = 2, //!< stored streams for playback
Local = 4
};
enum class AvaScriptSource
{
ServerAudio = 1,
ServerVideo = 2,
LocalAudio = 3,
LocalVideo = 4
};
enum class AvaElokaMode
{
EndlessLoop = 0,
Once = 1
};
enum class AvaQueryElokaMode
{
Stop = 0, //!< stop previously requested asynchronous notifications
Poll = 1, //!< poll active ELOKA measures once
Push = 2 //!< request asynchronous notifications from AVS
};
enum class AvaSumChannel
{
Right = 1,
Left = 2
};
enum class AvaRtButtonState
{
NotAvailable = 0,
None = 1,
Left = 2,
Right = 3,
Both = 4
};
class AVM_COMMON_EXPORT AvaSpeed
{
public:
explicit AvaSpeed(int speed = 0) : m_speed(speed) {}
operator int() const { return m_speed; }
static const QVector<int> &allowedValues()
{
static const QVector<int> values = {0, 25, 50, 75, 100, 125, 150, 175, 200};
return values;
}
private:
int m_speed;
};
class AVM_COMMON_EXPORT AvaVolume
{
public:
explicit AvaVolume(int db = 0) : m_db(db) {}
operator int() const { return m_db; }
static AvaVolume min() { return AvaVolume(-50); }
static AvaVolume max() { return AvaVolume(20); }
private:
int m_db;
};
class AVM_COMMON_EXPORT AvaAudioPrio
{
public:
explicit AvaAudioPrio(int prio = 0) : m_prio(prio) {}
operator int() const { return m_prio; }
static AvaAudioPrio min() { return AvaAudioPrio(0); }
static AvaAudioPrio max() { return AvaAudioPrio(255); }
private:
int m_prio;
};
/**
* Position (index) of a radio circuit in the AVS_Workstation GUI.
* The index must be in [1, 8].
*/
class AVM_COMMON_EXPORT AvaRtPos
{
public:
explicit AvaRtPos(int pos = 1) : m_pos(pos) {}
operator int() const { return m_pos; }
static constexpr int min() { return 1; }
static constexpr int max() { return 8; }
static constexpr int count() { return max() - min() + 1; }
private:
int m_pos;
};
enum class AvaGuiStyle
{
Light = 0,
Dark
};
using AvaDuration = std::chrono::duration<int64_t, std::centi>;
using AvaTimePoint = std::chrono::time_point<std::chrono::system_clock, AvaDuration>;
/**
* Information about a stream in response to getStreamList.
*/
struct AVM_COMMON_EXPORT AvaStream
{
/**
* @param nameWithSourceSpec is the AVS-internal stream name plus a source specifier that must match
* the given AvaStreamSource, "(S)" for Server, "(L)" for Local, nothing for Interface.
*/
static AvaStream create(AvaStreamType, AvaStreamSource, const QString &nameWithSourceSpec, StreamNameMapping *streamNameMapping)
{
Q_UNUSED(nameWithSourceSpec)
Q_UNUSED(streamNameMapping)
return AvaStream{};
}
/**
* Returns the AVS-internal stream name plus a source specifier at the end
* as described in create().
*/
QString toString() const { return internalName; }
/** Same as toString() but for a vector of streams. */
static QStringList toStringList(const QVector<AvaStream> &streams)
{
QStringList result;
for (const auto &s : streams) {
result.append(s.toString());
}
return result;
}
bool operator==(const AvaStream &other) const
{
return type == other.type && source == other.source &&
internalName == other.internalName && displayName == other.displayName;
}
bool operator!=(const AvaStream &other) const { return !(*this == other); }
AvaStreamType type = AvaStreamType::Audio;
AvaStreamSource source = AvaStreamSource::Interface;
QString internalName; //!< AVS-internal stream name without source specifier
QString displayName; //!< name to be displayed in the GUI without source specifier
};
/**
* Information about a stream as contained in StreamInfo in response to chooseStream.
*/
struct AVM_COMMON_EXPORT AvaStreamInfo
{
AvaTimePoint start;
AvaTimePoint end;
AvaDuration duration;
};
using AvaTimelinePart = QPair<AvaTimePoint, AvaTimePoint>;
class AVM_COMMON_EXPORT AvaTimeline
{
public:
AvaTimeline() = default;
explicit AvaTimeline(const QVector<AvaTimelinePart> &parts) : m_parts(parts) {}
bool isEmpty() const { return m_parts.isEmpty(); }
const AvaTimePoint &startTime() const
{
static AvaTimePoint dummy;
return m_parts.isEmpty() ? dummy : m_parts.first().first;
}
const AvaTimePoint &endTime() const
{
static AvaTimePoint dummy;
return m_parts.isEmpty() ? dummy : m_parts.last().second;
}
void clear() { m_parts.clear(); }
void append(const AvaTimelinePart &part) { m_parts.append(part); }
void merge(const AvaTimeline &other)
{
m_parts.append(other.m_parts);
}
const QVector<AvaTimelinePart> &parts() const { return m_parts; }
bool operator==(const AvaTimeline &other) const { return m_parts == other.m_parts; }
bool operator!=(const AvaTimeline &other) const { return m_parts != other.m_parts; }
private:
void checkConsistency() const {}
QVector<AvaTimelinePart> m_parts;
};
/**
* Information about an eloka in response to queryEloka.
*/
struct AVM_COMMON_EXPORT AvaEloka
{
QString signal;
QString stream;
qint32 priority = 0;
AvaTimePoint time;
bool operator==(const AvaEloka &other) const
{
return signal == other.signal && stream == other.stream &&
priority == other.priority && time == other.time;
}
bool operator!=(const AvaEloka &other) const { return !(*this == other); }
};
/**
* Information about a script entry.
*/
struct AVM_COMMON_EXPORT AvaScriptEntry
{
bool operator==(const AvaScriptEntry &other) const
{
return name == other.name && speed == other.speed &&
start == other.start && stop == other.stop &&
db == other.db && mute == other.mute && pint == other.pint;
}
bool operator!=(const AvaScriptEntry &other) const { return !(*this == other); }
QString name;
AvaSpeed speed{100};
AvaTimePoint start;
AvaTimePoint stop;
AvaVolume db{0};
bool mute = false;
bool pint = false;
};
/**
* Represents the JSON data for a AV script topic in a C++ way.
*/
struct AVM_COMMON_EXPORT AvaTopicData
{
public:
explicit AvaTopicData(const QJsonObject &data) : m_isAudio(false), isValid(true)
{
Q_UNUSED(data)
}
bool isAudio() const { return m_isAudio; }
const QString &scriptName() const { return m_scriptName; }
const QVector<AvaScriptEntry> &streamList() const { return m_streamList; }
bool isValid = true;
private:
bool m_isAudio = false;
QString m_scriptName;
QVector<AvaScriptEntry> m_streamList;
};
} // namespace AudioVideoManagement
Q_DECLARE_METATYPE(AudioVideoManagement::AvaStream)
@@ -1,13 +0,0 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
namespace AudioVideoManagement
{
namespace Interface
{
class Dtc;
class Ftc;
} // namespace Interface
} // namespace AudioVideoManagement
@@ -1,13 +0,0 @@
/**
* Stub export header for non-RTI builds
* When BUILD_RTI=OFF, svcAvmCommon library is not built
* This stub allows dependent code to compile
*/
#pragma once
#include <QtCore/qglobal.h>
// Stub export macros for non-RTI builds
#define AVM_COMMON_EXPORT
#define AVM_CLIENT_EXPORT
#define AVM_SERVER_EXPORT
@@ -1,77 +0,0 @@
/**
* @file avm_translation.h
* @brief Translation functions for AudioVideoManagement enums
*
* This file provides toString() functions for AVM enums used in CNR frequency planning.
*/
#ifndef AVM_TRANSLATION_H
#define AVM_TRANSLATION_H
#include <QtCore/QString>
#include "avm_enums.hpp"
namespace AudioVideoManagement {
// RcOperatingMode toString - using actual enum values from stub
inline QString toString(RcOperatingMode mode)
{
switch (mode.underlying()) {
case RcOperatingMode::FixedFreqEncNone: return QStringLiteral("FixedFreqEncNone");
case RcOperatingMode::FixedFreqEncHwKr: return QStringLiteral("FixedFreqEncHwKr");
case RcOperatingMode::FixedFreqEncHwKrKl: return QStringLiteral("FixedFreqEncHwKrKl");
case RcOperatingMode::AkwEncNone: return QStringLiteral("AkwEncNone");
case RcOperatingMode::AkwEncEccm: return QStringLiteral("AkwEncEccm");
case RcOperatingMode::SIMPLEX: return QStringLiteral("SIMPLEX");
case RcOperatingMode::HALFDUPLEX: return QStringLiteral("HALFDUPLEX");
case RcOperatingMode::DUPLEX: return QStringLiteral("DUPLEX");
default: return QStringLiteral("Unknown");
}
}
// FrequencyBand toString
inline QString toString(FrequencyBand band)
{
switch (band.underlying()) {
case FrequencyBand::Undefined: return QStringLiteral("Undefined");
case FrequencyBand::HF: return QStringLiteral("HF");
case FrequencyBand::VHF: return QStringLiteral("VHF");
case FrequencyBand::UHF: return QStringLiteral("UHF");
case FrequencyBand::REL: return QStringLiteral("REL");
default: return QStringLiteral("Unknown");
}
}
// ModulationType toString
inline QString toString(ModulationType mod)
{
switch (mod.underlying()) {
case ModulationType::AM: return QStringLiteral("AM");
case ModulationType::FM: return QStringLiteral("FM");
default: return QStringLiteral("Unknown");
}
}
// ChannelSpacingHF toString
inline QString toString(ChannelSpacingHF spacing)
{
switch (spacing.underlying()) {
case ChannelSpacingHF::CS_100_Hz: return QStringLiteral("CS_100_Hz");
default: return QStringLiteral("Unknown");
}
}
// ChannelSpacing toString
inline QString toString(ChannelSpacing spacing)
{
switch (spacing.underlying()) {
case ChannelSpacing::CS_25_00_kHz: return QStringLiteral("CS_25_00_kHz");
case ChannelSpacing::CS_12_50_kHz: return QStringLiteral("CS_12_50_kHz");
case ChannelSpacing::CS_8_33_kHz: return QStringLiteral("CS_8_33_kHz");
default: return QStringLiteral("Unknown");
}
}
} // namespace AudioVideoManagement
#endif // AVM_TRANSLATION_H
@@ -1,13 +0,0 @@
#ifndef SVCAVMCOMMON_EXPORT_H
#define SVCAVMCOMMON_EXPORT_H
// Stub export header for non-RTI builds
// When BUILD_RTI=OFF, svcAvmCommon library is not built
// This stub allows dependent code to compile
// Map to the actual macro names used in avm_export.h
#define AVM_COMMON_EXPORT
#define AVM_CLIENT_EXPORT
#define AVM_SERVER_EXPORT
#endif /* SVCAVMCOMMON_EXPORT_H */