S60 3rd Edition SDK for Symbian OS
Example Applications Guide

Bitmapplugin.h

00001 /**
00002 * ==============================================================================
00003 *  Name        : Bitmapplugin.h
00004 *  Part of     : Plugin test
00005 *  Interface   : Browser Plug-in API
00006 *  Description : Example for developing a plugin
00007 *  Version     : 1.0
00008 *
00009 *  Copyright (c) 2005-2006 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 #ifndef BITMAPPLUGIN_H
00017 #define BITMAPPLUGIN_H
00018 
00019 //  INCLUDES
00020 
00021 #include <npupp.h>
00022 #include <PluginAdapterInterface.h>
00023 
00024 /**
00025 * The initialization function of the plug-in exchanges function pointers 
00026 * between the browser and the plug-in, allowing calls to and from the plug-in. 
00027 * This function also initializes plug-in library global data. 
00028 * All unimplemented functions should be set to NULL in the function table.
00029 * For example, in the S60 and Series 90 platforms,JRI support is not 
00030 * available. Therefore, aPpf->javaClass should be set to NULL.
00031 * @since 3.0
00032 * @param aPpf - allocated but uninitialized structure containing function 
00033 *               pointers to implemented plug-in functions.
00034 * @return     - an error code, on success returns NPERR_NO_ERROR.
00035 */
00036 IMPORT_C NPError InitializeFuncs(NPPluginFuncs* aPpf);
00037 
00038 /**
00039 * This function has no input parameters and no return value. It is called to 
00040 * allow the plug-in to clean up its data before the plug-in library is unloaded.
00041 * @since 3.0
00042 */
00043 IMPORT_C void NPP_Shutdown ( void );
00044 
00045 IMPORT_C const TDesC* NPP_GetMIMEDescription ( void );
00046 
00047 IMPORT_C NPError NPP_GetValue(
00048                     void* instance, 
00049                     NPPVariable variable, 
00050                     void* value );
00051 #endif // BITMAPPLUGIN_H
00052 
00053 // End of File
00054 

© Nokia 2006

Back to top