securitysettings/eapqtdialogs/inc/eapquerydialog.h
author hgs
Thu, 24 Jun 2010 11:23:08 +0300
changeset 34 ad1f037f1ac2
child 36 c98682f98478
permissions -rw-r--r--
201025
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
*
hgs
parents:
diff changeset
    14
* Description: EAP query Dialog
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
 * %version: 2 %
hgs
parents:
diff changeset
    20
 */
hgs
parents:
diff changeset
    21
 
hgs
parents:
diff changeset
    22
#ifndef __EAPQUERYDIALOG_H__
hgs
parents:
diff changeset
    23
#define __EAPQUERYDIALOG_H__
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
hgs
parents:
diff changeset
    26
#include <HbMessageBox>
hgs
parents:
diff changeset
    27
#include <hbdevicedialoginterface.h>
hgs
parents:
diff changeset
    28
hgs
parents:
diff changeset
    29
class HbTranslator;
hgs
parents:
diff changeset
    30
class EapQtValidator;
hgs
parents:
diff changeset
    31
hgs
parents:
diff changeset
    32
class EapQueryDialog: public HbMessageBox, public HbDeviceDialogInterface
hgs
parents:
diff changeset
    33
    {
hgs
parents:
diff changeset
    34
    Q_OBJECT
hgs
parents:
diff changeset
    35
hgs
parents:
diff changeset
    36
    public:
hgs
parents:
diff changeset
    37
        /* Constructor */
hgs
parents:
diff changeset
    38
        EapQueryDialog(const QVariantMap &parameters);
hgs
parents:
diff changeset
    39
        /* Destructor */
hgs
parents:
diff changeset
    40
        ~EapQueryDialog();
hgs
parents:
diff changeset
    41
        
hgs
parents:
diff changeset
    42
        /* Function creates the actual dialog widget */
hgs
parents:
diff changeset
    43
        void createDialog(const QVariantMap &parameters );
hgs
parents:
diff changeset
    44
        
hgs
parents:
diff changeset
    45
        /* Device dialog parameters to be set while dialog is displayed.
hgs
parents:
diff changeset
    46
         * Not supported.
hgs
parents:
diff changeset
    47
         */
hgs
parents:
diff changeset
    48
        bool setDeviceDialogParameters(const QVariantMap &parameters);
hgs
parents:
diff changeset
    49
        
hgs
parents:
diff changeset
    50
        /* Not supported */
hgs
parents:
diff changeset
    51
        int deviceDialogError() const;
hgs
parents:
diff changeset
    52
        
hgs
parents:
diff changeset
    53
        /* Closes the device dialog */
hgs
parents:
diff changeset
    54
        void closeDeviceDialog(bool byClient);
hgs
parents:
diff changeset
    55
        
hgs
parents:
diff changeset
    56
        /* Returns a pointer to this dialog widget */
hgs
parents:
diff changeset
    57
        HbPopup *deviceDialogWidget() const;
hgs
parents:
diff changeset
    58
                
hgs
parents:
diff changeset
    59
    signals:
hgs
parents:
diff changeset
    60
        /* Signal is emitted when the dialog is closed */
hgs
parents:
diff changeset
    61
        void deviceDialogClosed();
hgs
parents:
diff changeset
    62
        
hgs
parents:
diff changeset
    63
        /* Data is emitted in QVariantMap when Ok Action button is selected */
hgs
parents:
diff changeset
    64
        void deviceDialogData(QVariantMap data);
hgs
parents:
diff changeset
    65
            
hgs
parents:
diff changeset
    66
    private slots:
hgs
parents:
diff changeset
    67
        /* Slot that is mapped to the Ok Action button's triggered signal */
hgs
parents:
diff changeset
    68
        void okPressed();
hgs
parents:
diff changeset
    69
        
hgs
parents:
diff changeset
    70
        /* Slot that is mapped to the signal that indicates to closing of the dialog */
hgs
parents:
diff changeset
    71
        void closingDialog();
hgs
parents:
diff changeset
    72
               
hgs
parents:
diff changeset
    73
    private:
hgs
parents:
diff changeset
    74
                
hgs
parents:
diff changeset
    75
        Q_DISABLE_COPY(EapQueryDialog)
hgs
parents:
diff changeset
    76
   
hgs
parents:
diff changeset
    77
    private:
hgs
parents:
diff changeset
    78
        
hgs
parents:
diff changeset
    79
        /* Pointer to the HbTranslator */
hgs
parents:
diff changeset
    80
        QScopedPointer<HbTranslator> mTranslator;
hgs
parents:
diff changeset
    81
        
hgs
parents:
diff changeset
    82
        /* Tells whether Ok Action has already been pressed */
hgs
parents:
diff changeset
    83
        bool mOkActionPressed;
hgs
parents:
diff changeset
    84
    };
hgs
parents:
diff changeset
    85
hgs
parents:
diff changeset
    86
#endif // __EAPQUERYDIALOG_H__