mmsharing/livecommsui/lcui/tsrc/ut_lcui/hbstubs/hbview.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 HBVIEW_H
       
    18 #define HBVIEW_H
       
    19 
       
    20 #include <hbwidget.h>
       
    21 #include <hbglobal.h>
       
    22 #include <hbnamespace.h>
       
    23 
       
    24 class HbMenu;
       
    25 class HbToolBar;
       
    26 class HbAction;
       
    27 
       
    28 class HbView : public HbWidget
       
    29 {
       
    30 public:
       
    31     explicit HbView(QGraphicsItem *parent = 0);
       
    32     virtual ~HbView();
       
    33 
       
    34     HbMenu *menu() const;
       
    35     HbToolBar *toolBar() const;
       
    36     
       
    37     void showItems(Hb::SceneItems items);
       
    38     void hideItems(Hb::SceneItems items);
       
    39     bool isItemVisible(Hb::SceneItem item)  const;
       
    40     void setTitleBarVisible(bool visible);
       
    41     void setStatusBarVisible(bool visible);
       
    42     
       
    43     void setContentFullScreen(bool enable = true);
       
    44     HbAction *navigationAction() const;
       
    45     void setNavigationAction(HbAction *action);
       
    46 
       
    47 signals:
       
    48      void contentFullScreenChanged();
       
    49      
       
    50 public slots:
       
    51     void setTitle(const QString &title);
       
    52     
       
    53 private: // Data added for the unit testing stub
       
    54     HbMenu* mMenu;
       
    55     HbToolBar* mToolBar;
       
    56     bool mDockWidgetVisible;
       
    57 };
       
    58 
       
    59 #endif // HBVIEW_H