diff -r c84cf270c54f -r 92ab7f8d0eab phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/hbtoolbar.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/hbtoolbar.h Fri Mar 19 09:28:42 2010 +0200 @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2009 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: +* +*/ +#ifndef HBTOOLBAR_H +#define HBTOOLBAR_H + +#include +#include + +class HbAction; + +extern bool m_clearCalled; +extern bool m_hideCalled; +extern bool m_showCalled; +extern bool m_clearActionsCalled; +extern bool m_setOrientationCalled; +extern bool m_toolBarUpdateCalled; +extern HbAction *m_action; +extern QList m_actions; + + +class HbToolBar : public QObject +{ + Q_OBJECT + +public: + + HbToolBar (QObject *parent = 0); + virtual ~HbToolBar () {}; + void reset (); + void clear (); + void hide (); + void show (); + void addAction (HbAction *action); + void clearActions (); + void setOrientation(Qt::Orientation orientation); + void removeAction(HbAction *action); + QList actions() const; + void update(); + +private: + +}; + +#endif // HBTOOLBAR_H