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.
43 lines
822 B
C++
43 lines
822 B
C++
#include "FITKMessage.h"
|
|
#include "FITKAppFramework.h"
|
|
#include "FITKSignalTransfer.h"
|
|
|
|
void outputMessage(int type, const QString & m)
|
|
{
|
|
//获取信号转接器
|
|
auto signalTrans = FITKAPP->getSignalTransfer();
|
|
if (signalTrans == nullptr) return;
|
|
//发送信息
|
|
emit signalTrans->outputMessageSig(type, m);
|
|
}
|
|
|
|
namespace AppFrame
|
|
{
|
|
void FITKMessageNormal(const QString& message)
|
|
{
|
|
//正常信息
|
|
outputMessage(1, message);
|
|
}
|
|
|
|
void FITKMessageWarning(const QString& message)
|
|
{
|
|
//警告信息
|
|
outputMessage(2, message);
|
|
}
|
|
|
|
void FITKMessageError(const QString& message)
|
|
{
|
|
//错误信息
|
|
outputMessage(3, message);
|
|
}
|
|
|
|
void FITKMessageInfo(const QString& message)
|
|
{
|
|
outputMessage(4, message);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|