|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include <e32svr.h> |
|
20 #include <hwrm/hwrmfmtx.h> |
|
21 #include "HWRMFmTxImpl.h" |
|
22 #include "HWRMtrace.h" |
|
23 |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS =============================== |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // CHWRMFmTx::NewL |
|
29 // Two-phased constructor for creating a FM Tx client with callbacks. |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 EXPORT_C CHWRMFmTx* CHWRMFmTx::NewL(MHWRMFmTxObserver* aCallback) |
|
33 { |
|
34 CHWRMFmTx* impl = NewLC(aCallback); |
|
35 |
|
36 CleanupStack::Pop( impl ); |
|
37 |
|
38 return impl; |
|
39 } |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // CHWRMFmTx::NewLC |
|
43 // Two-phased constructor for creating a FM Tx client with callbacks. |
|
44 // Leaves instance to CleanupStack. |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 EXPORT_C CHWRMFmTx* CHWRMFmTx::NewLC(MHWRMFmTxObserver* aCallback) |
|
48 { |
|
49 COMPONENT_TRACE2(_L( "HWRM FmTx - CHWRMFmTx::NewLC(0x%x)" ), aCallback ); |
|
50 |
|
51 CHWRMFmTxImpl* impl = new( ELeave ) CHWRMFmTxImpl(); |
|
52 |
|
53 CleanupStack::PushL( impl ); |
|
54 impl->ConstructL(aCallback); |
|
55 |
|
56 COMPONENT_TRACE2( _L( "HWRM FM Tx Client - CHWRMFmTx::NewLC - return 0x%x" ), impl ); |
|
57 |
|
58 return impl; |
|
59 } |
|
60 |
|
61 |
|
62 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
63 |
|
64 // End of File |