messagingapp/msgnotifications/msgnotificationdialogplugin/inc/msgnotificationdialogplugin.h
changeset 23 238255e8b033
equal deleted inserted replaced
5:4697dfb2d7ad 23:238255e8b033
       
     1 /*
       
     2  * Copyright (c) 2009 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: Message notification plugin class.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef MSGNOTIFICATIONDIALOGPLUGIN_H
       
    19 #define MSGNOTIFICATIONDIALOGPLUGIN_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QVariantMap>
       
    23 
       
    24 #include <hbdevicedialogplugin.h>
       
    25 
       
    26 
       
    27 /**
       
    28  * Message notification plugin. 
       
    29  * Implements the HbDeviceDialogPlugin to show new message 
       
    30  * notifications.
       
    31  */
       
    32 class MsgNotificationDialogPlugin : public HbDeviceDialogPlugin
       
    33 {
       
    34     Q_OBJECT
       
    35 
       
    36 public:
       
    37 
       
    38     /** 
       
    39      * Constructor 
       
    40      */
       
    41     MsgNotificationDialogPlugin();
       
    42 
       
    43     /** 
       
    44      * Destructor 
       
    45      */
       
    46     ~MsgNotificationDialogPlugin();
       
    47 
       
    48     /**
       
    49      * @see HbDeviceDialogPlugin
       
    50      */
       
    51     bool accessAllowed(const QString &deviceDialogType,
       
    52                        const QVariantMap &parameters, 
       
    53                        const QVariantMap &securityInfo) const;
       
    54 
       
    55     /**
       
    56      * @see HbDeviceDialogPlugin
       
    57      */
       
    58     HbDeviceDialogInterface *createDeviceDialog(const QString &deviceDialogType,
       
    59                                                 const QVariantMap &parameters);
       
    60 
       
    61     /**
       
    62      * @see HbDeviceDialogPlugin
       
    63      */
       
    64     bool deviceDialogInfo(const QString &deviceDialogType,
       
    65                           const QVariantMap &parameters, 
       
    66                            DeviceDialogInfo *info) const;
       
    67 
       
    68     /**
       
    69      * @see HbDeviceDialogPlugin
       
    70      */
       
    71     QStringList deviceDialogTypes() const;
       
    72 
       
    73     /**
       
    74      * @see HbDeviceDialogPlugin
       
    75      */
       
    76     PluginFlags pluginFlags() const;
       
    77 
       
    78     /**
       
    79      * @see HbDeviceDialogPlugin
       
    80      */
       
    81     int error() const;
       
    82 
       
    83 private:
       
    84     Q_DISABLE_COPY(MsgNotificationDialogPlugin)
       
    85     
       
    86     /**
       
    87      * Holds the error value
       
    88      */
       
    89     int mError;
       
    90 };
       
    91 
       
    92 #endif // MSGNOTIFICATIONDIALOGPLUGIN_P_H