bluetoothengine/btui/btcpplugin/btcpuisettingitem.h
branchRCL_3
changeset 23 9386f31cc85b
parent 22 613943a21004
child 24 269724087bed
equal deleted inserted replaced
22:613943a21004 23:9386f31cc85b
     1 /*
       
     2  * Copyright (c) 2010 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 <btsettingmodel.h>
       
    23 #include <btdevicemodel.h>
       
    24 
       
    25 #include "btcpuimainview.h"
       
    26 
       
    27 class HbTranslator;
       
    28 
       
    29 class BtCpUiSettingItem : public CpSettingFormEntryItemData
       
    30 {
       
    31 	Q_OBJECT
       
    32 public:
       
    33 	explicit BtCpUiSettingItem(CpItemDataHelper &itemDataHelper);	 
       
    34 	virtual ~BtCpUiSettingItem();
       
    35 private slots:
       
    36 	void onLaunchView();
       
    37 	void handleCloseView();
       
    38 	void handleDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
       
    39 private:
       
    40 	virtual CpBaseSettingView *createSettingView() const;
       
    41 	void updateStatus();
       
    42 	void loadTranslators();
       
    43 private:
       
    44 	HbMainWindow* mMainWindow;
       
    45 	
       
    46 	BtCpUiMainView *mBtMainView;
       
    47 	
       
    48 	//Owns this model.
       
    49 	BtSettingModel *mSettingModel;
       
    50 	BtDeviceModel *mDeviceModel;
       
    51 	
       
    52 	HbView *mCpView;
       
    53 	
       
    54 	HbTranslator *mViewTranslator;
       
    55 	HbTranslator *mDialogTranslator;
       
    56 	
       
    57 };
       
    58 
       
    59 #endif //BTCPUISETTINGITEM_H