commondrm/drmui/drmuinotifications/inc/drmuidialogsbuilder.h
branchRCL_3
changeset 27 1481bf457703
parent 26 1221b68b8a5f
child 28 00671737faf2
equal deleted inserted replaced
26:1221b68b8a5f 27:1481bf457703
     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 DRUMUIDIALOGSBUILDER_H
       
    19 #define DRUMUIDIALOGSBUILDER_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QVariantMap>
       
    23 #include <hbdevicedialoginterface.h>
       
    24 
       
    25 class HbDocumentLoader;
       
    26 class HbDialog;
       
    27 
       
    28 class DrmUiDialogsBuilder : public QObject, public HbDeviceDialogInterface
       
    29     {
       
    30 Q_OBJECT
       
    31 public:
       
    32     DrmUiDialogsBuilder(const QVariantMap &parameters);
       
    33     ~DrmUiDialogsBuilder();
       
    34 
       
    35 public:
       
    36     // from HbDeviceDialogInterface
       
    37     virtual bool setDeviceDialogParameters(const QVariantMap &parameters);
       
    38     virtual int deviceDialogError() const;
       
    39     virtual void closeDeviceDialog(bool byClient);
       
    40     virtual HbPopup *deviceDialogWidget() const;
       
    41     virtual QObject *signalSender() const;
       
    42 
       
    43 
       
    44 public slots:
       
    45     void  cancelDialog();
       
    46     void  confirmDialog();
       
    47     
       
    48 private:
       
    49     bool constructDialog(const QVariantMap &parameters);
       
    50 
       
    51 signals:
       
    52    // signlas needed by HbDeviceDialogInterface
       
    53     void deviceDialogClosed();
       
    54     void deviceDialogData(QVariantMap data);
       
    55 
       
    56 private:
       
    57     HbDocumentLoader *mLoader;
       
    58     HbDialog * mDialog;
       
    59 
       
    60     Q_DISABLE_COPY(DrmUiDialogsBuilder)
       
    61     };
       
    62 
       
    63 #endif /* DRUMUIDIALOGSBUILDER_H */