diff -r a0f57508af73 -r a3a4c0de738e ui/views/detailsview/inc/glxdetailscustomicon.h --- a/ui/views/detailsview/inc/glxdetailscustomicon.h Sat Jul 10 00:59:39 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,63 +0,0 @@ -/* -* 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 GLXDETAILSCUSTOMICON_H -#define GLXDETAILSCUSTOMICON_H - -#include -class HbIconItem; -class HbIcon; - -class GlxDetailsCustomIcon : public HbWidget -{ - Q_OBJECT - -public: - GlxDetailsCustomIcon(QGraphicsItem *parent); - ~GlxDetailsCustomIcon(); - /* - * Sets the Geometry of the Custom Widget - */ - void setItemGeometry(QRect screenRect); - - /* - * Sets the Size of the Favourite Icon - */ - void setItemSize(const QSizeF &size); - - /* - * Sets the Position of the Favourite Icon - */ - void setItemPos(qreal ax, qreal ay); - - /* - * Sets the Icon of Favourite IconItem. - */ - void setItemIcon(const HbIcon &icon); - -protected: - void mousePressEvent(QGraphicsSceneMouseEvent *event); - void mouseReleaseEvent (QGraphicsSceneMouseEvent *event); - -signals : - void updateFavourites(); - -private: - HbIconItem *mFavIcon; -}; - -#endif // GLXDETAILSCUSTOMICON_H