Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/include/FileManagement/flm_enums.hpp
T
torsten 851d47e114 BUILD_RTI=OFF: 1902/1902 Targets erfolgreich, DDS-Stubs vervollständigt
Neue Stub-Header für BUILD_RTI=OFF Konfiguration:
- include/DDS/Generic/generic_base.h: Topic-Name-Templates, Helper-Funktionen
- include/DDS/Generic/generic_logger.h: Logger-Wrapper mit DataType-Enum
- include/DDS/Generic/ddsgen_export.h: Export-Makros (leer für OFF)
- include/DDS/Generic/generic_data_reader.h: Data Reader Template-Stub
- include/DDS/DTC/generic_dtc.h: Minimale DDS-Typen für DTC
- include/LtsUtils/LtsUtilsCore/data_modification_enum.h: DataModification Enum
- include/FileManagement/flm_dtc_impl.h: Virtuelle Methoden für Name-Helper
- include/OperatorManagement/opm_dtc_impl.h: DtcImpl ohne Q_OBJECT

Wichtige Änderungen:
- QObject-Basisklasse entfernt für DatabaseInterfaceImpl und DtcImpl (BUILD_RTI=OFF)
- Logger-Stub verwendet Qt-Logging (qDebug/qWarning/qCritical)
- FileStatus als int-Alias statt enum class für BUILD_RTI=OFF
- CMake: DDS-Bibliotheken als leere INTERFACE-Targets für BUILD_RTI=OFF
- std::optional: is_set() → has_value(), get() → value()
- QList → std::vector Konversionen korrigiert
- qAsConst-Fehler mit rvalue expressions behoben

Build-Status: 1902/1902 Targets erfolgreich (BUILD_RTI=OFF)
Tests: Nicht ausführbar ohne RTI Connext DDS (BUILD_RTI=ON erforderlich)
2026-08-30 10:36:47 +02:00

160 lines
2.9 KiB
C++

#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Typ-Definitionen basierend auf flm_service.xml
#include <QtCore/QString>
namespace FileManagement
{
// Enums aus flm_service.xml
// Für BUILD_RTI=OFF: FileStatus als int, um direkte Vergleiche zu ermöglichen
#ifndef BUILD_RTI
using FileStatus = int;
constexpr int FileStatus_Valid = 0;
constexpr int FileStatus_Deleted = 1;
#else
enum class FileStatus : int { Valid = 0, Deleted = 1 };
#endif
enum class FileCategory : int { Global = 1, Exercise = 2, User = 3 };
enum class FileType : int {
Unknown = 0,
Text = 1,
Xml = 2,
Pdf = 3,
Jpg = 4,
Png = 5,
TacticalPlan = 6,
OperatorFavourite = 7,
OperatorDefinedSymbol = 8,
OpenOfficeDocument = 9,
OpenOfficeSpreadsheet = 10,
OpenOfficePresentation = 11,
MSOfficeDocument = 12,
MSOfficeDocument97 = 13,
MSOfficeSpreadsheet = 14,
MSOfficeSpreadsheet97 = 15,
MSOfficePresentation = 16,
MSOfficePresentation97 = 17,
Zip = 18,
Gif = 19,
Bmp = 20,
Tiff = 21,
Wmf = 22,
Emf = 23,
Rtf = 24,
Html = 25,
Hlp = 26,
Wps = 27,
Wpd = 28,
Wk3 = 29,
Wk4 = 30,
Wks = 31,
Wr1 = 32,
Wr3 = 33,
Wq1 = 34,
Wq2 = 35,
Dif = 36,
Dbf = 37,
Slk = 38,
Xlk = 39,
Doc = 40,
Dot = 41,
Xls = 42,
Xlt = 43,
Ppt = 44,
Pps = 45,
Pot = 46,
Accdb = 47,
Accde = 48,
Mwcd = 49,
Mwct = 50,
Mwcz = 51,
Mwcu = 52,
Ods = 53,
Odt = 54,
Odp = 55,
Odg = 56,
Odf = 57,
Odc = 58,
Odi = 59,
Odm = 60,
Otg = 61,
Oth = 62,
Ots = 63,
Ott = 64,
Oxt = 65,
Six = 66,
Msg = 67,
Vsd = 68,
Vdx = 69,
Vsx = 70,
Vtx = 71,
Vss = 72,
Vst = 73,
Vsw = 74,
VsdX = 75,
VssX = 76,
VstX = 77,
VdxX = 78,
VsxX = 79,
VtxX = 80,
Dwg = 81,
Dxf = 82,
Dgn = 83,
Cgm = 84,
Cal = 85,
Mil = 86,
Img = 87,
Grib = 88,
Grb2 = 89,
Wkt = 90,
Shp = 91,
Tab = 92,
Mif = 93,
E00 = 94,
Aml = 95,
Coverage = 96,
Tin = 97,
Grid = 98,
Lyr = 99,
Lrx = 100,
Pmf = 101,
Pmz = 102,
Sxd = 103,
Sxm = 104,
Sxg = 105,
Sxi = 106,
Sxc = 107,
Sxw = 108,
Stw = 109,
Sxv = 110,
Sxd2 = 111,
Sxm2 = 112,
Sxg2 = 113,
Sxi2 = 114,
Sxc2 = 115,
Sxw2 = 116,
Stw2 = 117,
Sxv2 = 118,
Video = 119,
Audio = 120,
Flash = 121,
Svg = 122,
Svgz = 123
};
// MainFolder Enum
enum class MainFolder : int { None = 0, GlobalDocuments = 1, UserDocuments = 2, ExerciseDocuments = 3 };
// Helper-Funktion
inline int toInt(MainFolder folder) { return static_cast<int>(folder); }
// Forward declarations
class Folder;
class FileContent;
class Ftc;
} // namespace FileManagement