diff -r 315810614048 -r 839377eedc2b videocollection/tsrc/stubs/inc/hbview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/videocollection/tsrc/stubs/inc/hbview.h Tue Aug 31 15:15:55 2010 +0300 @@ -0,0 +1,82 @@ +/* +* Copyright (c) 2008-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: stub hbview +* +*/ + + +#ifndef HBVIEW_H +#define HBVIEW_H + +#include +#include "qstring.h" +#include "hbinstance.h" +#include "hbtoolbar.h" +#include "hbeffect.h" + +class HbView : public QGraphicsWidget +{ + Q_OBJECT + +public: + + HbView(QGraphicsItem *parent = 0) : QGraphicsWidget(parent), mToolBar(0), mNavigationAction(0) + { + Q_UNUSED(parent); + } + + virtual ~HbView(){} + + HbMainWindow* mainWindow() const + { + return hbInstance->allMainWindows().value(0); + } + + void setTitle(const QString &title) + { + mTitle = title; + } + + HbToolBar *toolBar() const + { + if(!mToolBar) { + mToolBar = new HbToolBar(qobject_cast(this)); + } + return mToolBar; + } + + void setItemVisible(Hb::SceneItem item, bool visible) + { + Q_UNUSED(item); + mSetItemVisibleLast = visible; + } + + void setNavigationAction(HbAction *action) + { + mNavigationAction = action; + } + + + HbAction *mNavigationAction; + + mutable HbToolBar* mToolBar; + + QString mTitle; + +public: + + static bool mSetItemVisibleLast; +}; + +#endif // HBVIEW_H