videocollection/tsrc/stubs/src/hbcheckbox.h
changeset 36 8aed59de29f9
parent 35 3738fe97f027
child 37 4eb2df7f7cbe
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
     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 hbcheckbox for testing video list selection dialog
       
    15 * 
       
    16 */
       
    17 
       
    18 #ifndef HBCHECKBOX_H
       
    19 #define HBCHECKBOX_H
       
    20 
       
    21 #include "hbwidget.h"
       
    22 #include <QGraphicsLayout>
       
    23 #include <QGraphicsWidget>
       
    24 #include <QString>
       
    25 
       
    26 class HbCheckBox : public HbWidget
       
    27 {
       
    28     Q_OBJECT
       
    29     
       
    30 public:
       
    31     
       
    32     /**
       
    33      * Contructor.
       
    34      */ 
       
    35     HbCheckBox(QGraphicsItem *parent = 0) : HbWidget(parent){initializeCount++;}
       
    36       
       
    37     /**
       
    38      * Destructor.
       
    39      */   
       
    40     virtual ~HbCheckBox(){initializeCount--;}
       
    41     
       
    42     /**
       
    43      * sets mChecked
       
    44      */
       
    45     void setChecked(bool check){mChecked = check;}
       
    46     
       
    47     /**
       
    48      * counter to make sure alloc dealloc match
       
    49      */
       
    50     static int initializeCount;
       
    51     
       
    52     /**
       
    53      * dummy value setted in setchecked
       
    54      */
       
    55     bool mChecked;
       
    56     
       
    57 signals:
       
    58     /**
       
    59      * state changed -signal
       
    60      */
       
    61     void stateChanged(int);
       
    62  
       
    63 };
       
    64 
       
    65 #endif