- 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>
104 lines
1.7 KiB
C++
Executable File
104 lines
1.7 KiB
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <avmshared_export.h>
|
|
#include <QString>
|
|
#include <QObject>
|
|
#include <memory>
|
|
#include <functional>
|
|
|
|
class QRect;
|
|
|
|
namespace AudioVideoManagement
|
|
{
|
|
|
|
class AvsApp;
|
|
class AvaControl;
|
|
|
|
|
|
class AVMSHARED_EXPORT ObjectWrapper : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ObjectWrapper(QObject *parent) : QObject(parent) {}
|
|
|
|
signals:
|
|
void signalVisible();
|
|
void signalPause();
|
|
void signalResume();
|
|
};
|
|
|
|
|
|
|
|
|
|
class AVMSHARED_EXPORT PlaybackApp
|
|
{
|
|
public:
|
|
|
|
enum class AppType
|
|
{
|
|
Normal = 1,
|
|
AutoHide,
|
|
AlwaysHidden
|
|
};
|
|
|
|
|
|
|
|
PlaybackApp(const QString &dialogId, AvaControl *avaControl, AppType);
|
|
virtual ~PlaybackApp();
|
|
|
|
ObjectWrapper *objectWrapper() { return m_objectWrapper; }
|
|
const QString &dialogId() const { return m_dialogId; }
|
|
|
|
|
|
bool inUse() const { return m_inUse; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void acquire();
|
|
void acquire(const QRect &geometry);
|
|
void setGeometry(const QRect &geometry);
|
|
|
|
|
|
void release();
|
|
|
|
void hide(bool andClose);
|
|
|
|
|
|
|
|
private:
|
|
const QString m_dialogId;
|
|
bool m_inUse{false};
|
|
bool m_autoHide;
|
|
std::unique_ptr<AvsApp> m_app;
|
|
ObjectWrapper *m_objectWrapper { nullptr };
|
|
};
|
|
|
|
|
|
|
|
|
|
class AVMSHARED_EXPORT PlaybackAppHandle
|
|
{
|
|
public:
|
|
PlaybackAppHandle() = default;
|
|
explicit PlaybackAppHandle(PlaybackApp *app);
|
|
PlaybackAppHandle(PlaybackApp *app, const QRect &geometry);
|
|
|
|
operator bool() const { return m_app.get() != nullptr; }
|
|
|
|
const QString &dialogId() const { return m_app->dialogId(); }
|
|
void hide(bool andClose = false) { m_app->hide(andClose); }
|
|
ObjectWrapper *objectWrapper() { return m_app->objectWrapper(); }
|
|
|
|
private:
|
|
using Releaser = std::function<void (PlaybackApp *)>;
|
|
std::unique_ptr<PlaybackApp, Releaser> m_app;
|
|
};
|
|
|
|
}
|