effectprocess 추가
git-svn-id: svn://192.168.0.12/source@305 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
33
EffectProcess/seffectprocess.cpp
Normal file
33
EffectProcess/seffectprocess.cpp
Normal 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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user