bluetoothengine/btnotif/btdevicedialogplugin/inc/btdevicedialognotifwidget.h
changeset 19 43824b19ee35
child 40 997690c3397a
equal deleted inserted replaced
17:f05641c183ff 19:43824b19ee35
       
     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:  BtDeviceDialogWidget class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BTDEVICEDIALOGNOTIFWIDGET_H
       
    20 #define BTDEVICEDIALOGNOTIFWIDGET_H
       
    21 
       
    22 #include <QVariantMap>
       
    23 
       
    24 #include <hbdevicedialoginterface.h>
       
    25 #include <hbdevicedialog.h>
       
    26 #include <hbnotificationdialog.h>
       
    27 
       
    28 /*!
       
    29     \class BtDeviceDialogQueryWidget
       
    30     \brief Widget class with properties setting. 
       
    31 
       
    32     BtDeviceDialogQueryWidget, inherited from HbNotificationDialog, 
       
    33     implements interface HbDeviceDialogInterface. The Q_Properties
       
    34     here are interfaces for caller of HbDeviceDialog to configue
       
    35     what to be shown in the widget. 
       
    36     
       
    37  */
       
    38 class BtDeviceDialogNotifWidget :
       
    39     public HbNotificationDialog, public HbDeviceDialogInterface
       
    40 {
       
    41     Q_OBJECT
       
    42     
       
    43 public:
       
    44     BtDeviceDialogNotifWidget(const QVariantMap &parameters);
       
    45     
       
    46     // From base class HbDeviceDialogInterface
       
    47     virtual bool setDeviceDialogParameters(const QVariantMap &parameters);
       
    48     virtual int deviceDialogError() const;
       
    49     virtual void closeDeviceDialog(bool byClient);
       
    50     virtual HbDialog *deviceDialogWidget() const;
       
    51 
       
    52 signals: 
       
    53     // Required by the framework
       
    54     void deviceDialogClosed();
       
    55     
       
    56 private:
       
    57     void processParam(const QVariantMap &parameters);
       
    58     bool constructQueryDialog(const QVariantMap &parameters);
       
    59     void resetProperties();
       
    60         
       
    61     // From base HbInputDialog, reimplement and emit signals. 
       
    62     void hideEvent(QHideEvent *event);
       
    63     void showEvent(QShowEvent *event);
       
    64 
       
    65 private:
       
    66     Q_DISABLE_COPY(BtDeviceDialogNotifWidget)
       
    67 
       
    68     int mLastError;
       
    69     int mSendAction;
       
    70     bool mShowEventReceived;
       
    71 };
       
    72 
       
    73 #endif // BTDEVICEDIALOGNOTIFWIDGET_H