cocos-engine-external/android/arm64-v8a/include/anysdk/ProtocolCustom.h

51 lines
1.2 KiB
C++
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/** @file ProtocolCustom.h
*/
#ifndef __CCX_PROTOCOL_CUSTOM_H__
#define __CCX_PROTOCOL_CUSTOM_H__
#include "PluginProtocol.h"
#include <map>
#include <string>
namespace anysdk { namespace framework {
typedef enum
{
kCustomExtension = 80000 /**< enum value is extension code . */
} CustomResultCode;
/**   
 *@class  CustomResultListener
*@brief the interface of share callback  
*/
class CustomResultListener
{
public:
/**   
*@brief the interface of share callback 
*@param the id of callback
*@param the information of callback
*/
virtual void onCustomResult(CustomResultCode ret, const char* msg) = 0;
};
/**   
 *@class  ProtocolCustom
*@brief the interface of custom  
*/
class ProtocolCustom : public PluginProtocol
{
public:
/**
@breif set the result listener
@param pListener The callback object for custom result
@wraning Must invoke this interface before custom
*/
virtual void setResultListener(CustomResultListener* pListener) = 0;
virtual CustomResultListener* getCustomListener() = 0;
};
}} // namespace anysdk { namespace framework {
#endif /* ----- #ifndef __CCX_PROTOCOL_Custom_H__ ----- */