videoplayback/hbvideoplaybackview/tsrc/testmpxvideoplaybacktoolbar/stub/inc/hbtoolbar.h
changeset 44 518105d52e45
parent 42 17f382c040b1
child 49 824471cb468a
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
     1 /*
       
     2 * Copyright (c) 2010 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:  Implementation of HbToolBar
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  1 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef HBTOOLBAR_H_
       
    23 #define HBTOOLBAR_H_
       
    24 
       
    25 #include <hbwidget.h>
       
    26 
       
    27 class HbAction;
       
    28 class QGraphicsLayout;
       
    29 class QGraphicsLinearLayout;
       
    30 
       
    31 class HbToolBar : public HbWidget
       
    32 {
       
    33     Q_OBJECT
       
    34 
       
    35     public:
       
    36         HbToolBar();
       
    37         virtual ~HbToolBar();
       
    38 
       
    39     public:
       
    40         void setVisible( bool visible );
       
    41         void setEnabled( bool enabled );
       
    42         void setOrientation( int orientation );
       
    43         void clearActions();
       
    44         void addAction( HbAction *action );
       
    45         QGraphicsLayout* layout();
       
    46 
       
    47     public:
       
    48         bool mVisible;
       
    49         bool mEnabled;
       
    50         QGraphicsLinearLayout *mLayout;
       
    51 };
       
    52 
       
    53 #endif /*HBTOOLBAR_H_*/
       
    54