javauis/runtimeui_qt/src.s60/runtimeuiqt.h
changeset 21 2a9601315dfc
child 78 71ad690e91f5
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*
       
     2 * Copyright (c) 2007 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 
       
    19 #ifndef RUNTIME_UI_QT_H
       
    20 #define RUNTIME_UI_QT_H
       
    21 
       
    22 #include "javaosheaders.h"
       
    23 #include <vector>
       
    24 
       
    25 namespace java
       
    26 {
       
    27 namespace runtimeui
       
    28 {
       
    29 class RuntimeUiQt
       
    30 {
       
    31 public:
       
    32     /**
       
    33      * Show error dialog to user. This is blocking call and execution does not proceed until
       
    34      * has pressed OK button.
       
    35      *
       
    36      * @param aAppName Application name error occurred.
       
    37      * @param aShortMesg Short error description.
       
    38      * @param aDetailedMsg Detailed error description.
       
    39      */
       
    40     OS_IMPORT static void errorL(const TDesC& aAppName, const TDesC& aShortMsg, const TDesC& aDetailedMsg);
       
    41 
       
    42     /**
       
    43      * Request permission to user. This is blocking call and execution does not proceed until
       
    44      * has accepted or denied the permission.
       
    45      *
       
    46      * @param aAppName Application name requesting confirmation.
       
    47      * @param aQuestion Security question.
       
    48      * @return 1 if user accepts the request, 0 otherwise.
       
    49      */
       
    50     OS_IMPORT static int confirmL(const TDesC& aAppName, const TDesC& aQuestion);
       
    51 };
       
    52 
       
    53 } //end namespace runtimeui
       
    54 } //end namespace java
       
    55 
       
    56 #endif //RUNTIME_UI_QT_H