controlpanel/controlpanel_plat/inc/cpbasesettingview.h
author hgs
Thu, 01 Apr 2010 03:31:13 +0800
changeset 35 159cfcd3c1c5
parent 32 20bd089f4aaa
child 37 940f6b67827d
permissions -rw-r--r--
201009_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
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    23
class QModelIndex;
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    24
class HbDataForm;
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    25
class CpBaseSettingViewPrivate;
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    26
class CpItemDataHelper;
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    27
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    28
class CP_EXPORT CpBaseSettingView : public HbView
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    29
{
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    30
    Q_OBJECT
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    31
public:
32
hgs
parents: 31
diff changeset
    32
	explicit CpBaseSettingView(QGraphicsWidget *widget = 0, QGraphicsItem *parent = 0);
31
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    33
    virtual ~CpBaseSettingView();
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    34
    void setSettingForm(HbDataForm *settingForm);
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    35
    HbDataForm *settingForm() const;
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    36
signals:
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    37
    void aboutToClose();
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    38
private:
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    39
    Q_DISABLE_COPY(CpBaseSettingView)
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    40
    Q_DECLARE_PRIVATE_D(d_ptr, CpBaseSettingView)
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    41
    Q_PRIVATE_SLOT(d_func(), void _q_softkeyClicked())
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    42
private:
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    43
    CpBaseSettingViewPrivate *d_ptr;
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    44
};
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    45
2c9d3aa5bea2 201003_2
hgs
parents:
diff changeset
    46
#endif /* CPBASESETTINGVIEW_H */