mmsharing/livecommsui/lcuiengine/tsrc/ut_lcuieng/hbstubs/hbdialog.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
child 35 6c57ef9392d2
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
     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: Orbit stubs for Live Comms UI unit tests
       
    15 *
       
    16 */
       
    17 #ifndef HBDIALOG_H
       
    18 #define HBDIALOG_H
       
    19 
       
    20 #include <hbglobal.h>
       
    21 #include <hbwidget.h>
       
    22 
       
    23 
       
    24 class HbAction;
       
    25 
       
    26 
       
    27 class HbDialog : public HbWidget
       
    28 {
       
    29 public:
       
    30     enum DismissPolicy
       
    31         {
       
    32             NoDismiss   = 0,
       
    33             TapInside   = 1,
       
    34             TapOutside  = 2,
       
    35             TapAnywhere = TapInside | TapOutside
       
    36         };
       
    37     enum DefaultTimeout
       
    38       {
       
    39           NoTimeout,
       
    40           ConfirmationNoteTimeout,
       
    41           StandardTimeout,
       
    42           ContextMenuTimeout
       
    43       };
       
    44     
       
    45     explicit HbDialog(QGraphicsItem *parent = 0);
       
    46     virtual  ~HbDialog();
       
    47 
       
    48     void setContentWidget(QGraphicsWidget *contentWidget);
       
    49     enum { Type = Hb::ItemType_Popup };
       
    50     void setTimeout( int timeout ) ;
       
    51     void setDismissPolicy( HbDialog::DismissPolicy dismissPolicy );
       
    52 
       
    53 public slots:
       
    54     void open(QObject* receiver = 0, const char* member = 0);
       
    55 protected:
       
    56 
       
    57     QVariant itemChange ( GraphicsItemChange change, const QVariant & value );
       
    58 };
       
    59 
       
    60 
       
    61 #endif // HBDIALOG_H