|
navit
0.5.3-trunk
|
#include "browserplugin.h"#include <navit/navit.h>#include <navit/item.h>#include <navit/config_.h>#include <navit/callback.h>#include <stdlib.h>#include <string.h>#include <stdio.h>Data Structures | |
| struct | InstanceData |
| struct | NavitObject |
Macros | |
| #define | PLUGIN_NAME "Navit Sample Plug-in" |
| #define | PLUGIN_DESCRIPTION PLUGIN_NAME " (Mozilla SDK)" |
| #define | PLUGIN_VERSION "1.0.0.0" |
Typedefs | |
| typedef struct InstanceData | InstanceData |
Functions | |
| static void | fillPluginFunctionTable (NPPluginFuncs *pFuncs) |
| NP_Initialize (NPNetscapeFuncs *bFuncs, NPPluginFuncs *pFuncs) | |
| NP_GetPluginVersion () | |
| NP_GetMIMEDescription () | |
| NP_GetValue (void *future, NPPVariable aVariable, void *aValue) | |
| NP_Shutdown () | |
| NPError | NPP_New (NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char *argn[], char *argv[], NPSavedData *saved) |
| NPError | NPP_Destroy (NPP instance, NPSavedData **save) |
| NPError | NPP_SetWindow (NPP instance, NPWindow *window) |
| NPError | NPP_NewStream (NPP instance, NPMIMEType type, NPStream *stream, NPBool seekable, uint16_t *stype) |
| NPError | NPP_DestroyStream (NPP instance, NPStream *stream, NPReason reason) |
| int32_t | NPP_WriteReady (NPP instance, NPStream *stream) |
| int32_t | NPP_Write (NPP instance, NPStream *stream, int32_t offset, int32_t len, void *buffer) |
| void | NPP_StreamAsFile (NPP instance, NPStream *stream, const char *fname) |
| void | NPP_Print (NPP instance, NPPrint *platformPrint) |
| int16_t | NPP_HandleEvent (NPP instance, void *event) |
| void | NPP_URLNotify (NPP instance, const char *URL, NPReason reason, void *notifyData) |
| void | printIdentifier (NPIdentifier name) |
| NPObject * | allocate (NPP npp, NPClass *aClass) |
| void | invalidate (NPObject *npobj) |
| bool | hasMethod (NPObject *npobj, NPIdentifier name) |
| enum attr_type | variant_to_attr_type (const NPVariant *variant) |
| bool | invoke (NPObject *npobj, NPIdentifier name, const NPVariant *args, uint32_t argCount, NPVariant *result) |
| bool | invokeDefault (NPObject *npobj, const NPVariant *args, uint32_t argCount, NPVariant *result) |
| bool | hasProperty (NPObject *npobj, NPIdentifier name) |
| bool | getProperty (NPObject *npobj, NPIdentifier name, NPVariant *result) |
| bool | setProperty (NPObject *npobj, NPIdentifier name, const NPVariant *value) |
| bool | removeProperty (NPObject *npobj, NPIdentifier name) |
| NPError | NPP_GetValue (NPP instance, NPPVariable variable, void *value) |
| NPError | NPP_SetValue (NPP instance, NPNVariable variable, void *value) |
Variables | |
| static NPNetscapeFuncs * | sBrowserFuncs = NULL |
| struct NPClass navitclass | navitclass2 |
| struct NPClass | navitclass |
| #define PLUGIN_DESCRIPTION PLUGIN_NAME " (Mozilla SDK)" |
| #define PLUGIN_NAME "Navit Sample Plug-in" |
| #define PLUGIN_VERSION "1.0.0.0" |
| typedef struct InstanceData InstanceData |
| NPObject* allocate | ( | NPP | npp, |
| NPClass * | aClass | ||
| ) |
References NavitObject::class, and NavitObject::instanceData.
|
static |
References NPP_Destroy(), NPP_DestroyStream(), NPP_GetValue(), NPP_HandleEvent(), NPP_New(), NPP_NewStream(), NPP_Print(), NPP_SetValue(), NPP_SetWindow(), NPP_StreamAsFile(), NPP_URLNotify(), NPP_Write(), and NPP_WriteReady().
Referenced by NP_Initialize().
| bool getProperty | ( | NPObject * | npobj, |
| NPIdentifier | name, | ||
| NPVariant * | result | ||
| ) |
| bool hasMethod | ( | NPObject * | npobj, |
| NPIdentifier | name | ||
| ) |
References name, printIdentifier(), and sBrowserFuncs.
| bool hasProperty | ( | NPObject * | npobj, |
| NPIdentifier | name | ||
| ) |
References NavitObject::is_attr, name, printIdentifier(), and sBrowserFuncs.
| void invalidate | ( | NPObject * | npobj | ) |
| bool invoke | ( | NPObject * | npobj, |
| NPIdentifier | name, | ||
| const NPVariant * | args, | ||
| uint32_t | argCount, | ||
| NPVariant * | result | ||
| ) |
References NavitObject::attr, attr_to_name(), attr::callback_list, callback_list_call_attr_4, config_get_attr(), err(), NavitObject::instanceData, NavitObject::is_attr, name, attr::navit, navit_get_attr(), navitclass, InstanceData::npp, printIdentifier(), sBrowserFuncs, attr::type, attr::u, value, and variant_to_attr_type().
| bool invokeDefault | ( | NPObject * | npobj, |
| const NPVariant * | args, | ||
| uint32_t | argCount, | ||
| NPVariant * | result | ||
| ) |
| NP_GetMIMEDescription | ( | ) |
| NP_GetPluginVersion | ( | ) |
References PLUGIN_VERSION.
| NP_GetValue | ( | void * | future, |
| NPPVariable | aVariable, | ||
| void * | aValue | ||
| ) |
References PLUGIN_DESCRIPTION, and PLUGIN_NAME.
| NP_Initialize | ( | NPNetscapeFuncs * | bFuncs, |
| NPPluginFuncs * | pFuncs | ||
| ) |
References err(), fillPluginFunctionTable(), and sBrowserFuncs.
| NP_Shutdown | ( | ) |
| NPError NPP_Destroy | ( | NPP | instance, |
| NPSavedData ** | save | ||
| ) |
Referenced by fillPluginFunctionTable().
| NPError NPP_DestroyStream | ( | NPP | instance, |
| NPStream * | stream, | ||
| NPReason | reason | ||
| ) |
Referenced by fillPluginFunctionTable().
| NPError NPP_GetValue | ( | NPP | instance, |
| NPPVariable | variable, | ||
| void * | value | ||
| ) |
References navitclass, sBrowserFuncs, and value.
Referenced by fillPluginFunctionTable().
| int16_t NPP_HandleEvent | ( | NPP | instance, |
| void * | event | ||
| ) |
References expose(), and InstanceData::window.
Referenced by fillPluginFunctionTable().
| NPError NPP_New | ( | NPMIMEType | pluginType, |
| NPP | instance, | ||
| uint16_t | mode, | ||
| int16_t | argc, | ||
| char * | argn[], | ||
| char * | argv[], | ||
| NPSavedData * | saved | ||
| ) |
References main_real(), InstanceData::npp, and sBrowserFuncs.
Referenced by fillPluginFunctionTable().
| NPError NPP_NewStream | ( | NPP | instance, |
| NPMIMEType | type, | ||
| NPStream * | stream, | ||
| NPBool | seekable, | ||
| uint16_t * | stype | ||
| ) |
Referenced by fillPluginFunctionTable().
| void NPP_Print | ( | NPP | instance, |
| NPPrint * | platformPrint | ||
| ) |
Referenced by fillPluginFunctionTable().
| NPError NPP_SetValue | ( | NPP | instance, |
| NPNVariable | variable, | ||
| void * | value | ||
| ) |
Referenced by fillPluginFunctionTable().
| NPError NPP_SetWindow | ( | NPP | instance, |
| NPWindow * | window | ||
| ) |
References config_get_attr(), graphics_set_attr(), navit_get_attr(), attr::num, attr::type, attr::u, and InstanceData::window.
Referenced by fillPluginFunctionTable().
| void NPP_StreamAsFile | ( | NPP | instance, |
| NPStream * | stream, | ||
| const char * | fname | ||
| ) |
Referenced by fillPluginFunctionTable().
| void NPP_URLNotify | ( | NPP | instance, |
| const char * | URL, | ||
| NPReason | reason, | ||
| void * | notifyData | ||
| ) |
Referenced by fillPluginFunctionTable().
| int32_t NPP_Write | ( | NPP | instance, |
| NPStream * | stream, | ||
| int32_t | offset, | ||
| int32_t | len, | ||
| void * | buffer | ||
| ) |
Referenced by fillPluginFunctionTable().
| int32_t NPP_WriteReady | ( | NPP | instance, |
| NPStream * | stream | ||
| ) |
Referenced by fillPluginFunctionTable().
| void printIdentifier | ( | NPIdentifier | name | ) |
References name, sBrowserFuncs, and attr::str.
Referenced by hasMethod(), hasProperty(), and invoke().
| bool removeProperty | ( | NPObject * | npobj, |
| NPIdentifier | name | ||
| ) |
| bool setProperty | ( | NPObject * | npobj, |
| NPIdentifier | name, | ||
| const NPVariant * | value | ||
| ) |
| struct NPClass navitclass |
Referenced by getProperty(), invoke(), and NPP_GetValue().
| struct NPClass navitclass2 |
Referenced by getProperty().
|
static |
Referenced by getProperty(), hasMethod(), hasProperty(), invoke(), NP_Initialize(), NPP_GetValue(), NPP_New(), and printIdentifier().