javacommons/security/javaunicertstoreplugin/src.s60/confirmquery.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 14 Sep 2010 21:06:50 +0300
branchRCL_3
changeset 27 d5e927d5853b
parent 25 ae942d28ec0e
permissions -rw-r--r--
Revision: v2.2.11 Kit: 201035

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/
#ifndef CONFIRMQUERY_H
#define CONFIRMQUERY_H

#include <QEventLoop>

namespace java
{
namespace security
{

class ConfirmQuery: public QObject
{
    Q_OBJECT

public:
    ConfirmQuery();
    bool accept(const QString& aQuery);
    virtual ~ConfirmQuery();

private slots:
    void queryDismissed(int dismissAction);

private:
    // own event loop used for "translating" asynchronous calls into
    // synchronous calls
    QEventLoop* mAsyncToSyncCallEventLoop;
    // boolean for carying the user's input in between two async calls
    bool mQueryAccepted;
};

} // end namespace security
} // end namespace java

#endif //CONFIRMQUERY_H