securitysettings/eapqtdialogs/inc/eapfastinstallpacquerydialog.h
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
child 55 9c2aa05919d9
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Fast Install Pac Query Dialog
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 4 %
       
    20 */
       
    21 
       
    22 #ifndef __EAPFASTINSTALLQUERYDIALOG_H__
       
    23 #define __EAPFASTINSTALLQUERYDIALOG_H__
       
    24 
       
    25 // System includes
       
    26 #include <HbMessageBox>
       
    27 #include <hbdevicedialoginterface.h>
       
    28 
       
    29 // User includes
       
    30 
       
    31 // Forward declarations
       
    32 class HbTranslator;
       
    33 
       
    34 // External data types
       
    35 
       
    36 // Constants
       
    37 
       
    38 /*!
       
    39    @addtogroup group_eap_fast_install_pac_query_dialog
       
    40    @{
       
    41  */
       
    42 
       
    43 // Class declaration
       
    44 
       
    45 class EapFastInstallPacQueryDialog: public HbMessageBox, public HbDeviceDialogInterface
       
    46     {
       
    47     Q_OBJECT
       
    48 
       
    49     public:
       
    50         /* Constructor */
       
    51         EapFastInstallPacQueryDialog(const QVariantMap &parameters);
       
    52         /* Destructor */
       
    53         ~EapFastInstallPacQueryDialog();
       
    54         
       
    55         /* Function creates the actual dialog widget */
       
    56         void createDialog(const QVariantMap &parameters );
       
    57         
       
    58         /* Device dialog parameters to be set while dialog is displayed.
       
    59          * Not supported. (from HbDeviceDialogInterface)
       
    60          */
       
    61         bool setDeviceDialogParameters(const QVariantMap &parameters);
       
    62         
       
    63         /* Not supported. (from HbDeviceDialogInterface) */
       
    64         int deviceDialogError() const;
       
    65         
       
    66         /* Closes the device dialog. (from HbDeviceDialogInterface) */
       
    67         void closeDeviceDialog(bool byClient);
       
    68         
       
    69         /* Returns a pointer to this dialog widget.
       
    70            (from HbDeviceDialogInterface) */
       
    71         HbPopup *deviceDialogWidget() const;
       
    72                 
       
    73     signals:
       
    74         /* Signal is emitted when the dialog is closed */
       
    75         void deviceDialogClosed();
       
    76         
       
    77         /* Data is emitted in QVariantMap when Ok Action button is selected */
       
    78         void deviceDialogData(QVariantMap data);
       
    79             
       
    80     private slots:
       
    81         /* Slot that is mapped to the Yes Action button's triggered signal */
       
    82         void yesPressed();
       
    83         
       
    84         /* Slot that is mapped to the No Action button's triggered signal */
       
    85         void noPressed();
       
    86         
       
    87         /* Slot that is mapped to the signal that indicates to closing of the dialog */
       
    88         void closingDialog();
       
    89                
       
    90     private:
       
    91                 
       
    92         Q_DISABLE_COPY(EapFastInstallPacQueryDialog)
       
    93    
       
    94     private: // data
       
    95         // NOT OWNED
       
    96         
       
    97         // OWNED        
       
    98         //! Pointer to the password validator object
       
    99         QScopedPointer<HbTranslator> mTranslator;
       
   100         
       
   101         //! Tells whether close has already been called for the dialog
       
   102         bool mClose;
       
   103         
       
   104         //! Tells whether Yes Action has already been pressed
       
   105         bool mYesActionPressed;
       
   106     };
       
   107 
       
   108 /*! @} */
       
   109 
       
   110 #endif // __EAPFASTINSTALLQUERYDIALOG_H__