You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# pragma once
/// @Brief 回调类
class ISubCoreCallback {
public :
virtual ~ ISubCoreCallback ( ) { }
// 错误
// @param errType 错误类型, 参见ISubCoreCallback::ERR_T_开头的枚举值
// @param errTxt 错误文本
// @param extValue 附加值
virtual void onError ( unsigned int errType , const char * errTxt , int extValue ) = 0 ;
// Http请求返回
virtual void onHttpRequest ( const char * id , const char * method , bool isCorrect , const char * json ) = 0 ;
// 打开任务对话框
virtual bool openTaskDlg ( const char * title , const char * imgPath , const char * text , const char * soundPath = nullptr ) = 0 ;
// 通知任务结束
virtual void onTaskEnd ( unsigned int taskId , int error ) = 0 ;
public :
enum
{
ERR_T_NONE , // 未有错误
ERR_T_REG_URL , // 注册URL失败
ERR_T_TASK_EXEC , // 任务执行失败
ERR_T_TASK_SCRIPT , // 任务脚本错误
} ;
} ;