videocollection/tsrc/stubs/inc/hbpushbutton.h
changeset 34 bbb98528c666
child 17 69946d1824c4
equal deleted inserted replaced
33:48e74db5d516 34:bbb98528c666
       
     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:  stub hbpushbutton 
       
    15 * 
       
    16 */
       
    17 
       
    18 #ifndef HBPUSHBUTTON_H
       
    19 #define HBPUSHBUTTON_H
       
    20 
       
    21 #include "hbwidget.h"
       
    22 #include "qgraphicsitem.h"
       
    23 #include "hbicon.h"
       
    24 
       
    25 class HbPushButton : public HbWidget
       
    26 {
       
    27     Q_OBJECT
       
    28 
       
    29 public:
       
    30     HbPushButton( QGraphicsItem *parent = 0 ) : HbWidget(parent) {}
       
    31     
       
    32     HbPushButton( const QString &text, QGraphicsItem *parent = 0 ) : HbWidget(parent) {
       
    33         Q_UNUSED(text);
       
    34     }
       
    35     HbPushButton( const HbIcon &icon, const QString &text, QGraphicsItem *parent = 0 ) : HbWidget(parent) {
       
    36         Q_UNUSED(icon);
       
    37         Q_UNUSED(text);
       
    38     }
       
    39     virtual ~HbPushButton( ) {}
       
    40 
       
    41     QString text( ) const
       
    42     {
       
    43         return mText;
       
    44     }
       
    45 
       
    46     void setIcon( const HbIcon &icon )
       
    47     {
       
    48         mIcon = icon;
       
    49     }
       
    50     
       
    51     HbIcon icon( ) const
       
    52     {
       
    53         return mIcon;
       
    54     }
       
    55 
       
    56 public slots:
       
    57     void setText( const QString &text );
       
    58 
       
    59 public:
       
    60     QString mText;
       
    61     HbIcon mIcon;
       
    62 };
       
    63 
       
    64 #endif // HBPUSHBUTTON_H