bluetoothengine/btui/btcpplugin/btcpuisettingitem.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:25:10 +0300
branchRCL_3
changeset 22 613943a21004
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0""
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
 *
 * Description:  
 *   
 */

#ifndef BTCPUISETTINGITEM_H
#define BTCPUISETTINGITEM_H

#include <cpsettingformentryitemdata.h>
#include <btsettingmodel.h>
#include <btdevicemodel.h>

#include "btcpuimainview.h"

class HbTranslator;

class BtCpUiSettingItem : public CpSettingFormEntryItemData
{
	Q_OBJECT
public:
	explicit BtCpUiSettingItem(CpItemDataHelper &itemDataHelper);	 
	virtual ~BtCpUiSettingItem();
private slots:
	void onLaunchView();
	void handleCloseView();
	void handleDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
private:
	virtual CpBaseSettingView *createSettingView() const;
	void updateStatus();
	void loadTranslators();
private:
	HbMainWindow* mMainWindow;
	
	BtCpUiMainView *mBtMainView;
	
	//Owns this model.
	BtSettingModel *mSettingModel;
	BtDeviceModel *mDeviceModel;
	
	HbView *mCpView;
	
	HbTranslator *mViewTranslator;
	HbTranslator *mDialogTranslator;
	
};

#endif //BTCPUISETTINGITEM_H