bluetoothengine/btui/btcpplugin/btcpuisettingitem.h
changeset 19 43824b19ee35
child 31 a0ea99b6fa53
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bluetoothengine/btui/btcpplugin/btcpuisettingitem.h	Fri May 14 16:01:46 2010 +0300
@@ -0,0 +1,54 @@
+/*
+ * Copyright (c) 2009 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 <btuimodel.h>
+
+#include "btcpuimainview.h"
+
+class BtCpUiSettingItem : public CpSettingFormEntryItemData
+{
+	Q_OBJECT
+public:
+	explicit BtCpUiSettingItem(CpItemDataHelper &itemDataHelper,
+		const QString &text = QString(),
+		const QString &description = QString(),
+		const HbIcon &icon = HbIcon(),
+		const HbDataFormModelItem *parent = 0);	 
+	virtual ~BtCpUiSettingItem();
+private slots:
+	void onLaunchView();
+	void handleCloseView();
+private:
+	virtual CpBaseSettingView *createSettingView() const;
+	
+private:
+	HbMainWindow* mMainWindow;
+	
+	BtCpUiMainView *mBtMainView;
+	
+	//Owns this model.
+	BtuiModel *mModel;
+	
+	HbView *mCpView;
+	
+};
+
+#endif //BTCPUISETTINGITEM_H