diff -r 7e2761e776bd -r 48ae3789ce00 bluetoothengine/btui/btcpplugin/btcpuisettingitem.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bluetoothengine/btui/btcpplugin/btcpuisettingitem.h Mon May 03 14:36:07 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 +#include + +#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