diff -r 7a0216d033ac -r fe6b6762fccd securitysettings/eapqtdialogs/inc/eappasswordquerydialog.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/securitysettings/eapqtdialogs/inc/eappasswordquerydialog.h Tue Jul 06 14:18:35 2010 +0300 @@ -0,0 +1,102 @@ +/* +* 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: EAP Password Query Dialog +* +*/ + +/* +* %version: 3 % +*/ + +#ifndef __EAPPASSWORDQUERYDIALOG_H__ +#define __EAPPASSWORDQUERYDIALOG_H__ + + +#include +#include + +class HbTranslator; +class HbLineEdit; +class EapQtValidator; + +class EapPasswordQueryDialog: public HbInputDialog, public HbDeviceDialogInterface + { + Q_OBJECT + + public: + /* Constructor */ + EapPasswordQueryDialog(const QVariantMap ¶meters); + /* Destructor */ + ~EapPasswordQueryDialog(); + + /* Function creates the actual dialog widget */ + void createDialog( const QVariantMap ¶meters ); + + /* Device dialog parameters to be set while dialog is displayed. + * Not supported. + */ + bool setDeviceDialogParameters(const QVariantMap ¶meters); + + /* Not supported */ + int deviceDialogError() const; + + /* Closes the device dialog */ + void closeDeviceDialog(bool byClient); + + /* Returns a pointer to this dialog widget */ + HbPopup *deviceDialogWidget() const; + + signals: + /* Signal is emitted when the dialog is closed */ + void deviceDialogClosed(); + + /* Data is emitted in QVariantMap when Ok Action button is selected */ + void deviceDialogData(QVariantMap data); + + private slots: + /* Slot that is mapped to the Ok Action button's triggered signal */ + void okPressed(); + + /* Slot that is mapped to the Cancel Action button's triggered signal */ + void cancelPressed(); + + /* Slot that is mapped to the signal that indicates to closing of the dialog */ + void closingDialog(); + + private: + + bool validate() const; + + Q_DISABLE_COPY(EapPasswordQueryDialog) + + private: + /* Pointer to the line edit 1 object */ + HbLineEdit *mEdit; + + /* Pointer to the password validator object */ + QScopedPointer mPwdValidator; + + /* Pointer to the main HbTranslator */ + QScopedPointer mTranslator; + + /* Tells whether close has already been called for the dialog */ + bool mClose; + + /* Tells whether Ok Action has already been pressed */ + bool mOkActionPressed; + }; + + +#endif // __EAPPASSWORDQUERYDIALOG_H__ +