29
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#include "btdevicedata.h"
|
|
20 |
|
|
21 |
/*!
|
|
22 |
Constructor.
|
|
23 |
*/
|
|
24 |
BtDeviceData::BtDeviceData(
|
|
25 |
const QSharedPointer<BtuiModelDataSource> &data,
|
|
26 |
QObject *parent)
|
|
27 |
: QObject( parent ), mData( data ), mBtengConnMan(0)
|
|
28 |
{
|
|
29 |
TRAP_IGNORE({
|
|
30 |
mBtengConnMan = CBTEngConnMan::NewL( this );
|
|
31 |
mDeviceRepo = CBtDevRepository::NewL( );
|
|
32 |
});
|
|
33 |
|
|
34 |
Q_CHECK_PTR( mBtengConnMan );
|
|
35 |
Q_CHECK_PTR( mDeviceRepo );
|
|
36 |
}
|
|
37 |
|
|
38 |
/*!
|
|
39 |
Destructor.
|
|
40 |
*/
|
|
41 |
BtDeviceData::~BtDeviceData()
|
|
42 |
{
|
|
43 |
delete mBtengConnMan;
|
|
44 |
delete mDeviceRepo;
|
|
45 |
}
|
|
46 |
|
|
47 |
void BtDeviceData::ConnectComplete( TBTDevAddr& addr, TInt err,
|
|
48 |
RBTDevAddrArray* conflicts )
|
|
49 |
{
|
|
50 |
Q_UNUSED( addr );
|
|
51 |
Q_UNUSED( err );
|
|
52 |
Q_UNUSED( conflicts );
|
|
53 |
}
|
|
54 |
|
|
55 |
void BtDeviceData::DisconnectComplete( TBTDevAddr& addr, TInt err )
|
|
56 |
{
|
|
57 |
Q_UNUSED( addr );
|
|
58 |
Q_UNUSED( err );
|
|
59 |
}
|
|
60 |
|
|
61 |
void BtDeviceData::BtDeviceDeleted( const TBTDevAddr& addr )
|
|
62 |
{
|
|
63 |
Q_UNUSED( addr );
|
|
64 |
}
|
|
65 |
|
|
66 |
void BtDeviceData::BtDeviceAdded( const CBTDevice& device )
|
|
67 |
{
|
|
68 |
Q_UNUSED( device );
|
|
69 |
}
|
|
70 |
|
|
71 |
void BtDeviceData::BtDeviceChanged( const CBTDevice& device, TUint similarity )
|
|
72 |
{
|
|
73 |
Q_UNUSED( device );
|
|
74 |
Q_UNUSED( similarity );
|
|
75 |
}
|
|
76 |
|