alarmui/alarmalertwidget/alarmalertplugin/inc/alarmalertplugin.h
branchRCL_3
changeset 65 12af337248b1
equal deleted inserted replaced
60:96907930389d 65:12af337248b1
       
     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: 
       
    15 *
       
    16 */
       
    17 // alarmalertplugin.h
       
    18 
       
    19 // System includes
       
    20 #include <QObject>
       
    21 #include <hbdevicedialogplugin.h>
       
    22 
       
    23 // Class declaration
       
    24 /**
       
    25  * @class AlarmAlertPlugin
       
    26  * @brief The device dialog plugin class.
       
    27  * Creates an instance of the custom alarm device dialog
       
    28  */
       
    29 class AlarmAlertPlugin : public HbDeviceDialogPlugin
       
    30 {
       
    31 Q_OBJECT
       
    32 
       
    33 public:
       
    34     
       
    35     /**
       
    36      * @brief Default C++ constructor
       
    37      */
       
    38     AlarmAlertPlugin();
       
    39     
       
    40     /**
       
    41      * @brief Default C++ destructor
       
    42      */
       
    43     ~AlarmAlertPlugin();
       
    44 
       
    45 public:     // From base class
       
    46     
       
    47     /**
       
    48      * @brief From HbDeviceDialogPlugin
       
    49      * @see HbDeviceDialogPlugin
       
    50      */
       
    51     bool accessAllowed(const QString &deviceDialogType, const QVariantMap &parameters, const QVariantMap &securityInfo) const;
       
    52     
       
    53     /**
       
    54      * @brief From HbDeviceDialogPlugin
       
    55      * @see HbDeviceDialogPlugin
       
    56      */
       
    57     bool deviceDialogInfo(const QString &deviceDialogType, const QVariantMap &parameters, DeviceDialogInfo *info) const;
       
    58     
       
    59     /**
       
    60      * @brief From HbDeviceDialogPlugin
       
    61      * @see HbDeviceDialogPlugin
       
    62      */
       
    63     QStringList deviceDialogTypes() const;
       
    64     
       
    65     /**
       
    66      * @brief From HbDeviceDialogPlugin
       
    67      * @see HbDeviceDialogPlugin
       
    68      */
       
    69     HbDeviceDialogPlugin::PluginFlags pluginFlags() const;
       
    70     
       
    71     /**
       
    72      * @brief From HbDeviceDialogPlugin
       
    73      * @see HbDeviceDialogPlugin
       
    74      */
       
    75     int error() const;
       
    76 
       
    77     /**
       
    78      * @brief From HbDeviceDialogPluginInterface
       
    79      * @see HbDeviceDialogPluginInterface
       
    80      */
       
    81     HbDeviceDialogInterface *createDeviceDialog(const QString &deviceDialogType,
       
    82                                                 const QVariantMap &parameters);
       
    83 };