bluetoothengine/btui/btuidelegate/btdelegatevisibility.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 "btdelegatevisibility.h"
    19 #include "btdelegatevisibility.h"
    20 #include "btuimodel.h"
    20 #include <btsettingmodel.h>
       
    21 #include <btdevicemodel.h>
    21 #include <bluetoothuitrace.h>
    22 #include <bluetoothuitrace.h>
    22 #include "btqtconstants.h"
    23 #include "btqtconstants.h"
    23 #include <btengsettings.h>
    24 #include <btengsettings.h>
    24 
    25 
    25 const int MAX_TEMPORARY_VISIBILITY = 60;  // minutes, this value comes from the UI spec
    26 const int MAX_TEMPORARY_VISIBILITY = 60;  // minutes, this value comes from the UI spec
    26 
    27 
    27 /*!
    28 /*!
    28     Constructor.
    29     Constructor.
    29  */
    30  */
    30 BtDelegateVisibility::BtDelegateVisibility( BtuiModel& model, QObject *parent )
    31 BtDelegateVisibility::BtDelegateVisibility(
    31     : BtAbstractDelegate( model, parent )
    32         QObject *parent )
       
    33     : BtAbstractDelegate( NULL, NULL, parent )
    32 {
    34 {
    33     TRAP_IGNORE( mBtengSettings = CBTEngSettings::NewL(this) );
    35     TRAP_IGNORE( mBtengSettings = CBTEngSettings::NewL(this) );
    34     Q_CHECK_PTR( mBtengSettings );
    36     Q_CHECK_PTR( mBtengSettings );
    35     mOperationOngoing = false;
    37     mOperationOngoing = false;
    36 }
    38 }