effectprocess 추가
git-svn-id: svn://192.168.0.12/source@306 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
#include "sutilclass.h"
|
||||
#include "sresultsender.h"
|
||||
|
||||
enum E_PARAM
|
||||
{
|
||||
@@ -13,6 +14,7 @@ enum E_PARAM
|
||||
E_PARAM_MAX
|
||||
};
|
||||
|
||||
class EffectData;
|
||||
|
||||
class SEffectProcess:public QObject
|
||||
{
|
||||
@@ -21,16 +23,29 @@ class SEffectProcess:public QObject
|
||||
public:
|
||||
SEffectProcess(const QString& _platform_name, const QString& _platform_form,
|
||||
const QString& _event_code, const QString& _url);
|
||||
virtual void run() = 0;
|
||||
virtual void run(const QString& _url) = 0;
|
||||
|
||||
protected:
|
||||
virtual State_s1_effect processData(const EffectData& _data) = 0;
|
||||
bool send(const State_s1_effect& _result);
|
||||
int eventCode();
|
||||
|
||||
protected slots:
|
||||
void slotOk();
|
||||
void slotError(E_ERROR_CODE _error, const QString& _msg);
|
||||
void slotDataOk(const EffectData& _data);
|
||||
|
||||
private:
|
||||
void initConnect();
|
||||
|
||||
private:
|
||||
QString m_pParam[E_PARAM_MAX];
|
||||
std::unique_ptr<SResultSender> m_pResultSender;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // SEFFECTPROCESS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user