bluetoothengine/btui/btuimodel/btdevicedata.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 16:01:46 +0300
changeset 19 43824b19ee35
child 31 a0ea99b6fa53
permissions -rw-r--r--
Revision: 201017 Kit: 201019

/*
* 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<BtuiModelDataSource> &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 );
}