videoplayback/videoplaybackview/tsrc/testtoolbar/stub/inc/hbtoolbar.h
author hgs
Thu, 08 Jul 2010 13:05:19 +0300
changeset 44 518105d52e45
parent 37 videoplayback/hbvideoplaybackview/tsrc/testmpxvideoplaybacktoolbar/stub/inc/hbtoolbar.h@4eb2df7f7cbe
permissions -rw-r--r--
201027

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Implementation of HbToolBar
*
*/

// Version : %version:  1 %



#ifndef HBTOOLBAR_H_
#define HBTOOLBAR_H_

#include <hbwidget.h>

class HbAction;
class QGraphicsLayout;
class QGraphicsLinearLayout;

class HbToolBar : public HbWidget
{
    Q_OBJECT

    public:
        HbToolBar();
        virtual ~HbToolBar();

    public:
        void setVisible( bool visible );
        void setEnabled( bool enabled );
        void setOrientation( int orientation );
        void clearActions();
        void addAction( HbAction *action );
        QGraphicsLayout* layout();

    public:
        bool mVisible;
        bool mEnabled;
        QGraphicsLinearLayout *mLayout;
};

#endif /*HBTOOLBAR_H_*/