javauis/nokiauiapi_qt/softnoteplugin/src.s60/lookup.cpp
changeset 78 71ad690e91f5
equal deleted inserted replaced
72:1f0034e370aa 78:71ad690e91f5
       
     1 /*******************************************************************************
       
     2  * Copyright (c) 2009, 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved. This program and the accompanying materials
       
     4  * are made available under the terms of the Eclipse Public License v1.0
       
     5  * which accompanies this distribution, and is available at
       
     6  * http://www.eclipse.org/legal/epl-v10.html
       
     7  *
       
     8  * Contributors:
       
     9  *     Nokia Corporation - initial implementation
       
    10  *******************************************************************************/
       
    11 
       
    12 #include <string> //For strcmp
       
    13 #include <javasymbianoslayer.h>
       
    14 #include <logger.h>
       
    15 
       
    16 #include "javasoftnotehandler.h"
       
    17 
       
    18 using namespace java::captain;
       
    19 
       
    20 ExtensionPluginInterface* getExtensionPlugin();
       
    21 
       
    22 EXPORT_C FuncPtr findDllMethod(const char* funcName)
       
    23     {
       
    24     JELOG2(EJavaCaptain);
       
    25     FuncPtr ptr = 0;
       
    26     if (funcName)
       
    27         {
       
    28         if (strcmp(funcName, "getExtensionPlugin") == 0)
       
    29             {
       
    30             ptr = (FuncPtr) getExtensionPlugin;
       
    31             }
       
    32         }
       
    33     else
       
    34         {
       
    35         ELOG(EJavaCaptain, "javasoftnoteplugin findDllMethod() funcName == null");
       
    36         }
       
    37     return ptr;
       
    38     }