videocollection/videofiledetailsview/inc/videodetailslabel.h
changeset 15 cf5481c2bc0b
equal deleted inserted replaced
2:dec420019252 15:cf5481c2bc0b
       
     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:   VideoDetailsLabel class definition
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef _VIDEODETAILSLABEL_H
       
    19 #define _VIDEODETAILSLABEL_H
       
    20 
       
    21 // SYSTEM INCLUDES
       
    22 #include <hblabel.h>
       
    23 
       
    24 // FORWORD DECLARATIONS
       
    25 class QGraphicsSceneMouseEvent;
       
    26 
       
    27 /**
       
    28  * This class is a custom layout widget for Contact Card layout.
       
    29  */
       
    30 class VideoDetailsLabel : public HbLabel
       
    31 {
       
    32 Q_OBJECT
       
    33 
       
    34 public:
       
    35 
       
    36     /**
       
    37      * Constructor
       
    38      */
       
    39     explicit VideoDetailsLabel(QGraphicsItem *parent = 0);
       
    40 
       
    41     /**
       
    42      * Destructor
       
    43      */
       
    44     virtual ~VideoDetailsLabel();
       
    45 
       
    46 public:
       
    47 
       
    48     void mousePressEvent ( QGraphicsSceneMouseEvent *event );
       
    49     
       
    50     void click();
       
    51 
       
    52 signals:
       
    53 
       
    54     /**
       
    55      * Signal emitted when widget is clicked.
       
    56      */
       
    57     void clicked(bool);
       
    58 
       
    59 private:
       
    60 
       
    61     /**
       
    62      * Initialization function.
       
    63      */
       
    64     void init();
       
    65 };
       
    66 
       
    67 // EOF
       
    68 #endif