ui/views/viewbase/inc/glxview.h
changeset 23 74c9f037fd5d
child 24 99ad1390cd33
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/views/viewbase/inc/glxview.h	Fri Mar 19 09:28:59 2010 +0200
@@ -0,0 +1,82 @@
+/*
+* 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 GLXVIEW_H_
+#define GLXVIEW_H_
+
+
+//Includes
+#include <hbview.h>
+
+//User Includes
+#include "glxuistd.h"
+
+
+//Qt/Orbit forward declartion
+class QAbstractItemModel;
+class QItemSelectionModel;
+
+class GlxView :public HbView
+{
+Q_OBJECT
+    
+public :
+    GlxView(qint32 id, QGraphicsItem *parent = 0 ) : HbView(parent), mId(id)
+    { 
+    
+    }
+	
+    virtual void activate() = 0;
+    virtual void deActivate() = 0;
+    virtual void setModel(QAbstractItemModel *model) = 0;
+    virtual bool compare (qint32 id)
+    { 
+        return mId == id;
+    }
+    virtual void addToolBar( HbToolBar *toolBar ) { Q_UNUSED(toolBar) }
+    virtual void enableMarking() { }
+    virtual void disableMarking() { }
+    virtual void handleUserAction(qint32 commandId) { Q_UNUSED(commandId) }
+    virtual QItemSelectionModel * getSelectionModel() { return NULL ; }
+    virtual void resetView() {}
+    virtual void initializeView(QAbstractItemModel *model) {Q_UNUSED(model)}
+    inline qint32 viewId() { return mId;}
+    virtual QGraphicsItem * getAnimationItem( GlxEffect transtionEffect ) 
+    {
+        Q_UNUSED(transtionEffect)
+        return NULL; 
+    }
+    
+    virtual ~GlxView()
+    {
+    	
+    }
+	
+signals:
+    void actionTriggered(qint32 id);
+    void itemSpecificMenuTriggered(qint32,QPointF );	
+
+    void gridItemSelected(const QModelIndex &);
+    
+private :
+	qint32 mId;
+	
+};
+
+#endif /* GLXVIEW_H_ */