javacommons/security/javaunicertstoreplugin/src.s60/confirmquery.h
branchRCL_3
changeset 27 d5e927d5853b
parent 25 ae942d28ec0e
equal deleted inserted replaced
26:2455ef1f5bbc 27:d5e927d5853b
       
     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 #ifndef CONFIRMQUERY_H
       
    18 #define CONFIRMQUERY_H
       
    19 
       
    20 #include <QEventLoop>
       
    21 
       
    22 namespace java
       
    23 {
       
    24 namespace security
       
    25 {
       
    26 
       
    27 class ConfirmQuery: public QObject
       
    28 {
       
    29     Q_OBJECT
       
    30 
       
    31 public:
       
    32     ConfirmQuery();
       
    33     bool accept(const QString& aQuery);
       
    34     virtual ~ConfirmQuery();
       
    35 
       
    36 private slots:
       
    37     void queryDismissed(int dismissAction);
       
    38 
       
    39 private:
       
    40     // own event loop used for "translating" asynchronous calls into
       
    41     // synchronous calls
       
    42     QEventLoop* mAsyncToSyncCallEventLoop;
       
    43     // boolean for carying the user's input in between two async calls
       
    44     bool mQueryAccepted;
       
    45 };
       
    46 
       
    47 } // end namespace security
       
    48 } // end namespace java
       
    49 
       
    50 #endif //CONFIRMQUERY_H