mpviewplugins/mpmediawallviewplugin/inc/mpalbumcoverwidget.h
changeset 29 8192e5b5c935
child 37 eb79a7c355bf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mpviewplugins/mpmediawallviewplugin/inc/mpalbumcoverwidget.h	Thu May 27 12:49:57 2010 +0300
@@ -0,0 +1,57 @@
+/*
+* Copyright (c) 2010 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:  Album Cover Widget for Music Player Media Wall.
+*
+*/
+#ifndef MPALBUMCOVERWIDGET_H
+#define MPALBUMCOVERWIDGET_H
+
+#include <QGraphicsWidget>
+#include <QPixmap>
+
+#include <hbicon.h>
+
+class MpAlbumCoverWidget : public QGraphicsWidget
+
+{
+    Q_OBJECT
+
+public:
+
+    MpAlbumCoverWidget( QGraphicsItem *parent );
+    void setIcon(const HbIcon &icon );
+    void setDefaultIcon( const HbIcon &icon );
+    void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, 
+                QWidget *widget = 0 );
+
+signals:
+
+    void clicked();
+    
+private:
+
+    void mousePressEvent( QGraphicsSceneMouseEvent *event );
+    void mouseReleaseEvent( QGraphicsSceneMouseEvent *event );
+    
+private:
+    
+    HbIcon    mIcon;
+    HbIcon    mDefaultIcon;
+    QPixmap   mPixmap;
+};
+
+
+#endif //MPALBUMCOVERWIDGET_H
+
+// EOF