|
1 /* |
|
2 * Copyright (c) 2005-2009 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 _LIT(KDataRfcommSockAddr, "TRfcommSockAddr"); |
|
20 _LIT(KDataBTServiceSecurity, "TBTServiceSecurity"); |
|
21 _LIT(KDataBTSockAddr, "TBTSockAddr"); |
|
22 _LIT(KDataSockAddr, "TSockAddr"); |
|
23 /*@}*/ |
|
24 |
|
25 // --------------------- CTestBlock ----------------------------------- |
|
26 |
|
27 inline CTestBlock::CTestBlock() |
|
28 { |
|
29 } |
|
30 |
|
31 inline CTestBlock::~CTestBlock() |
|
32 { |
|
33 } |
|
34 |
|
35 inline CDataWrapper* CTestBlock::CreateDataL( const TDesC& aData ) |
|
36 { |
|
37 CDataWrapper* wrapper = NULL; |
|
38 if (aData==KDataRfcommSockAddr) |
|
39 { |
|
40 wrapper=CT_TRfcommSockAddrData::NewL(); |
|
41 } |
|
42 else if (aData==KDataBTSockAddr) |
|
43 { |
|
44 wrapper=CT_BTSockAddrData::NewL(); |
|
45 } |
|
46 else if (aData==KDataSockAddr) |
|
47 { |
|
48 wrapper=CT_SockAddrData::NewL(); |
|
49 } |
|
50 else if(aData==KDataBTServiceSecurity) |
|
51 { |
|
52 wrapper=CT_BTServiceSecurityData::NewL(); |
|
53 } |
|
54 return wrapper; |
|
55 } |
|
56 |
|
57 // --------------------- CT_BTSockAddrAPIServer ----------------------------------- |
|
58 |
|
59 inline CT_BTSockAddrAPIServer::CT_BTSockAddrAPIServer() |
|
60 { |
|
61 } |
|
62 |
|
63 inline CT_BTSockAddrAPIServer::~CT_BTSockAddrAPIServer() |
|
64 { |
|
65 } |
|
66 |
|
67 inline CTestBlockController* CT_BTSockAddrAPIServer::CreateTestBlock() |
|
68 { |
|
69 return new CTestBlock(); |
|
70 } |