taskswitcherapp/tsdevicedialogplugin/inc/tsdevicedialogcontainer.h
changeset 60 30f14686fb04
equal deleted inserted replaced
55:03646e8da489 60:30f14686fb04
       
     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 "tsdocumentloader.h"
       
    25 
       
    26 class QAbstractListModel;
       
    27 
       
    28 class TsDeviceDialogContainer : public QObject, public HbDeviceDialogInterface
       
    29 {
       
    30 Q_OBJECT
       
    31 public:
       
    32     explicit TsDeviceDialogContainer(QAbstractListModel *model, QObject *parent = 0);
       
    33     ~TsDeviceDialogContainer();
       
    34 
       
    35 public:
       
    36     virtual bool setDeviceDialogParameters(const QVariantMap &parameters);
       
    37     virtual int deviceDialogError() const;
       
    38     virtual void closeDeviceDialog(bool byClient);
       
    39     virtual HbPopup *deviceDialogWidget() const;
       
    40     virtual QObject *signalSender() const;
       
    41 
       
    42 signals:
       
    43     void deviceDialogClosed();
       
    44 
       
    45 public slots:
       
    46     void changeOrientation(Qt::Orientation orientation);
       
    47 
       
    48 private:
       
    49     TsDocumentLoader mLoader;
       
    50 
       
    51 };
       
    52 
       
    53 #endif // TSDEVICEDIALOGCONTAINER_H