javauis/coreui/tsrc/testcoreui/src/coreuitestimpl.h
branchRCL_3
changeset 83 26b2b12093af
parent 77 7cee158cb8cd
child 84 0553e2305d00
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef COREUITESTIMPL_H
       
    19 #define COREUITESTIMPL_H
       
    20 
       
    21 
       
    22 #include "javacoreui.h"
       
    23 
       
    24 #ifdef __SYMBIAN32__
       
    25 
       
    26 #include "javasymbianoslayer.h"
       
    27 /**
       
    28  * For accessing the static methods using dynamic dll loading.
       
    29  * @param funcName The name of the method to be searched.
       
    30  * @return a pointer to found function, 0 if not found.
       
    31  */
       
    32 IMPORT_C FuncPtr findDllMethod(const char* funcName);
       
    33 
       
    34 #endif //__SYMBIAN32__
       
    35 
       
    36 namespace java // codescanner::namespace
       
    37 {
       
    38 namespace ui // codescanner::namespace
       
    39 {
       
    40 
       
    41 OS_NONSHARABLE_CLASS(CoreUiTestHandler)
       
    42 {
       
    43 public:
       
    44     virtual void startCalled(const java::util::Uid& midletUid,
       
    45                              CoreUiParams* uiParams) = 0;
       
    46     virtual void releaseCalled() = 0;
       
    47     virtual void error(const std::string& info) = 0;
       
    48 };
       
    49 
       
    50 OS_NONSHARABLE_CLASS(CoreUiTestImpl) : public CoreUi
       
    51 {
       
    52 public:
       
    53     /**
       
    54      * CoreUiTestImpl default constructor.
       
    55      */
       
    56     CoreUiTestImpl();
       
    57 
       
    58     /**
       
    59      * CoreUiTestImpl destructor.
       
    60      */
       
    61     virtual ~CoreUiTestImpl();
       
    62 
       
    63     OS_IMPORT static void setTestHandler(CoreUiTestHandler* testHadler);
       
    64 
       
    65 public: // From CoreUi
       
    66     /**
       
    67     * This method will ask the UI to start the splash screen.
       
    68     * @param appUid The Uid of the application.
       
    69     * @param uiParams Ui configuration parameters. If it
       
    70     *        is null, the default arguments will be used.
       
    71     * @throws java::util::ExceptionBase or std::exception in error cases.
       
    72     */
       
    73     virtual void start(const java::util::Uid& midletUid,
       
    74     CoreUiParams* uiParams);
       
    75 
       
    76 public:
       
    77     CoreUiTestHandler* mTestHandler;
       
    78 };
       
    79 
       
    80 
       
    81 } // end namespace ui
       
    82 } // end namespace java
       
    83 
       
    84 
       
    85 #endif // COREUITESTIMPL_H