securitysettings/eapqtdialogs/inc/eapfastpacstorepwquerydialog.h
author hgs
Fri, 09 Jul 2010 10:14:51 +0300
changeset 36 c98682f98478
parent 34 ad1f037f1ac2
child 49 43351a4f2da3
permissions -rw-r--r--
201027
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
34
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
36
hgs
parents: 34
diff changeset
    14
* Description: EAP-FAST PAC Store Password Query Dialog
34
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
/*
36
hgs
parents: 34
diff changeset
    19
* %version: 4 %
34
hgs
parents:
diff changeset
    20
*/
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
#ifndef __EAPFASTPACSTOREPWQUERYDIALOG_H__
hgs
parents:
diff changeset
    23
#define __EAPFASTPACSTOREPWQUERYDIALOG_H__
hgs
parents:
diff changeset
    24
36
hgs
parents: 34
diff changeset
    25
// System includes
34
hgs
parents:
diff changeset
    26
#include <HbInputDialog>
hgs
parents:
diff changeset
    27
#include <hbdevicedialoginterface.h>
hgs
parents:
diff changeset
    28
36
hgs
parents: 34
diff changeset
    29
// User includes
hgs
parents: 34
diff changeset
    30
hgs
parents: 34
diff changeset
    31
// Forward declarations
34
hgs
parents:
diff changeset
    32
class HbTranslator;
hgs
parents:
diff changeset
    33
class EapQtValidator;
hgs
parents:
diff changeset
    34
36
hgs
parents: 34
diff changeset
    35
// External data types
hgs
parents: 34
diff changeset
    36
hgs
parents: 34
diff changeset
    37
// Constants
hgs
parents: 34
diff changeset
    38
hgs
parents: 34
diff changeset
    39
/*!
hgs
parents: 34
diff changeset
    40
   @addtogroup group_eap_fast_pac_store_pwd_query_dialog
hgs
parents: 34
diff changeset
    41
   @{
hgs
parents: 34
diff changeset
    42
 */
hgs
parents: 34
diff changeset
    43
hgs
parents: 34
diff changeset
    44
// Class declaration
hgs
parents: 34
diff changeset
    45
34
hgs
parents:
diff changeset
    46
class EapFastPacStorePwQueryDialog: public HbInputDialog, public HbDeviceDialogInterface
hgs
parents:
diff changeset
    47
    {
hgs
parents:
diff changeset
    48
    Q_OBJECT
hgs
parents:
diff changeset
    49
hgs
parents:
diff changeset
    50
    public:
hgs
parents:
diff changeset
    51
        /* Constructor */
hgs
parents:
diff changeset
    52
        EapFastPacStorePwQueryDialog(const QVariantMap &parameters);
hgs
parents:
diff changeset
    53
        /* Destructor */
hgs
parents:
diff changeset
    54
        ~EapFastPacStorePwQueryDialog();
hgs
parents:
diff changeset
    55
        
36
hgs
parents: 34
diff changeset
    56
        /* Function creates the actual dialog widget. */
hgs
parents: 34
diff changeset
    57
        void createDialog();
34
hgs
parents:
diff changeset
    58
        
hgs
parents:
diff changeset
    59
        /* Device dialog parameters to be set while dialog is displayed.
36
hgs
parents: 34
diff changeset
    60
         * Not supported. (from HbDeviceDialogInterface)
34
hgs
parents:
diff changeset
    61
         */
hgs
parents:
diff changeset
    62
        bool setDeviceDialogParameters(const QVariantMap &parameters);
hgs
parents:
diff changeset
    63
        
36
hgs
parents: 34
diff changeset
    64
        /* Not supported. (from HbDeviceDialogInterface) */
34
hgs
parents:
diff changeset
    65
        int deviceDialogError() const;
hgs
parents:
diff changeset
    66
        
36
hgs
parents: 34
diff changeset
    67
        /* Closes the device dialog. (from HbDeviceDialogInterface)*/
34
hgs
parents:
diff changeset
    68
        void closeDeviceDialog(bool byClient);
hgs
parents:
diff changeset
    69
        
36
hgs
parents: 34
diff changeset
    70
        /* Returns a pointer to this dialog widget.
hgs
parents: 34
diff changeset
    71
           (from HbDeviceDialogInterface) */
34
hgs
parents:
diff changeset
    72
        HbPopup *deviceDialogWidget() const;
hgs
parents:
diff changeset
    73
                
hgs
parents:
diff changeset
    74
    signals:
hgs
parents:
diff changeset
    75
        /* Signal is emitted when the dialog is closed */
hgs
parents:
diff changeset
    76
        void deviceDialogClosed();
hgs
parents:
diff changeset
    77
    
hgs
parents:
diff changeset
    78
        /* Data is emitted in QVariantMap when Ok Action button is selected */
hgs
parents:
diff changeset
    79
        void deviceDialogData(QVariantMap data);
hgs
parents:
diff changeset
    80
        
hgs
parents:
diff changeset
    81
    private slots:
hgs
parents:
diff changeset
    82
        /* Slot that is mapped to the Ok Action button's triggered signal */
hgs
parents:
diff changeset
    83
        void okPressed();
hgs
parents:
diff changeset
    84
                
hgs
parents:
diff changeset
    85
        /* Slot that is mapped to the Cancel Action button's triggered signal */
hgs
parents:
diff changeset
    86
        void cancelPressed();
hgs
parents:
diff changeset
    87
        
hgs
parents:
diff changeset
    88
        /* Slot that is mapped to the signal that indicates to closing of the dialog */
hgs
parents:
diff changeset
    89
        void closingDialog();
hgs
parents:
diff changeset
    90
               
hgs
parents:
diff changeset
    91
    private:
hgs
parents:
diff changeset
    92
        
hgs
parents:
diff changeset
    93
        bool validate() const;
hgs
parents:
diff changeset
    94
        
hgs
parents:
diff changeset
    95
        Q_DISABLE_COPY(EapFastPacStorePwQueryDialog)
hgs
parents:
diff changeset
    96
   
36
hgs
parents: 34
diff changeset
    97
    private: // data
hgs
parents: 34
diff changeset
    98
        // NOT OWNED
hgs
parents: 34
diff changeset
    99
        //! Pointer to the line edit object
34
hgs
parents:
diff changeset
   100
        HbLineEdit *mEdit;
hgs
parents:
diff changeset
   101
                
36
hgs
parents: 34
diff changeset
   102
        // OWNED        
hgs
parents: 34
diff changeset
   103
        //! Pointer to the password validator object
34
hgs
parents:
diff changeset
   104
        QScopedPointer<EapQtValidator> mPwdValidator;
hgs
parents:
diff changeset
   105
                
36
hgs
parents: 34
diff changeset
   106
        //! Pointer to the HbTranslator
34
hgs
parents:
diff changeset
   107
        QScopedPointer<HbTranslator> mTranslator;
hgs
parents:
diff changeset
   108
        
36
hgs
parents: 34
diff changeset
   109
        //! Pointer to the error message HbTranslator
34
hgs
parents:
diff changeset
   110
        QScopedPointer<HbTranslator> mErrMsgTranslator;
hgs
parents:
diff changeset
   111
        
36
hgs
parents: 34
diff changeset
   112
        //! Tells whether close has already been called for the dialog
34
hgs
parents:
diff changeset
   113
        bool mClose;
hgs
parents:
diff changeset
   114
        
hgs
parents:
diff changeset
   115
    };
hgs
parents:
diff changeset
   116
36
hgs
parents: 34
diff changeset
   117
/*! @} */
34
hgs
parents:
diff changeset
   118
hgs
parents:
diff changeset
   119
#endif // __EAPFASTPACSTOREPWQUERYDIALOG_H__
hgs
parents:
diff changeset
   120