tsdevicedialog/tsdevicedialogplugin/inc/tsdevicedialogcontainer.h
changeset 104 9b022b1f357c
child 107 b34d53f6acdf
equal deleted inserted replaced
103:b99b84bcd2d1 104:9b022b1f357c
       
     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: 
       
    15 *
       
    16 */
       
    17 #ifndef TSDEVICEDIALOGCONTAINER_H
       
    18 #define TSDEVICEDIALOGCONTAINER_H
       
    19 
       
    20 #include <QObject>
       
    21 
       
    22 #include <HbDeviceDialogInterface>
       
    23 
       
    24 #include <qvaluespacepublisher.h>
       
    25 
       
    26 #include "tsdocumentloader.h"
       
    27 
       
    28 QTM_USE_NAMESPACE
       
    29 
       
    30 class QAbstractListModel;
       
    31 
       
    32 class TsDeviceDialogContainer : public QObject, public HbDeviceDialogInterface
       
    33 {
       
    34 Q_OBJECT
       
    35 public:
       
    36     explicit TsDeviceDialogContainer(QAbstractListModel *model, QObject *parent = 0);
       
    37     ~TsDeviceDialogContainer();
       
    38 
       
    39 public:
       
    40     virtual bool setDeviceDialogParameters(const QVariantMap &parameters);
       
    41     virtual int deviceDialogError() const;
       
    42     virtual void closeDeviceDialog(bool byClient);
       
    43     virtual HbPopup *deviceDialogWidget() const;
       
    44     virtual QObject *signalSender() const;
       
    45 
       
    46 signals:
       
    47     void deviceDialogClosed();
       
    48 
       
    49 public slots:
       
    50     void changeOrientation(Qt::Orientation orientation);
       
    51 
       
    52 private slots:
       
    53     void notifyDialogClosed();
       
    54     
       
    55 private:
       
    56     TsDocumentLoader mLoader;
       
    57     QValueSpacePublisher mVisibilityPublisher;
       
    58 
       
    59 };
       
    60 
       
    61 #endif // TSDEVICEDIALOGCONTAINER_H