securitydialogs/secuinotifications/secuinotificationdialogplugin/inc/secuinotificationdialogplugin.h
branchRCL_3
changeset 21 09b1ac925e3f
equal deleted inserted replaced
20:63339781d179 21:09b1ac925e3f
       
     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: SecUi notification plugin class.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SECUINOTIFICATIONDIALOGPLUGIN_H
       
    19 #define SECUINOTIFICATIONDIALOGPLUGIN_H
       
    20 
       
    21 #include <hbdevicedialogplugin.h>       // HbDeviceDialogPlugin
       
    22 
       
    23 
       
    24 /**
       
    25  * Software install notification plugin.
       
    26  * Implements the HbDeviceDialogPlugin to show SW install confirmatoin dialogs.
       
    27  */
       
    28 class SecUiNotificationDialogPlugin : public HbDeviceDialogPlugin
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33     SecUiNotificationDialogPlugin();
       
    34     ~SecUiNotificationDialogPlugin();
       
    35 
       
    36 public:     // from HbDeviceDialogPlugin
       
    37     bool accessAllowed(const QString &deviceDialogType, const QVariantMap &parameters,
       
    38             const QVariantMap &securityInfo) const;
       
    39     HbDeviceDialogInterface *createDeviceDialog(const QString &deviceDialogType,
       
    40             const QVariantMap &parameters);
       
    41     bool deviceDialogInfo(const QString &deviceDialogType, const QVariantMap &parameters,
       
    42             DeviceDialogInfo *info) const;
       
    43     QStringList deviceDialogTypes() const;
       
    44     PluginFlags pluginFlags() const;
       
    45     int error() const;
       
    46 
       
    47 private:
       
    48     Q_DISABLE_COPY(SecUiNotificationDialogPlugin)
       
    49 
       
    50     int mError;
       
    51 };
       
    52 
       
    53 #endif // SECUINOTIFICATIONDIALOGPLUGIN_H