diff -r f7f0874bfe7d -r 74c9f037fd5d ui/views/listview/inc/glxlistview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ui/views/listview/inc/glxlistview.h Fri Mar 19 09:28:59 2010 +0200 @@ -0,0 +1,68 @@ +/* +* 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: ?Description +* +*/ + +#ifndef GLXLISTVIEW_H +#define GLXLISTVIEW_H + +//User Includes +#include "glxview.h" + +//Qt/Orbit forward declarations +class HbListView; +class HbMainWindow; +class HbAbstractViewItem; +class HbDocumentLoader; + +class GlxListView : public GlxView +{ + Q_OBJECT + +public : + GlxListView(HbMainWindow *window); + virtual ~GlxListView(); + void activate() ; + void deActivate(); + void setModel(QAbstractItemModel *model); + void addToolBar( HbToolBar *toolBar ); + void initializeView(QAbstractItemModel *model); + QGraphicsItem * getAnimationItem( GlxEffect transtionEffect ); + +public slots: + void itemSelected(const QModelIndex & index); + +private slots: + void indicateLongPress( HbAbstractViewItem *item, QPointF coords ); + +private: + void addViewConnection(); + void removeViewConnection(); + void createListView(); + /* + * This loads the docml and retrives the widgets/layout information from the + * docml corresponding to the present orentation + */ + void loadListView(); + +private: + HbListView *mListView; + HbView *mView; + HbMainWindow *mWindow; //no ownership + QAbstractItemModel *mModel ; + HbDocumentLoader *mDocLoader; //Docml loader to load the widgets from docml +}; + +#endif /* GLXLISTVIEW_H */