bluetoothengine/btui/btcpplugin/btcpuideviceview.h
branchRCL_3
changeset 56 9386f31cc85b
parent 55 613943a21004
child 61 269724087bed
--- a/bluetoothengine/btui/btcpplugin/btcpuideviceview.h	Tue Aug 31 15:25:10 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,133 +0,0 @@
-/*
- * 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	BTCPUIDEVICEVIEW_H
-#define	BTCPUIDEVICEVIEW_H
-
-#include <cpbasesettingview.h>
-#include <hbaction.h>
-#include <hbtoolbar.h>
-#include "btcpuibaseview.h"
-
-class HbGroupBox;
-class HbLabel;
-class HbLineEdit;
-class HbPushButton;
-class HbIcon;
-class HbDocumentLoader;
-class HbDataForm;
-
-class HbDataFormModel;
-//class HbDataFormModelItem;
-class CpSettingFormItemData;
-class BtAbstractDelegate;
-class BtCpUiDeviceDetail;
-
-class BtCpUiDeviceView : public BtCpUiBaseView
-{
-    Q_OBJECT
-    
-public:
-    explicit BtCpUiDeviceView(
-            BtSettingModel &settingModel, 
-            BtDeviceModel &deviceModel,            
-            QGraphicsItem *parent = 0);
-    virtual ~BtCpUiDeviceView();
-    virtual void activateView( const QVariant& value, bool fromBackButton );
-    virtual void deactivateView();
-    virtual void setSoftkeyBack();
-        
-public slots:
-    
-    virtual void switchToPreviousView();
-    void changeOrientation( Qt::Orientation orientation );
-    void updateDeviceData();
-    void changeBtDeviceName();
-    void pairUnpair();
-    void connectDisconnect();
-    void pairDelegateCompleted(int status);
-    void unpairDelegateCompleted(int status);
-    void connectDelegateCompleted(int status);
-    void disconnectDelegateCompleted(int status);
-    void changeDevNameDelegateCompleted(int status, QVariant param);
-    void handleDeviceSetting();
-    void handleDeviceSettingsChange(bool status);
-    
-private:
-    void clearViewData();
-    void pairDevice();
-    void unpairDevice();
-    void connectDevice();
-    void disconnectDevice();
-    void setDeviceCategory(int cod, int majorRole);//cod:class of device
-    void setDeviceStatus(int majorRole);
-    void setConnectionCombobox();
-    void setTextAndVisibilityOfButtons();
-    void updateStatusVariables(int majorRole);
-    void loadDeviceDetails();
-    void unloadDeviceDetails();
-    void setPrevBtDeviceName();
-    
-private:
-    HbDocumentLoader *mLoader;
-    //HbGroupBox *mGroupBox;
-    HbLabel *mDeviceIcon;
-    HbLineEdit *mDeviceName;
-    HbLabel *mDeviceCategory;
-    HbLabel *mDeviceStatus;
-    
-    HbDataForm *mConnectionCombobox;
-    HbDataFormModel *mConnectionComboboxModel;
-    
-    HbPushButton *mPair_Unpair;
-    HbPushButton *mConnect_Disconnect;
-    HbPushButton *mDeviceSetting;
-    
-    
-    // data structures for switching between views
-    bool mEventFilterInstalled;
-    int mAutoCmdId;
-    Qt::Orientation mOrientation;
-    
-    HbMainWindow* mMainWindow;
-    BtCpUiBaseView* mMainView;
-    //BtCpUiBaseView* mDeviceView;
-    HbAction *mSoftKeyBackAction;
-    
-    QModelIndex mDeviceIndex;
-    QVariant mDeviceBdAddr;
-    
-    //true -> device is paired; false -> device is unpaired
-    bool mPairedStatus;
-    
-    //true-> device is connected; false -> device is disconnected
-    bool mConnectedStatus;
-    bool mPreviousConnectedStatus;
-    bool mTrustedStatus;
-    bool mBlockedStatus;
-
-    //true -> device is connectable
-    //e.g. not possible to connect to a phone, but possible to connect to a headset
-    bool mConnectable;
-    
-    BtAbstractDelegate* mAbstractDelegate;
-
-    BtCpUiDeviceDetail* mDeviceDetail;
-    
-};
-
-#endif