devicemgmtdialogsplugin/inc/devicemanagementnotifierwidget_p.h
changeset 30 d3981f4fe6a4
child 67 fdbfe0a95492
equal deleted inserted replaced
27:516a867811c3 30:d3981f4fe6a4
       
     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 
       
    18 #ifndef DEVICEMANAGEMENTNOTIFIERWIDGET_P_H
       
    19 #define DEVICEMANAGEMENTNOTIFIERWIDGET_P_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QVariantMap>
       
    23 
       
    24 #include <hbdevicedialoginterface.h>
       
    25 #include <hbdevicedialog.h>
       
    26 #include "devicemanagementnotifierutils.h"
       
    27 
       
    28 class HbDialog;
       
    29 
       
    30 class devicemanagementnotifierwidget :
       
    31     public devicemanagementnotifierutils, public HbDeviceDialogInterface
       
    32 {
       
    33 	Q_OBJECT
       
    34 
       
    35 public:
       
    36 enum ENotfierType
       
    37     {
       
    38 	    EServerAlertNote,
       
    39 	    EConnectingNote,
       
    40 	    EInformativeNote,
       
    41 	    EConfirmativeNote
       
    42     };
       
    43 public:
       
    44 	devicemanagementnotifierwidget(const QVariantMap &parameters);
       
    45 	virtual ~devicemanagementnotifierwidget();
       
    46 
       
    47 public: //derived from HbDeviceDialogInterface
       
    48 	bool setDeviceDialogParameters(const QVariantMap &parameters);
       
    49     int deviceDialogError() const;
       
    50     void closeDeviceDialog(bool byClient);
       
    51     HbDialog *deviceDialogWidget() const;
       
    52     void dmDevdialogDismissed(ENotfierType notifiertype, int response);
       
    53 
       
    54 signals:
       
    55         void deviceDialogClosed();
       
    56         void deviceDialogData(QVariantMap data);
       
    57  };
       
    58 
       
    59 #endif // devicemanagementnotifierwidget_P_H