Sha256: d1f3db13e337d11cc1e6f44a263edf60c78aa2c70e5b9106ee5bf58454470fa3
Contents?: true
Size: 1.45 KB
Versions: 1
Compression:
Stored size: 1.45 KB
Contents
#include "api_generator/js_helpers.h" #include "api_generator/Api.h" #include "logging/RhoLog.h" #undef DEFAULT_LOGCATEGORY #define DEFAULT_LOGCATEGORY "Intent" rho::String js_s_Intent_send(const rho::String& strObjID, rho::json::CJSONArray& argv, const rho::String& strCallbackID, const rho::String& strJsVmID, const rho::String& strCallbackParam); rho::String js_s_Intent_startListening(const rho::String& strObjID, rho::json::CJSONArray& argv, const rho::String& strCallbackID, const rho::String& strJsVmID, const rho::String& strCallbackParam); rho::String js_s_Intent_stopListening(const rho::String& strObjID, rho::json::CJSONArray& argv, const rho::String& strCallbackID, const rho::String& strJsVmID, const rho::String& strCallbackParam); namespace { using namespace rho::apiGenerator; class IntentDispatcher : public ApiHandler<Func_JS> { public: IntentDispatcher() : ApiHandler("Rho:Intent") {} virtual ~IntentDispatcher() {} virtual void initialize(); }; void IntentDispatcher::initialize() { ApiHandler<Func_JS>::initialize(); RAWTRACE("Initializing Rho:Intent API..."); defineStaticMethod("send", js_s_Intent_send); defineStaticMethod("startListening", js_s_Intent_startListening); defineStaticMethod("stopListening", js_s_Intent_stopListening); RAWTRACE("Rho:Intent API - done"); } } extern "C" void Init_JSAPI_Intent(void) { rho::apiGenerator::defineJSApiModule(new IntentDispatcher); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tauplatform-1.0.1 | lib/commonAPI/coreapi/ext/shared/generated/intent_js_api.cpp |