diff -r 0ba996a9b75d -r 613943a21004 bluetoothengine/btui/btcpplugin/btcpuisettingitem.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bluetoothengine/btui/btcpplugin/btcpuisettingitem.h Tue Aug 31 15:25:10 2010 +0300 @@ -0,0 +1,59 @@ +/* + * 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 +#include +#include + +#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