Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* Common class to get a file content by FTC
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Iuliana Ojog, SLSE, 2017-08-22
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LtsUtilsGuiDds/request_helper.h>
|
||||
#include <FileManagement/logger.h>
|
||||
#include <Services/FileManagement/flm_ftc.h>
|
||||
|
||||
#include <QObject>
|
||||
|
||||
namespace FileManagement
|
||||
{
|
||||
class GetFileContent
|
||||
: public QObject
|
||||
, protected FileManagement::Interface::Ftc::GetFileContentDataReplyHandler
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit GetFileContent(const std::shared_ptr<FileManagement::Interface::Ftc> &ftc,
|
||||
QObject *parent = nullptr);
|
||||
~GetFileContent();
|
||||
|
||||
bool getContent(int fileContentId, std::vector<uint8_t> &content);
|
||||
|
||||
private:
|
||||
void onGetFileContentDataReply(const GetFileContentDataReply &replyObject) override final { m_requestHelper->requestReply(replyObject); }
|
||||
|
||||
private:
|
||||
LtsUtils::RequestHelper *m_requestHelper{nullptr};
|
||||
std::shared_ptr<FileManagement::Interface::Ftc> m_ftc;
|
||||
LOGGER_T m_logger;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user