MoSync 3.3
Wormhole::MessageStreamJSON Class Reference

Class that parses JSON messages from the WebView. More...

#include <Wormhole/MessageStreamJSON.h>

List of all members.

Public Member Functions

 MessageStreamJSON (MAWidgetHandle webViewHandle, MAHandle dataHandle)
 MessageStreamJSON::MessageStreamJSON (NativeUI::WebView *webView, MAHandle dataHandle)
virtual ~MessageStreamJSON ()
MAWidgetHandle getWebViewHandle ()
NativeUI::WebViewgetWebView ()
void callJS (const MAUtil::String &script)
bool next ()
bool is (const char *paramName)
MAUtil::String getParam (const char *paramName)
int getParamInt (const char *paramName)
bool hasParam (const char *paramName)
MAUtil::YAJLDom::Value * getParamNode (const char *paramName)
MAUtil::YAJLDom::Value * getJSONRoot ()
void parse (MAHandle dataHandle)

Protected Attributes

MAWidgetHandle mWebViewHandle
MAUtil::YAJLDom::Value * mJSONRoot
int mCurrentMessageIndex

Detailed Description

Class that parses JSON messages from the WebView.

The messages are in the form of urls sent from a WebView as MAW_EVENT_WEB_VIEW_HOOK_INVOKED events.

Message data used with this class has the format:


TODO: Add copy constructor and assignment operator.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines