videoplayback/hbvideoplaybackview/tsrc/testmpxvideoplaybacktoolbar/stub/inc/hbtoolbar.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 27 May 2010 12:53:14 +0300
changeset 24 7d93ee07fb27
parent 20 b9e04db066d4
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
* 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_*/