appinstaller/AppinstUi/sifuidevicedialogplugin/inc/sifuidevicedialogplugin.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
child 27 e8965914fac7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     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: Software install framework (SIF) device dialog plugin.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SIFUIDEVICEDIALOGPLUGIN_H
       
    19 #define SIFUIDEVICEDIALOGPLUGIN_H
       
    20 
       
    21 #include <hbdevicedialogplugin.h>       // HbDeviceDialogPlugin
       
    22 
       
    23 
       
    24 /**
       
    25  * SIF UI device dialog plugin.
       
    26  * Implements device dialog plugin for UI dialogs that can be used
       
    27  * in software install framwork (SIF) plugins.
       
    28  */
       
    29 class SifUiDeviceDialogPlugin : public HbDeviceDialogPlugin
       
    30 {
       
    31     Q_OBJECT
       
    32 
       
    33 public:
       
    34     SifUiDeviceDialogPlugin();
       
    35     ~SifUiDeviceDialogPlugin();
       
    36 
       
    37 public:     // from HbDeviceDialogPlugin
       
    38     bool accessAllowed(const QString &deviceDialogType, const QVariantMap &parameters,
       
    39             const QVariantMap &securityInfo) const;
       
    40     HbDeviceDialogInterface *createDeviceDialog(const QString &deviceDialogType,
       
    41             const QVariantMap &parameters);
       
    42     bool deviceDialogInfo(const QString &deviceDialogType, const QVariantMap &parameters,
       
    43             DeviceDialogInfo *info) const;
       
    44     QStringList deviceDialogTypes() const;
       
    45     PluginFlags pluginFlags() const;
       
    46     int error() const;
       
    47 
       
    48 private:
       
    49     Q_DISABLE_COPY(SifUiDeviceDialogPlugin)
       
    50 
       
    51     int mError;
       
    52 };
       
    53 
       
    54 #endif // SIFUIDEVICEDIALOGPLUGIN_H