Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

+51
View File
@@ -0,0 +1,51 @@
/**
* Communication with A/V system - fm server
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include "av_socket.h"
#include "logger.h"
namespace AudioVideoManagement
{
class ExerciseContext;
class FMControl final : public AVSocket
{
Q_OBJECT
public:
enum class Commands
{
SyslogEvent = 265,
AvEvent = 266
};
enum class Subcommands
{
AllFilesDeleted = 2306,
FileDeletionProgress = 2307
};
public:
FMControl(const QString &fmServerHost, quint16 fmServerPort, QObject *parent = nullptr);
~FMControl();
signals:
/**
* When we want to delete an exercise (on AVS side) we set it's operating
* mode to Cleanup. Then AVS starts to delete all the files associated with the exercise.
* Once the deletion is finished, this signal will be triggered.
*/
void fileDeletionCompleted(const ExerciseContext &context);
private:
void handleSubcommandAvEvent(const QByteArray &line, const QVector<QByteArray> &baList);
private Q_SLOTS:
void onReadyRead() override;
};
} // namespace AudioVideoManagement