diff -r 7e2761e776bd -r 48ae3789ce00 bluetoothengine/btui/btuimodel/btdevicedata.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bluetoothengine/btui/btuimodel/btdevicedata.cpp Mon May 03 14:36:07 2010 +0300 @@ -0,0 +1,76 @@ +/* +* 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: +* +*/ + + +#include "btdevicedata.h" + +/*! + Constructor. + */ +BtDeviceData::BtDeviceData( + const QSharedPointer &data, + QObject *parent) + : QObject( parent ), mData( data ), mBtengConnMan(0) +{ + TRAP_IGNORE({ + mBtengConnMan = CBTEngConnMan::NewL( this ); + mDeviceRepo = CBtDevRepository::NewL( ); + }); + + Q_CHECK_PTR( mBtengConnMan ); + Q_CHECK_PTR( mDeviceRepo ); +} + +/*! + Destructor. + */ +BtDeviceData::~BtDeviceData() +{ + delete mBtengConnMan; + delete mDeviceRepo; +} + +void BtDeviceData::ConnectComplete( TBTDevAddr& addr, TInt err, + RBTDevAddrArray* conflicts ) +{ + Q_UNUSED( addr ); + Q_UNUSED( err ); + Q_UNUSED( conflicts ); +} + +void BtDeviceData::DisconnectComplete( TBTDevAddr& addr, TInt err ) +{ + Q_UNUSED( addr ); + Q_UNUSED( err ); +} + +void BtDeviceData::BtDeviceDeleted( const TBTDevAddr& addr ) +{ + Q_UNUSED( addr ); +} + +void BtDeviceData::BtDeviceAdded( const CBTDevice& device ) +{ + Q_UNUSED( device ); +} + +void BtDeviceData::BtDeviceChanged( const CBTDevice& device, TUint similarity ) +{ + Q_UNUSED( device ); + Q_UNUSED( similarity ); +} +