securitysettings/eapqtdialogs/inc/eapmschapv2oldpwddialog.h
author hgs
Mon, 24 May 2010 20:32:47 +0300
changeset 26 9abfd4f00d37
permissions -rw-r--r--
201021
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26
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
*
hgs
parents:
diff changeset
    14
* Description: 
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
hgs
parents:
diff changeset
    19
#ifndef __EAPMSCHAPV2OLDPWDDIALOG_H__
hgs
parents:
diff changeset
    20
#define __EAPMSCHAPV2OLDPWDDIALOG_H__
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
#include <HbTranslator>
hgs
parents:
diff changeset
    23
#include <HbInputDialog>
hgs
parents:
diff changeset
    24
#include <HbAction>
hgs
parents:
diff changeset
    25
#include <hbdevicedialoginterface.h>
hgs
parents:
diff changeset
    26
hgs
parents:
diff changeset
    27
class EapQtValidator;
hgs
parents:
diff changeset
    28
hgs
parents:
diff changeset
    29
class EapMschapv2OldPwdDialog: public HbInputDialog, public HbDeviceDialogInterface
hgs
parents:
diff changeset
    30
    {
hgs
parents:
diff changeset
    31
    Q_OBJECT
hgs
parents:
diff changeset
    32
hgs
parents:
diff changeset
    33
    public:
hgs
parents:
diff changeset
    34
        /* Constructor */
hgs
parents:
diff changeset
    35
        EapMschapv2OldPwdDialog(const QVariantMap &parameters);
hgs
parents:
diff changeset
    36
        
hgs
parents:
diff changeset
    37
        /* Destructor */
hgs
parents:
diff changeset
    38
        ~EapMschapv2OldPwdDialog();
hgs
parents:
diff changeset
    39
        
hgs
parents:
diff changeset
    40
        /* Function creates the actual dialog widget */
hgs
parents:
diff changeset
    41
        void createDialog( const QVariantMap &parameters );
hgs
parents:
diff changeset
    42
        
hgs
parents:
diff changeset
    43
        /* Device dialog parameters to be set while dialog is displayed.
hgs
parents:
diff changeset
    44
         * Not supported.
hgs
parents:
diff changeset
    45
         */
hgs
parents:
diff changeset
    46
        bool setDeviceDialogParameters(const QVariantMap &parameters);
hgs
parents:
diff changeset
    47
        
hgs
parents:
diff changeset
    48
        /* Not supported */
hgs
parents:
diff changeset
    49
        int deviceDialogError() const;
hgs
parents:
diff changeset
    50
        
hgs
parents:
diff changeset
    51
        /* Closes the device dialog */
hgs
parents:
diff changeset
    52
        void closeDeviceDialog(bool byClient);
hgs
parents:
diff changeset
    53
        
hgs
parents:
diff changeset
    54
        /* Returns a pointer to this dialog widget */
hgs
parents:
diff changeset
    55
        HbPopup *deviceDialogWidget() const;
hgs
parents:
diff changeset
    56
                
hgs
parents:
diff changeset
    57
    signals:
hgs
parents:
diff changeset
    58
        /* Signal is emitted when the dialog is closed */
hgs
parents:
diff changeset
    59
        void deviceDialogClosed();
hgs
parents:
diff changeset
    60
    
hgs
parents:
diff changeset
    61
        /* Data is emitted in QVariantMap when Ok Action button is selected */
hgs
parents:
diff changeset
    62
        void deviceDialogData(QVariantMap data);
hgs
parents:
diff changeset
    63
        
hgs
parents:
diff changeset
    64
    private slots:
hgs
parents:
diff changeset
    65
        /* Slot that is mapped to the Ok Action button's triggered signal */
hgs
parents:
diff changeset
    66
        void okPressed();
hgs
parents:
diff changeset
    67
                
hgs
parents:
diff changeset
    68
        /* Slot that is mapped to the Cancel Action button's triggered signal */
hgs
parents:
diff changeset
    69
        void cancelPressed();
hgs
parents:
diff changeset
    70
        
hgs
parents:
diff changeset
    71
        /* Slot that is mapped to the signal that indicates to closing of the dialog */
hgs
parents:
diff changeset
    72
        void closingDialog();
hgs
parents:
diff changeset
    73
                       
hgs
parents:
diff changeset
    74
    private:
hgs
parents:
diff changeset
    75
         
hgs
parents:
diff changeset
    76
        bool validate() const;
hgs
parents:
diff changeset
    77
        
hgs
parents:
diff changeset
    78
        Q_DISABLE_COPY(EapMschapv2OldPwdDialog)
hgs
parents:
diff changeset
    79
    
hgs
parents:
diff changeset
    80
    private:
hgs
parents:
diff changeset
    81
        /* Pointer to the line edit object */
hgs
parents:
diff changeset
    82
        HbLineEdit *mEdit;
hgs
parents:
diff changeset
    83
                
hgs
parents:
diff changeset
    84
        /* Pointer to the password validator object */
hgs
parents:
diff changeset
    85
        EapQtValidator *mPwdValidator;
hgs
parents:
diff changeset
    86
        
hgs
parents:
diff changeset
    87
        /* Pointer to the Ok action button */
hgs
parents:
diff changeset
    88
        HbAction* mActionOk;
hgs
parents:
diff changeset
    89
        
hgs
parents:
diff changeset
    90
        /* Pointer to the HbTranslator */
hgs
parents:
diff changeset
    91
        QScopedPointer<HbTranslator> mTranslator;
hgs
parents:
diff changeset
    92
        
hgs
parents:
diff changeset
    93
        /* Tells whether close has already been called for the dialog */
hgs
parents:
diff changeset
    94
        bool mClose;
hgs
parents:
diff changeset
    95
    };
hgs
parents:
diff changeset
    96
hgs
parents:
diff changeset
    97
hgs
parents:
diff changeset
    98
#endif // __EAPMSCHAPV2OLDPWDDIALOG_H__
hgs
parents:
diff changeset
    99