First public contribution.
1 // Copyright (c) 2005-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #include "mmfcontrollerheap.h"
19 CMMFControllerHeap* CMMFControllerHeap::NewL()
21 CMMFControllerHeap* self = new(ELeave) CMMFControllerHeap;
22 CleanupStack::PushL(self);
28 void CMMFControllerHeap::ConstructL()
30 TChunkHeapCreateInfo chunkSettings (KMinHeapSize, KMMFControllerSharedHeapMaxSize);
31 chunkSettings.SetPaging(TChunkHeapCreateInfo::EUnpaged);
32 iHeap = User::ChunkHeap(chunkSettings);
35 User::Leave(KErrNoMemory);
41 RHeap* CMMFControllerHeap::RegisterHeap()
47 TInt CMMFControllerHeap::ReleaseHeap()
52 CMMFControllerHeap::~CMMFControllerHeap()