taskswitcherapp/tsdevicedialogplugin/inc/tsdevicedialog.h
branchGCC_SURGE
changeset 68 4c11ecddf6b2
parent 53 f75922b9e380
parent 61 2b1b11a301d2
equal deleted inserted replaced
53:f75922b9e380 68:4c11ecddf6b2
     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 
       
    18 #ifndef TSDEVICEDIALOG_H
       
    19 #define TSDEVICEDIALOG_H
       
    20 
       
    21 #include <HbDialog>
       
    22 #include <HbDeviceDialogInterface>
       
    23 
       
    24 class QGraphicsLinearLayout;
       
    25 class HbDocumentLoader;
       
    26 
       
    27 class TsDeviceDialog : public HbDialog, public HbDeviceDialogInterface
       
    28 {
       
    29     Q_OBJECT
       
    30 
       
    31 public:
       
    32     TsDeviceDialog(HbDocumentLoader &loader, QGraphicsItem *parent = 0);
       
    33     ~TsDeviceDialog();
       
    34 
       
    35     virtual bool setDeviceDialogParameters(const QVariantMap &parameters);
       
    36     virtual int deviceDialogError() const;
       
    37     virtual void closeDeviceDialog(bool byClient);
       
    38     virtual HbPopup *deviceDialogWidget() const;
       
    39 
       
    40 signals:
       
    41     void deviceDialogClosed();
       
    42 
       
    43 public slots:
       
    44     void changeOrientation(Qt::Orientation orientation);
       
    45 
       
    46 private:
       
    47     HbDocumentLoader &mLoader;
       
    48 
       
    49 };
       
    50 
       
    51 #endif // TSDEVICEDIALOG_H