33
|
1 |
/*
|
|
2 |
* Copyright (c) 2002-2007 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: Container object for the PSetNotes objects.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
//INCLUDES
|
|
20 |
#include <psuicontainer.h>
|
|
21 |
|
|
22 |
#include "psuiresourceloader.h"
|
|
23 |
|
|
24 |
// ---------------------------------------------------------------------------
|
|
25 |
// Symbian OS two-phased constructor.
|
|
26 |
// ---------------------------------------------------------------------------
|
|
27 |
EXPORT_C CPsuiContainer* CPsuiContainer::NewL()
|
|
28 |
{
|
|
29 |
CPsuiContainer* self = new ( ELeave ) CPsuiContainer;
|
|
30 |
CleanupStack::PushL( self );
|
|
31 |
self->ConstructL();
|
|
32 |
CleanupStack::Pop( self );
|
|
33 |
return self;
|
|
34 |
}
|
|
35 |
|
|
36 |
// ---------------------------------------------------------------------------
|
|
37 |
// Symbian OS 2nd phase constructor.
|
|
38 |
// ---------------------------------------------------------------------------
|
|
39 |
void CPsuiContainer::ConstructL()
|
|
40 |
{
|
|
41 |
iAppEngineResourceLoader = CPsuiResourceLoader::NewL();
|
|
42 |
}
|
|
43 |
|
|
44 |
// ---------------------------------------------------------------------------
|
|
45 |
// Destructor.
|
|
46 |
// ---------------------------------------------------------------------------
|
|
47 |
CPsuiContainer::~CPsuiContainer()
|
|
48 |
{
|
|
49 |
delete iAppEngineResourceLoader;
|
|
50 |
}
|
|
51 |
|
|
52 |
// ---------------------------------------------------------------------------
|
|
53 |
// Creates cli observer. Ownership of the class is transferred.
|
|
54 |
// ---------------------------------------------------------------------------
|
|
55 |
EXPORT_C CPsuiCliObserver* CPsuiContainer::CreateCliObsL()
|
|
56 |
{
|
|
57 |
return CPsuiCliObserver::NewL( *this );
|
|
58 |
}
|
|
59 |
|
|
60 |
// ---------------------------------------------------------------------------
|
|
61 |
// Creates call waiting observer. Ownership of the class is transferred.
|
|
62 |
// ---------------------------------------------------------------------------
|
|
63 |
EXPORT_C CPsuiWaitingObs* CPsuiContainer::CreateCWObsL()
|
|
64 |
{
|
|
65 |
return CPsuiWaitingObs::NewL( *this );
|
|
66 |
}
|
|
67 |
|
|
68 |
// ---------------------------------------------------------------------------
|
|
69 |
// Creates call forward observer. Ownership of the class is transferred.
|
|
70 |
// ---------------------------------------------------------------------------
|
|
71 |
EXPORT_C CPsuiDivertObs* CPsuiContainer::CreateCFObsL()
|
|
72 |
{
|
|
73 |
return CPsuiDivertObs::NewL( *this );
|
|
74 |
}
|
|
75 |
|
|
76 |
// ---------------------------------------------------------------------------
|
|
77 |
// Creates call barring observer. Ownership of the class is transferred.
|
|
78 |
// ---------------------------------------------------------------------------
|
|
79 |
EXPORT_C CPsuiBarringObs* CPsuiContainer::CreateCBObsL()
|
|
80 |
{
|
|
81 |
return CPsuiBarringObs::NewL( *this );
|
|
82 |
}
|
|
83 |
|
|
84 |
// End of file
|