controlpanel/examples/viewplugin/src/cpsampleview.h
author hgs
Fri, 25 Jun 2010 17:09:30 +0800
changeset 40 6465d5bb863a
parent 31 2c9d3aa5bea2
permissions -rw-r--r--
201025
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
31
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     1
/*
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     2
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     3
 * All rights reserved.
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     4
 * This component and the accompanying materials are made available
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0""
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     6
 * which accompanies this distribution, and is available
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     8
 *
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
     9
 * Initial Contributors:
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    10
 * Nokia Corporation - initial contribution.
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    11
 *
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    12
 * Contributors:
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    13
 *
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    14
 * Description:  
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    15
 *
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    16
 */
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    17
#ifndef	CPSAMPLEVIEW_H
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    18
#define	CPSAMPLEVIEW_H
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    19
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    20
#include <cpbasesettingview.h>
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    21
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    22
class HbDataFormModelItem;
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    23
class CpSettingFormItemData;
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    24
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    25
class CpSampleView : public CpBaseSettingView
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    26
{
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    27
    Q_OBJECT
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    28
public:
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    29
    explicit CpSampleView(QGraphicsItem *parent = 0);
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    30
    virtual ~CpSampleView();
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    31
private slots:
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    32
    //need handling your member's value change
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    33
    void sliderValueChanged(int value);
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    34
    void checkBoxStateChanged(int state);
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    35
private:
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    36
    HbDataFormModelItem   *mGroupItem;
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    37
    CpSettingFormItemData *mSliderItem;
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    38
    CpSettingFormItemData *mCheckBoxItem;
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    39
};
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    40
#endif//	CPSAMPLEVIEW_H