bluetoothengine/btui/btuidelegate/btabstractdelegate.cpp
changeset 31 a0ea99b6fa53
parent 29 48ae3789ce00
child 40 997690c3397a
equal deleted inserted replaced
30:df7a93ede42e 31:a0ea99b6fa53
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 #include "btabstractdelegate.h"
    19 #include "btabstractdelegate.h"
    20 #include "btuimodel.h"
    20 #include <btsettingmodel.h>
       
    21 #include <btdevicemodel.h>
    21 
    22 
    22 /*!
    23 /*!
    23     Constructor.
    24     Constructor.
    24  */
    25  */
    25 BtAbstractDelegate::BtAbstractDelegate( BtuiModel& model, QObject *parent )
    26 BtAbstractDelegate::BtAbstractDelegate( BtSettingModel *settingModel, 
    26     : QObject( parent ), mModel(model)
    27         BtDeviceModel *deviceModel, QObject *parent )
       
    28     : QObject( parent ), mSettingModel(settingModel),mDeviceModel(deviceModel)
    27 {
    29 {
    28 }
    30 }
    29 
    31 
    30 /*!
    32 /*!
    31     Destructor.
    33     Destructor.
    32  */
    34  */
    33 BtAbstractDelegate::~BtAbstractDelegate()
    35 BtAbstractDelegate::~BtAbstractDelegate()
    34 {
    36 {
    35 }
    37 }
    36 
    38 
    37 BtuiModel &BtAbstractDelegate::model()
    39 BtSettingModel *BtAbstractDelegate::getSettingModel()
    38 {
    40 {
    39     return mModel;
    41     return mSettingModel;
    40 }
    42 }
       
    43 
       
    44 BtDeviceModel *BtAbstractDelegate::getDeviceModel()
       
    45 {
       
    46     return mDeviceModel;
       
    47 }
       
    48 
       
    49 void BtAbstractDelegate::cancel()
       
    50 {
       
    51     
       
    52 }
       
    53