|
1 /* |
|
2 * Copyright (c) 2002 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: Get access handler and pureda data handler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include <e32std.h> |
|
22 #include "PEngTransferAdapter.h" |
|
23 #include "CPEngTransAdapFactory.h" |
|
24 |
|
25 // ============================= LOCAL FUNCTIONS =============================== |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // PEngTransferAdapter::AccessHandler() |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 EXPORT_C MPEngAccessHandler* PEngTransferAdapter::AccessHandlerL( |
|
32 const CPEngSessionSlotId& aSessionSlot ) |
|
33 { |
|
34 CPEngTransAdapFactory* factory = CPEngTransAdapFactory::InstanceLC(); |
|
35 MPEngAccessHandler* handler = factory->AccessHandlerL( aSessionSlot ); |
|
36 CleanupStack::PopAndDestroy(); // factory |
|
37 return handler; |
|
38 } |
|
39 |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // PEngTransferAdapter::PureDataHandler() |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 EXPORT_C MPEngPureDataHandler* PEngTransferAdapter::PureDataHandlerL( |
|
46 const CPEngSessionSlotId& aSessionSlot ) |
|
47 { |
|
48 CPEngTransAdapFactory* factory = CPEngTransAdapFactory::InstanceLC(); |
|
49 MPEngPureDataHandler* handler = factory->PureDataHandlerL( aSessionSlot ); |
|
50 CleanupStack::PopAndDestroy(); // factory |
|
51 return handler; |
|
52 } |
|
53 |
|
54 // End of File |