securitysettings/eapqtdialogs/inc/eapdialogplugin.h
changeset 42 53085837e73a
parent 39 fe6b6762fccd
equal deleted inserted replaced
39:fe6b6762fccd 42:53085837e73a
    14 * Description: Eap Dialog Plugin
    14 * Description: Eap Dialog Plugin
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 3 %
    19 * %version: 4 %
    20 */
    20 */
    21 
    21 
    22 #ifndef ____EAPDIALOG_H__PLUGIN_H__
    22 #ifndef ____EAPDIALOG_H__PLUGIN_H__
    23 #define ____EAPDIALOG_H__PLUGIN_H__
    23 #define ____EAPDIALOG_H__PLUGIN_H__
    24 
    24 
       
    25 // System includes
    25 #include <QObject>
    26 #include <QObject>
    26 #include <hbdevicedialogplugin.h>
    27 #include <hbdevicedialogplugin.h>
    27 
    28 
       
    29 // User includes
       
    30 
       
    31 // Forward declarations
       
    32 
       
    33 // External data types
       
    34 
       
    35 // Constants
       
    36 
       
    37 /*!
       
    38    @addtogroup group_eap_dialog_plugin
       
    39    @{
       
    40  */
       
    41 
       
    42 // Class declaration
    28 
    43 
    29 class EapDialogPlugin : public HbDeviceDialogPlugin
    44 class EapDialogPlugin : public HbDeviceDialogPlugin
    30 {
    45 {
    31     Q_OBJECT
    46     Q_OBJECT
    32 
    47 
    35     /* Constructor */
    50     /* Constructor */
    36     EapDialogPlugin();
    51     EapDialogPlugin();
    37     /* Destructor */
    52     /* Destructor */
    38     ~EapDialogPlugin();
    53     ~EapDialogPlugin();
    39     
    54     
    40     /* Check whether access is allowed, true is always returned */
    55     /* Check whether access is allowed, true is always returned. 
       
    56        (from HbDeviceDialogPlugin) */
    41     bool accessAllowed(const QString &deviceDialogType,
    57     bool accessAllowed(const QString &deviceDialogType,
    42         const QVariantMap &parameters, const QVariantMap &securityInfo) const;
    58         const QVariantMap &parameters, const QVariantMap &securityInfo) const;
    43     
    59     
    44     /* Creates the dialog widget */
    60     /* Creates the dialog widget. (from HbDeviceDialogPluginInterface) */
    45     HbDeviceDialogInterface *createDeviceDialog(const QString &deviceDialogType,
    61     HbDeviceDialogInterface *createDeviceDialog(const QString &deviceDialogType,
    46         const QVariantMap &parameters);
    62         const QVariantMap &parameters);
    47     
    63     
    48     /* Returns the device dialog type */
    64     /* Returns the device dialog type. (from HbDeviceDialogPlugin)*/
    49     bool deviceDialogInfo(const QString &deviceDialogType,
    65     bool deviceDialogInfo(const QString &deviceDialogType,
    50         const QVariantMap &parameters, DeviceDialogInfo *info) const;
    66         const QVariantMap &parameters, DeviceDialogInfo *info) const;
    51     
    67     
    52     /* Returns a list of dialog types that this plugin implements.
    68     /* Returns a list of dialog types that this plugin implements.
    53      * Only one dialog type is supported.
    69      * Only one dialog type is supported. (from HbDeviceDialogPlugin)
    54      */
    70      */
    55     QStringList deviceDialogTypes() const;
    71     QStringList deviceDialogTypes() const;
    56     
    72     
    57     /* Returns the possible plugin flags, there are none */
    73     /* Returns the possible plugin flags, there are none. 
       
    74        (from HbDeviceDialogPlugin) */
    58     PluginFlags pluginFlags() const;
    75     PluginFlags pluginFlags() const;
    59     
    76     
    60     /* Not supported */
    77     /* Not supported. (from HbDeviceDialogPlugin)*/
    61     int error() const;
    78     int error() const;
    62 
    79 
    63 private:
    80 private:
    64     Q_DISABLE_COPY(EapDialogPlugin)
    81     Q_DISABLE_COPY(EapDialogPlugin)
    65 
    82 
    66 };
    83 };
    67 
    84 
       
    85 /*! @} */
       
    86 
    68 #endif // ___EAPDIALOG_H__
    87 #endif // ___EAPDIALOG_H__