securitysettings/eapqtdialogs/inc/eapfastcreatemasterkeyquerydialog.h
author hgs
Thu, 16 Sep 2010 13:07:04 +0300
changeset 49 43351a4f2da3
parent 36 c98682f98478
permissions -rw-r--r--
201037
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 Create Master Key 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 __EAPFASTCREATEMASTERKEYQUERYDIALOG_H__
hgs
parents:
diff changeset
    23
#define __EAPFASTCREATEMASTERKEYQUERYDIALOG_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 HbLineEdit;
hgs
parents:
diff changeset
    33
class HbTranslator;
hgs
parents:
diff changeset
    34
class EapQtValidator;
hgs
parents:
diff changeset
    35
36
hgs
parents: 34
diff changeset
    36
// External data types
hgs
parents: 34
diff changeset
    37
hgs
parents: 34
diff changeset
    38
// Constants
hgs
parents: 34
diff changeset
    39
hgs
parents: 34
diff changeset
    40
/*!
hgs
parents: 34
diff changeset
    41
   @addtogroup group_eap_fast_create_master_key_query_dialog
hgs
parents: 34
diff changeset
    42
   @{
hgs
parents: 34
diff changeset
    43
 */
hgs
parents: 34
diff changeset
    44
hgs
parents: 34
diff changeset
    45
// Class declaration
hgs
parents: 34
diff changeset
    46
34
hgs
parents:
diff changeset
    47
class EapFastCreateMasterKeyQueryDialog: public HbInputDialog, public HbDeviceDialogInterface
hgs
parents:
diff changeset
    48
    {
hgs
parents:
diff changeset
    49
    Q_OBJECT
hgs
parents:
diff changeset
    50
hgs
parents:
diff changeset
    51
    public:
hgs
parents:
diff changeset
    52
        /* Constructor */
hgs
parents:
diff changeset
    53
        EapFastCreateMasterKeyQueryDialog(const QVariantMap &parameters);
hgs
parents:
diff changeset
    54
        /* Destructor */
hgs
parents:
diff changeset
    55
        ~EapFastCreateMasterKeyQueryDialog();
hgs
parents:
diff changeset
    56
        
hgs
parents:
diff changeset
    57
        /* Function creates the actual dialog widget */
hgs
parents:
diff changeset
    58
        void createDialog( const QVariantMap &parameters );
hgs
parents:
diff changeset
    59
        
hgs
parents:
diff changeset
    60
        /* Device dialog parameters to be set while dialog is displayed.
36
hgs
parents: 34
diff changeset
    61
         * Not supported. (from HbDeviceDialogInterface)
34
hgs
parents:
diff changeset
    62
         */
hgs
parents:
diff changeset
    63
        bool setDeviceDialogParameters(const QVariantMap &parameters);
hgs
parents:
diff changeset
    64
        
36
hgs
parents: 34
diff changeset
    65
        /* Not supported. (from HbDeviceDialogInterface) */
34
hgs
parents:
diff changeset
    66
        int deviceDialogError() const;
hgs
parents:
diff changeset
    67
        
36
hgs
parents: 34
diff changeset
    68
        /* Closes the device dialog. (from HbDeviceDialogInterface) */
34
hgs
parents:
diff changeset
    69
        void closeDeviceDialog(bool byClient);
hgs
parents:
diff changeset
    70
        
36
hgs
parents: 34
diff changeset
    71
        /* Returns a pointer to this dialog widget.
hgs
parents: 34
diff changeset
    72
           (from HbDeviceDialogInterface) */
34
hgs
parents:
diff changeset
    73
        HbPopup *deviceDialogWidget() const;
hgs
parents:
diff changeset
    74
                
hgs
parents:
diff changeset
    75
    signals:
hgs
parents:
diff changeset
    76
        /* Signal is emitted when the dialog is closed */
hgs
parents:
diff changeset
    77
        void deviceDialogClosed();
hgs
parents:
diff changeset
    78
    
hgs
parents:
diff changeset
    79
        /* Data is emitted in QVariantMap when Ok Action button is selected */
hgs
parents:
diff changeset
    80
        void deviceDialogData(QVariantMap data);
hgs
parents:
diff changeset
    81
        
hgs
parents:
diff changeset
    82
    private slots:
hgs
parents:
diff changeset
    83
        /* Slot that is mapped to the Ok Action button's triggered signal */
hgs
parents:
diff changeset
    84
        void okPressed();
hgs
parents:
diff changeset
    85
                
hgs
parents:
diff changeset
    86
        /* Slot that is mapped to the Cancel Action button's triggered signal */
hgs
parents:
diff changeset
    87
        void cancelPressed();
hgs
parents:
diff changeset
    88
        
hgs
parents:
diff changeset
    89
        /* Slot that is mapped to the signal that indicates to closing of the dialog */
hgs
parents:
diff changeset
    90
        void closingDialog();
hgs
parents:
diff changeset
    91
               
hgs
parents:
diff changeset
    92
    private:
hgs
parents:
diff changeset
    93
        
hgs
parents:
diff changeset
    94
        bool validate() const;
hgs
parents:
diff changeset
    95
        
hgs
parents:
diff changeset
    96
        Q_DISABLE_COPY(EapFastCreateMasterKeyQueryDialog)
hgs
parents:
diff changeset
    97
   
36
hgs
parents: 34
diff changeset
    98
    private: // data
hgs
parents: 34
diff changeset
    99
        // NOT OWNED
hgs
parents: 34
diff changeset
   100
        //! Pointer to the line edit 1 object 
34
hgs
parents:
diff changeset
   101
        HbLineEdit *mEdit1;
hgs
parents:
diff changeset
   102
        
36
hgs
parents: 34
diff changeset
   103
        //! Pointer to the line edit 2 object
34
hgs
parents:
diff changeset
   104
        HbLineEdit *mEdit2;
36
hgs
parents: 34
diff changeset
   105
        
hgs
parents: 34
diff changeset
   106
        // OWNED                
hgs
parents: 34
diff changeset
   107
        //! Pointer to the password validator object
34
hgs
parents:
diff changeset
   108
        QScopedPointer<EapQtValidator> mPwdValidator;
hgs
parents:
diff changeset
   109
                
36
hgs
parents: 34
diff changeset
   110
        //! Pointer to the HbTranslator
34
hgs
parents:
diff changeset
   111
        QScopedPointer<HbTranslator> mTranslator;
hgs
parents:
diff changeset
   112
        
36
hgs
parents: 34
diff changeset
   113
        //! Pointer to the error message HbTranslator
34
hgs
parents:
diff changeset
   114
        QScopedPointer<HbTranslator> mErrMsgTranslator;
hgs
parents:
diff changeset
   115
        
36
hgs
parents: 34
diff changeset
   116
        //! Tells whether close has already been called for the dialog
34
hgs
parents:
diff changeset
   117
        bool mClose;
hgs
parents:
diff changeset
   118
        
36
hgs
parents: 34
diff changeset
   119
        //! Tells whether Ok Action has already been pressed
34
hgs
parents:
diff changeset
   120
        bool mOkActionPressed;
hgs
parents:
diff changeset
   121
    };
hgs
parents:
diff changeset
   122
36
hgs
parents: 34
diff changeset
   123
/*! @} */
34
hgs
parents:
diff changeset
   124
hgs
parents:
diff changeset
   125
#endif // __EAPFASTCREATEMASTERKEYQUERYDIALOG_H__
hgs
parents:
diff changeset
   126