effectprocess 추가

git-svn-id: svn://192.168.0.12/source@305 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
admin
2016-10-27 10:11:49 +00:00
parent 0b075003a4
commit 6d62c97b54
31 changed files with 2417 additions and 27 deletions

View File

@@ -0,0 +1,33 @@
#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();
}