24
|
1 |
// Copyright (c) 2004-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 |
// C32 Baseband Channel Adaptor(BCA) Factory APIs implementation.
|
|
15 |
// This file contains all the API implementations of C32BcaFactory for Symbian OS.
|
|
16 |
//
|
|
17 |
//
|
|
18 |
|
|
19 |
/**
|
|
20 |
@file
|
|
21 |
@internalComponent
|
|
22 |
*/
|
|
23 |
#include "C32BcaFactory.h"
|
|
24 |
#include "C32Bca.h"
|
|
25 |
|
|
26 |
using namespace BasebandChannelAdaptation;
|
|
27 |
using namespace BasebandChannelAdaptation::C32Bca;
|
|
28 |
|
|
29 |
/** Deletes the factory */
|
|
30 |
void CC32BcaFactory::Release()
|
|
31 |
{
|
|
32 |
delete this;
|
|
33 |
}
|
|
34 |
|
|
35 |
/**
|
|
36 |
Factory method: creates a C32BCA instance and returns a pointer to it.
|
|
37 |
|
|
38 |
@return a pointer to BCA instance.
|
|
39 |
@leave if C32 BCA instance could not be constructed.
|
|
40 |
*/
|
|
41 |
MBca* CC32BcaFactory:: NewBcaL()
|
|
42 |
{
|
|
43 |
CC32Bca* instance = new(ELeave) CC32Bca;
|
|
44 |
CleanupStack::PushL(instance);
|
|
45 |
instance->ConstructL();
|
|
46 |
CleanupStack::Pop(instance);
|
|
47 |
return instance;
|
|
48 |
}
|
|
49 |
|
|
50 |
|
|
51 |
|