Files
qt5-legatus-legacy/Lts/Services/FileManagement/base.h
T
2026-08-13 18:33:10 +02:00

38 lines
808 B
C++
Executable File

/**
* @RDE_HEADER@
* Base Class for all handlers in FLM
* $Id$
* $HeadURL$
* $Author$
* Created by Christian Ehrlicher, SLSE, 2016-11-18
*/
#pragma once
#include <FileManagement/flm_db.h>
#include <FileManagement/flm_dts.h>
#include <FileManagement/flm_dtc.h>
#include <FileManagement/flm_fts.h>
#include "logger.h"
namespace FileManagement
{
class MainHandler;
class Base : public QObject
{
Q_OBJECT
protected:
explicit Base(MainHandler *mainHandler, NGL::INGLLogger &logger, QObject *parent = nullptr);
virtual ~Base();
std::shared_ptr<DatabaseInterface> db() const;
std::shared_ptr<Interface::Dts> dts() const;
std::shared_ptr<Interface::Dtc> dtc() const;
std::shared_ptr<Interface::Fts> fts() const;
protected:
MainHandler *m_mainHandler;
LOGGER_T m_logger;
};
}