ui/views/listview/inc/glxlistview.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 14:58:46 +0300
changeset 24 99ad1390cd33
parent 23 74c9f037fd5d
child 26 c499df2dbb33
permissions -rw-r--r--
Revision: 201011 Kit: 201015

/*
* 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 );
	void setVisvalWindowIndex();
	
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 */