controlpanel/controlpanel_plat/inc/cpbasesettingview.h
author hgs
Tue, 25 May 2010 04:13:06 +0800
changeset 38 5a264aaf7677
parent 37 940f6b67827d
child 52 58cebe0861a8
permissions -rw-r--r--
201019_01
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 CPBASESETTINGVIEW_H
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    18
#define CPBASESETTINGVIEW_H
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    19
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    20
#include "cpglobal.h"
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    21
#include <hbview.h>
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    22
37
hgs
parents: 35
diff changeset
    23
class QVariant;
31
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    24
class QModelIndex;
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    25
class HbDataForm;
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    26
class CpBaseSettingViewPrivate;
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    27
class CpItemDataHelper;
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    28
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    29
class CP_EXPORT CpBaseSettingView : public HbView
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    30
{
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    31
    Q_OBJECT
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    32
public:
32
hgs
parents: 31
diff changeset
    33
	explicit CpBaseSettingView(QGraphicsWidget *widget = 0, QGraphicsItem *parent = 0);
37
hgs
parents: 35
diff changeset
    34
    virtual ~CpBaseSettingView();    
hgs
parents: 35
diff changeset
    35
    
38
5a264aaf7677 201019_01
hgs
parents: 37
diff changeset
    36
    //\deprecated please use HbView::setWidget
37
hgs
parents: 35
diff changeset
    37
    void setSettingForm(HbDataForm *settingForm)
hgs
parents: 35
diff changeset
    38
    {
hgs
parents: 35
diff changeset
    39
    }
38
5a264aaf7677 201019_01
hgs
parents: 37
diff changeset
    40
    //\deprecated HbDataForm *settingForm(), please use HbView::widget() instead
37
hgs
parents: 35
diff changeset
    41
    HbDataForm *settingForm() const
hgs
parents: 35
diff changeset
    42
    {
hgs
parents: 35
diff changeset
    43
        return 0;
hgs
parents: 35
diff changeset
    44
    }
31
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    45
signals:
37
hgs
parents: 35
diff changeset
    46
    void returnValueDelivered(const QVariant &returnValue);
31
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    47
    void aboutToClose();
37
hgs
parents: 35
diff changeset
    48
protected:
hgs
parents: 35
diff changeset
    49
    virtual void close();
31
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    50
private:
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    51
    Q_DISABLE_COPY(CpBaseSettingView)
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    52
    Q_DECLARE_PRIVATE_D(d_ptr, CpBaseSettingView)
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    53
    Q_PRIVATE_SLOT(d_func(), void _q_softkeyClicked())
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    54
private:
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    55
    CpBaseSettingViewPrivate *d_ptr;
37
hgs
parents: 35
diff changeset
    56
    friend class CpBaseSettingViewPrivate;
31
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    57
};
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    58
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    59
#endif /* CPBASESETTINGVIEW_H */