qtinternetradio/irhswidgetplugin/inc/irhswidgettitlerow.h
changeset 12 608f67c22514
child 14 896e9dbc5f19
equal deleted inserted replaced
11:f683e24efca3 12:608f67c22514
       
     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:  Internet Radio home screen widget
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef IRHSWIDGETTITLEROW_H_
       
    19 #define IRHSWIDGETTITLEROW_H_
       
    20 
       
    21 // System includes
       
    22 #include <HbWidget>
       
    23 
       
    24 //FORWARD DECLARATIONS:
       
    25 class HbLabel;
       
    26 
       
    27 class IrHsWidgetTitleRow : public HbWidget
       
    28 {
       
    29     Q_OBJECT
       
    30   
       
    31 public:
       
    32     explicit IrHsWidgetTitleRow(QGraphicsItem *aParent = 0, Qt::WindowFlags aFlags = 0);
       
    33     virtual ~IrHsWidgetTitleRow();
       
    34     
       
    35     void setDefaultTitle();
       
    36     void setStationName(const QString &aStationName);
       
    37   
       
    38     void loadStationLogo();
       
    39     void setDefaultLogo();
       
    40     
       
    41 signals:
       
    42     void titleRowClicked();
       
    43     
       
    44 protected:
       
    45     // from QGraphicsItem
       
    46     void mousePressEvent(QGraphicsSceneMouseEvent *aEvent);
       
    47 
       
    48 private:
       
    49     void loadUi();
       
    50     
       
    51 private:
       
    52     HbLabel *mStationLogo;
       
    53     HbLabel *mStationName;
       
    54 };
       
    55 
       
    56 #endif // IRHSWIDGETTITLEROW_H_