FB::JSAPISimple Class Reference
Simple JSAPI implementation for those who for whatever reason don't want to use JSAPIAuto. More...
#include <JSAPISimple.h>
Inheritance diagram for FB::JSAPISimple:

Collaboration diagram for FB::JSAPISimple:

Public Member Functions | |
| void | getMemberNames (std::vector< std::string > &nameVector) const |
| Called by the browser to enumerate the members of this JSAPI object. | |
| size_t | getMemberCount () const |
| Gets the member count. | |
| virtual void | registerMethod (const std::string &name, CallMethodPtr func) |
| Register a method to be exposed to javascript. | |
| virtual void | registerProperty (const std::string &name, GetPropPtr getFunc, SetPropPtr setFunc) |
| Register a property to be exposed to javascript. | |
| virtual bool | HasMethod (const std::string &methodName) const |
| Query if the JSAPI object has the 'methodName' method. | |
| virtual bool | HasProperty (const std::string &propertyName) const |
| Query if 'propertyName' is a valid property. | |
| virtual bool | HasProperty (int idx) const |
| Query if the property at "idx" exists. | |
| virtual variant | GetProperty (const std::string &propertyName) |
| Gets a property value. | |
| virtual void | SetProperty (const std::string &propertyName, const variant &value) |
| Sets the value of a property. | |
| virtual void | RemoveProperty (const std::string &propertyName) |
| Removes a property. | |
| virtual variant | GetProperty (int idx) |
| Gets the value of an indexed property. | |
| virtual void | SetProperty (int idx, const variant &value) |
| Sets the value of an indexed property. | |
| virtual void | RemoveProperty (int idx) |
| Removes an indexed property. | |
| virtual variant | Invoke (const std::string &methodName, const std::vector< variant > &args) |
| Called by the browser to invoke a method on the JSAPI object. | |
| virtual variant | Construct (const std::vector< variant > &args) |
| Called by the browser to construct the JSAPI object. | |
| virtual variant | callFireEvent (const std::vector< variant > &args) |
| Example function for testing fireEvent. | |
| virtual variant | callToString (const std::vector< variant > &args) |
| Called when a string representation of the object requested. Always returns "JSAPI Javascript Object";. | |
| virtual variant | getValid () |
| Returns true to indicate that the JSAPI interface is working. | |
Detailed Description
Simple JSAPI implementation for those who for whatever reason don't want to use JSAPIAuto.
- Deprecated:
- 1.1.0
- See also:
- FB::JSAPIAuto
Definition at line 31 of file JSAPISimple.h.
The documentation for this class was generated from the following files:
Generated on 25 May 2013 for FireBreath by
1.6.1
Labels
Page: class FB JSAPISimple Members
Page: class FB JSAPISimple getMemberNames
Page: class FB JSAPISimple registerProperty
Page: class FB JSAPISimple callFireEvent
Page: class FB JSAPISimple HasMethod
Page: class FB JSAPISimple RemoveProperty
Page: class FB JSAPISimple HasProperty (2)
Page: class FB JSAPISimple getValid
Page: class FB JSAPISimple SetProperty (2)
Page: class FB JSAPISimple Invoke
Page: class FB JSAPISimple SetProperty
Page: class FB JSAPISimple GetProperty (2)
Page: class FB JSAPISimple Construct
Page: class FB JSAPISimple callToString
Page: class FB JSAPISimple RemoveProperty (2)
Page: class FB JSAPISimple registerMethod
Page: class FB JSAPISimple HasProperty
Page: class FB JSAPISimple getMemberCount
Page: class FB JSAPISimple GetProperty
