You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.8 KiB
C

/**
*
* @file FITKSignalTransfer.hpp
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-05
*
*/
#ifndef _FITKSIGNALTRANSFER_H__
#define _FITKSIGNALTRANSFER_H__
#include <QObject>
#include <QList>
#include "FITKAppFrameworkAPI.h"
namespace Core
{
class FITKAbstractObject;
}
namespace AppFrame
{
class FITKAbstractProgramerDriver;
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-05
*/
class FITKAppFrameworkAPI FITKSignalTransfer : public QObject
{
Q_OBJECT
public:
using QObject::QObject;
/**
* @brief Destroy the FITKSignalTransfer object
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-05
*/
virtual ~FITKSignalTransfer() ;
/**
* @brief signalTransfer
* @param[i] obj
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-08
*/
void addSignalProcesser(QObject* obj);
signals:
/**
* @brief
* @param[i] type 1-normal 2-warning 3-error 4-info
* @param[i] message
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-05
*/
void outputMessageSig(int type, QString message);
/**
* @brief 线 0~100
* @param[o] sender
* @param[o] process 线 0-100
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-26
*/
void sendProcessSig(QObject* sender, int process);
/**
* @brief
* @param[i] driver
* @oaram[i] messageType
* @param[i] message
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-06-22
*/
void sendProgramDriverMessageSig(FITKAbstractProgramerDriver* driver, int messageType, const QString& message);
/**
* @brief /
* @param[i] sender
* @oaram[i] isFile false-
* @param[i] path
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-06-22
*/
void fileDirectoryChangedSig(Core::FITKAbstractObject* sender, bool isFile, const QString& path);
private:
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-08
*/
QList<QObject*> _signalProcesser{};
};
}
#endif