34 lines
1.2 KiB
C++
34 lines
1.2 KiB
C++
#include "seffectprocess.h"
|
|
#include "sutilclass.h"
|
|
#include "sutilfunction.h"
|
|
#include <iostream>
|
|
#include <QApplication>
|
|
namespace
|
|
{
|
|
const QString SEPERATOR = "!@#";
|
|
}
|
|
SEffectProcess::SEffectProcess(const QString& _platform_name, const QString& _platform_form,
|
|
const QString& _event_code, const QString& _url)
|
|
{
|
|
m_pParam[E_PARAM_URL] = _url;
|
|
m_pParam[E_PARAM_EVENT_CODE] = _event_code;
|
|
m_pParam[E_PARAM_PLATFORM_FORM] = _platform_form;
|
|
m_pParam[E_PARAM_PLATFORM_NAME] = _platform_name;
|
|
}
|
|
|
|
void SEffectProcess::slotOk()
|
|
{
|
|
std::cout << 'o' << SEPERATOR.toStdString() << m_pParam[E_PARAM_EVENT_CODE].toStdString() <<
|
|
SEPERATOR.toStdString() << m_pParam[E_PARAM_URL].toStdString();
|
|
QApplication::quit();
|
|
}
|
|
|
|
void SEffectProcess::slotError(E_ERROR_CODE _error, const QString &_msg)
|
|
{
|
|
std::cout << 'x' << SEPERATOR.toStdString() << m_pParam[E_PARAM_EVENT_CODE].toStdString()
|
|
<< SEPERATOR.toStdString() << m_pParam[E_PARAM_URL].toStdString() << EnumErrorCodetostrErrorCode(_error).toStdString()
|
|
<< SEPERATOR.toStdString() << _msg.toStdString();
|
|
QApplication::quit();
|
|
}
|
|
|