phoneapp/phoneuiview2/tsrc/ut_phoneuiqtview/hbtoolbar.h
changeset 78 baacf668fe89
parent 76 cfea66083b62
equal deleted inserted replaced
76:cfea66083b62 78:baacf668fe89
     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: 
       
    15 *
       
    16 */
       
    17 #ifndef HBTOOLBAR_H
       
    18 #define HBTOOLBAR_H
       
    19 
       
    20 #include <QObject>
       
    21 #include <QAction>
       
    22 
       
    23 class HbAction;
       
    24 
       
    25 extern bool m_clearCalled;
       
    26 extern bool m_hideCalled;
       
    27 extern bool m_showCalled;
       
    28 extern bool m_clearActionsCalled;
       
    29 extern bool m_setOrientationCalled;
       
    30 extern bool m_toolBarUpdateCalled;
       
    31 extern HbAction *m_action;
       
    32 extern QList<QAction*> m_actions;
       
    33 
       
    34 
       
    35 class HbToolBar : public QObject
       
    36 {
       
    37     Q_OBJECT
       
    38 
       
    39 public:
       
    40 
       
    41     HbToolBar (QObject *parent = 0);    
       
    42     virtual ~HbToolBar () {};
       
    43     void reset ();
       
    44     void clear ();
       
    45     void hide ();
       
    46     void show ();
       
    47     void addAction (HbAction *action);
       
    48     void clearActions ();
       
    49     void setOrientation(Qt::Orientation orientation);
       
    50     void removeAction(HbAction *action);
       
    51     QList<QAction*> actions() const;
       
    52     void update();
       
    53 
       
    54 private:
       
    55     
       
    56 };
       
    57 
       
    58 #endif // HBTOOLBAR_H