bluetoothengine/btui/btcpplugin/btcpuisettingitem.h
changeset 29 48ae3789ce00
child 31 a0ea99b6fa53
equal deleted inserted replaced
28:7e2761e776bd 29:48ae3789ce00
       
     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:  
       
    15  *   
       
    16  */
       
    17 
       
    18 #ifndef BTCPUISETTINGITEM_H
       
    19 #define BTCPUISETTINGITEM_H
       
    20 
       
    21 #include <cpsettingformentryitemdata.h>
       
    22 #include <btuimodel.h>
       
    23 
       
    24 #include "btcpuimainview.h"
       
    25 
       
    26 class BtCpUiSettingItem : public CpSettingFormEntryItemData
       
    27 {
       
    28 	Q_OBJECT
       
    29 public:
       
    30 	explicit BtCpUiSettingItem(CpItemDataHelper &itemDataHelper,
       
    31 		const QString &text = QString(),
       
    32 		const QString &description = QString(),
       
    33 		const HbIcon &icon = HbIcon(),
       
    34 		const HbDataFormModelItem *parent = 0);	 
       
    35 	virtual ~BtCpUiSettingItem();
       
    36 private slots:
       
    37 	void onLaunchView();
       
    38 	void handleCloseView();
       
    39 private:
       
    40 	virtual CpBaseSettingView *createSettingView() const;
       
    41 	
       
    42 private:
       
    43 	HbMainWindow* mMainWindow;
       
    44 	
       
    45 	BtCpUiMainView *mBtMainView;
       
    46 	
       
    47 	//Owns this model.
       
    48 	BtuiModel *mModel;
       
    49 	
       
    50 	HbView *mCpView;
       
    51 	
       
    52 };
       
    53 
       
    54 #endif //BTCPUISETTINGITEM_H