mpviewplugins/mpcollectionviewplugin/inc/mpsnapshotwidget.h
branchRCL_3
changeset 52 14979e23cb5e
equal deleted inserted replaced
50:26a1709b9fec 52:14979e23cb5e
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Music Player snapshot widget.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPSNAPSHOTWIDGET_H
       
    19 #define MPSNAPSHOTWIDGET_H
       
    20 
       
    21 
       
    22 #include <QtGlobal>
       
    23 #include <hbwidget.h>
       
    24 
       
    25 
       
    26 class QGraphicsView;
       
    27 class QImage;
       
    28 
       
    29 class  MpSnapshotWidget : public HbWidget
       
    30 {
       
    31     Q_OBJECT
       
    32 
       
    33 public:
       
    34     explicit MpSnapshotWidget( QGraphicsItem *parent=0 );
       
    35     virtual ~MpSnapshotWidget();
       
    36     
       
    37     void capture(QGraphicsView *graphicsView, QGraphicsItem *item);
       
    38     void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, 
       
    39                 QWidget *widget = 0 );
       
    40 
       
    41 private:
       
    42     Q_DISABLE_COPY(MpSnapshotWidget)
       
    43     QImage *mSnapshot;
       
    44 
       
    45 };
       
    46 
       
    47 #endif    // SNAPSHOTWIDGET_H