bluetoothengine/btui/btcpplugin/btcpuibaseview.h
changeset 41 0b2439c3e397
parent 40 997690c3397a
child 63 bcf742120177
equal deleted inserted replaced
40:997690c3397a 41:0b2439c3e397
    34     Q_OBJECT
    34     Q_OBJECT
    35 
    35 
    36 public:
    36 public:
    37     
    37     
    38     virtual ~BtCpUiBaseView();
    38     virtual ~BtCpUiBaseView();
    39     virtual void activateView( const QVariant& value, int cmdId ) = 0;
    39     virtual void activateView( const QVariant& value, bool fromBackButton ) = 0;
    40     virtual void deactivateView() = 0;    
    40     virtual void deactivateView() = 0;    
    41     virtual void switchToPreviousView() = 0;
    41     virtual void switchToPreviousView() = 0;
    42     
    42     
    43 signals:
    43 signals:
    44 
    44 
    45 protected:
    45 protected:
       
    46     explicit BtCpUiBaseView(QGraphicsItem *parent = 0);
       
    47     
    46     explicit BtCpUiBaseView( 
    48     explicit BtCpUiBaseView( 
    47             BtSettingModel &settingModel, 
    49             BtSettingModel &settingModel, 
    48             BtDeviceModel &deviceModel, 
    50             BtDeviceModel &deviceModel, 
    49             QGraphicsItem *parent = 0);
    51             QGraphicsItem *parent = 0);
    50     
    52     
    53     BtSettingModel &getSettingModel();
    55     BtSettingModel &getSettingModel();
    54     BtDeviceModel &getDeviceModel();
    56     BtDeviceModel &getDeviceModel();
    55     
    57     
    56 protected:
    58 protected:
    57     
    59     
    58     // not owned
    60     // owned
    59     BtSettingModel *mSettingModel;
    61     BtSettingModel *mSettingModel;
    60     
    62     
    61     // not owned
    63     // owned
    62     BtDeviceModel *mDeviceModel;
    64     BtDeviceModel *mDeviceModel;
    63     
    65     
    64     QGraphicsItem *mParent;
    66     QGraphicsItem *mParent;
    65     int mPreviousViewId;
    67     int mPreviousViewId;
    66     
    68