javauis/coreui_qt/src/coreuiqtimpl.h
changeset 79 2f468c1958d0
equal deleted inserted replaced
76:4ad59aaee882 79:2f468c1958d0
       
     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: A CoreUi avkon implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef COREUIQTIMPL_H
       
    19 #define COREUIQTIMPL_H
       
    20 
       
    21 
       
    22 #include "javacoreui.h"
       
    23 #include "javasymbianoslayer.h"
       
    24 
       
    25 #ifdef __SYMBIAN32__
       
    26 
       
    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 /**
       
    37  * For getting a sinqleton instance of the CoreUi.
       
    38  */
       
    39 java::ui::CoreUi& getUiInstance();
       
    40 
       
    41 /**
       
    42  * Releases the UI. This means that the UI will be closed (if not done yet)
       
    43  * and freese all the resources.
       
    44  */
       
    45 void releaseUi();
       
    46 
       
    47 namespace java // codescanner::namespace
       
    48 {
       
    49 namespace ui // codescanner::namespace
       
    50 {
       
    51 
       
    52 /**
       
    53  * The implementation of the CoreUiAvkon. This class provides CoreUi services
       
    54  * to CoreUi users.
       
    55  */
       
    56 NONSHARABLE_CLASS(CoreUiQtImpl) : public CoreUi
       
    57 {
       
    58 public:
       
    59     /**
       
    60      * CoreUiQtImpl default constructor.
       
    61      */
       
    62     CoreUiQtImpl();
       
    63 
       
    64     /**
       
    65      * CoreUiQtImpl destructor.
       
    66      */
       
    67     virtual ~CoreUiQtImpl();
       
    68 
       
    69 public: // From CoreUi
       
    70     /**
       
    71     * This method will ask the UI to start the splash screen.
       
    72     * @param appUid The Uid of the application.
       
    73     * @param uiParams Ui configuration parameters. If it
       
    74     *        is null, the default arguments will be used.
       
    75     * @throws java::util::ExceptionBase or std::exception in error cases.
       
    76     */
       
    77     virtual void start(const java::util::Uid& midletUid,
       
    78                        CoreUiParams* uiParams);
       
    79 };
       
    80 
       
    81 
       
    82 } // end namespace ui
       
    83 } // end namespace java
       
    84 
       
    85 
       
    86 #endif // COREUIQTIMPL_H