S60 3rd Edition SDK for Symbian OS
Example Applications Guide

bitmapecommain.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : bitmapecommain.cpp
00004 *  Part of     : Plugin test
00005 *  Interface   : Browser Plug-in API
00006 *  Description : test netscape plugins implementation
00007 *  Version     : 3.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 // INCLUDE FILES
00017 #include <e32std.h>
00018 #include <e32base.h>
00019 #include "bitmapecommain.h"
00020 #include "bitmapinst.h"
00021 
00022 // EXTERNAL DATA STRUCTURES
00023 
00024 // EXTERNAL FUNCTION PROTOTYPES
00025 
00026 // CONSTANTS
00027 
00028 // MACROS
00029 
00030 // LOCAL CONSTANTS AND MACROS
00031 
00032 // MODULE DATA STRUCTURES
00033 
00034 // LOCAL FUNCTION PROTOTYPES
00035 
00036 // FORWARD DECLARATIONS
00037 
00038 // ============================= LOCAL FUNCTIONS ===============================
00039 
00040 CBitmapEcomMain* CBitmapEcomMain::NewL( TAny* aInitParam )
00041 {
00042     TFuncs* funcs = REINTERPRET_CAST( TFuncs*, aInitParam );
00043     CBitmapEcomMain* self = new ( ELeave ) CBitmapEcomMain( funcs->iNetscapeFuncs );
00044     CleanupStack::PushL( self );
00045     self->ConstructL( funcs->iPluginFuncs );
00046     CleanupStack::Pop();
00047 
00048         Dll :: SetTls ( ( void* ) self );
00049     return self;
00050 }
00051 
00052 void CBitmapEcomMain::ConstructL( NPPluginFuncs* aPluginFuncs )
00053 {
00054     InitializeFuncs( aPluginFuncs );
00055 }
00056 
00057 CBitmapEcomMain::CBitmapEcomMain(NPNetscapeFuncs* aNpf):
00058                  CEcomBrowserPluginInterface(),iNPNfunctions(aNpf)
00059 {
00060 
00061 }
00062 
00063 CBitmapEcomMain::~CBitmapEcomMain()
00064 {
00065 }
00066 // ========================== OTHER EXPORTED FUNCTIONS =========================
00067 

© Nokia 2006

Back to top