Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+98
@@ -0,0 +1,98 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* PresentationManagement - Script Overview Dialog
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
*
|
||||
* Created by Mike Wille, SLSE, 2017-03-15
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <Services/PresentationManagement/pre_dtc.h>
|
||||
#include <Services/PresentationManagement/pre_ftc.h>
|
||||
#include <Services/PresentationManagement/logger.h>
|
||||
#include <Services/OperatorManagement/opm_dtc.h>
|
||||
#include <LtsWidgets/lts_dialog.h>
|
||||
#include <LtsUtilsGuiDds/request_helper.h>
|
||||
#include <LtsSession/lts_session.h>
|
||||
#include <Tools/DBAdministration/copy_exercise.h>
|
||||
|
||||
#include <Plugins/AudioVideoManagement/avm_data_plugin_interface.h>
|
||||
#include <AudioVideoManagement/ava_types.h>
|
||||
|
||||
#include <QProgressDialog>
|
||||
|
||||
|
||||
namespace AudioVideoManagement {
|
||||
class AvaControl;
|
||||
}
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
class PreMobileDialog;
|
||||
}
|
||||
class QSortFilterProxyModel;
|
||||
|
||||
namespace PresentationManagement
|
||||
{
|
||||
class PreMobileDialogModel;
|
||||
|
||||
class PreMobileDialog : public LtsWidgets::LtsDialog
|
||||
, protected PresentationManagement::Interface::Ftc::GetPresentationContentReplyHandler
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit PreMobileDialog(QWidget *parent = nullptr);
|
||||
~PreMobileDialog();
|
||||
|
||||
bool init(const std::shared_ptr<Interface::Dtc> &dtc,
|
||||
const std::shared_ptr<PresentationManagement::Interface::Ftc> &ftc,
|
||||
const std::shared_ptr<OperatorManagement::Interface::Dtc> &opmDtc,
|
||||
const std::shared_ptr<AudioVideoManagement::DataInterface> &avmDataIfc,
|
||||
LtsSession::LtsSession *session);
|
||||
|
||||
void getAVScripts();
|
||||
|
||||
private slots:
|
||||
void onCopyDbFailed();
|
||||
void onCopyDbFinished();
|
||||
void slotScriptSet(const AudioVideoManagement::AvaStreamInfo &streamInfo, AudioVideoManagement::AvaStreamState streamState);
|
||||
void slotScriptDownloaded(AudioVideoManagement::AvaStreamState streamState);
|
||||
void slotScriptDownloadedStep2();
|
||||
void onProgressBar(int nextProgress);
|
||||
private:
|
||||
void retranslate() override;
|
||||
void changeStatus(const FileStatus &fs);
|
||||
bool downloadAVScripts();
|
||||
void handlePresentationContent(const GetPresentationContentReply &reply);
|
||||
void onGetPresentationContentReply(const GetPresentationContentReply &reply) override;
|
||||
|
||||
PreMobileDialogModel *m_model;
|
||||
QSortFilterProxyModel *m_proxyModel;
|
||||
Ui::PreMobileDialog *m_ui;
|
||||
LtsSession::LtsSession *m_session;
|
||||
LtsUtils::RequestHelper *m_requestHelper;
|
||||
std::shared_ptr<PresentationManagement::Interface::Dtc> m_dtc;
|
||||
std::shared_ptr<PresentationManagement::Interface::Ftc> m_ftc;
|
||||
std::shared_ptr<AudioVideoManagement::DataInterface> m_avmDataIfc;
|
||||
DBAdministration::CopyExercise m_copyExercise;
|
||||
QVector<QJsonObject> m_vecScripts;
|
||||
AudioVideoManagement::AvaControl* m_avaControl;
|
||||
QString m_lastScriptName;
|
||||
QWidget *m_widgetProgressBar;
|
||||
QProgressBar *m_progressBar;
|
||||
QLabel *m_label;
|
||||
int m_avScriptsCount;
|
||||
int m_avScriptsActualDone;
|
||||
LOGGER_T m_logger;
|
||||
|
||||
private slots:
|
||||
void slotDownload();
|
||||
void enaDisa();
|
||||
|
||||
};
|
||||
|
||||
} // namespace PresentationManagement
|
||||
Reference in new issue
Block a user