sl@0: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: sl@0: sl@0: #include "cdevgencontrol.h" sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: sl@0: // ======== LOCAL FUNCTIONS ======== sl@0: sl@0: // ======== MEMBER FUNCTIONS ======== sl@0: sl@0: // --------------------------------------------------------------------------- sl@0: // Default constructor sl@0: // --------------------------------------------------------------------------- sl@0: // sl@0: CDevGenControl::CDevGenControl() sl@0: { sl@0: TRACE_CREATE(); sl@0: DP_CONTEXT(CDevGenControl::CDevGenControl *CD1*, CtxDevSound, DPLOCAL); sl@0: DP_IN(); sl@0: sl@0: DP_OUT(); sl@0: } sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // Symbian 2nd phase constructor sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: void CDevGenControl::ConstructL(CDevAudio* aDevAudio, MDevSoundAdaptationObserver& aDevSoundObserver) sl@0: { sl@0: DP_CONTEXT(CDevGenControl::ConstructL *CD1*, CtxDevSound, DPLOCAL); sl@0: DP_IN(); sl@0: CDevAudioControl::ConstructL(aDevAudio, aDevSoundObserver); sl@0: DP_OUT(); sl@0: } sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // Symbian constructor sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: CDevGenControl* CDevGenControl::NewL(CDevAudio* aDevAudio, MDevSoundAdaptationObserver& aDevSoundObserver) sl@0: { sl@0: DP_STATIC_CONTEXT(CDevGenControl::NewL *CD0*, CtxDevSound, DPLOCAL); sl@0: DP_IN(); sl@0: CDevGenControl* self = new (ELeave) CDevGenControl(); sl@0: CleanupStack::PushL(self); sl@0: self->ConstructL(aDevAudio, aDevSoundObserver); sl@0: CleanupStack::Pop(self); sl@0: DP0_RET(self, "0x%x"); sl@0: } sl@0: sl@0: // --------------------------------------------------------------------------- sl@0: // Destructor sl@0: // --------------------------------------------------------------------------- sl@0: // sl@0: CDevGenControl::~CDevGenControl() sl@0: { sl@0: DP_CONTEXT(CDevGenControl::~CDevGenControl *CD1*, CtxDevSound, DPLOCAL); sl@0: DP_IN(); sl@0: DP_OUT(); sl@0: } sl@0: sl@0: // End of file