sl@0: /* sl@0: * Copyright (c) 2002-2006 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: Interface definition for error concealment interface. sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: // INCLUDE FILES sl@0: #include "ErrorConcealmentIntfcProxy.h" sl@0: #include "ErrorConcealmentIntfc.h" sl@0: #include sl@0: #include sl@0: sl@0: sl@0: // EXTERNAL DATA STRUCTURES sl@0: sl@0: // EXTERNAL FUNCTION PROTOTYPES sl@0: sl@0: // CONSTANTS sl@0: sl@0: // MACROS sl@0: sl@0: // LOCAL CONSTANTS AND MACROS sl@0: sl@0: // MODULE DATA STRUCTURES sl@0: sl@0: // LOCAL FUNCTION PROTOTYPES sl@0: sl@0: // FORWARD DECLARATIONS sl@0: sl@0: // ============================= LOCAL FUNCTIONS =============================== sl@0: sl@0: // ============================ MEMBER FUNCTIONS =============================== sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // CErrorConcealmentIntfc::NewL sl@0: // Creates the custom interface. sl@0: // Calls the custom interface method on the devsound passed in. sl@0: // Devsound will return the handle to the custom interface proxy. sl@0: // (other items were commented in a header). sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: EXPORT_C CErrorConcealmentIntfc* sl@0: CErrorConcealmentIntfc::NewL(CMMFDevSound& aDevSound) sl@0: { sl@0: CErrorConcealmentIntfcProxy* errorConcealmentIntfcProxy; sl@0: errorConcealmentIntfcProxy = sl@0: (CErrorConcealmentIntfcProxy*)aDevSound.CustomInterface( sl@0: KUidErrorConcealmentIntfc); sl@0: if (!errorConcealmentIntfcProxy) sl@0: { sl@0: User::Leave(KErrNotFound); sl@0: } sl@0: return errorConcealmentIntfcProxy; sl@0: } sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // CErrorConcealmentIntfc::NewL sl@0: // Creates the custom interface. sl@0: // Calls the custom interface method on the CMdaAudioOutputStream passed in. sl@0: // The CMdaAudioOutputStream utility will return the handle to the custom sl@0: // interface proxy. sl@0: // (other items were commented in a header). sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: EXPORT_C CErrorConcealmentIntfc* sl@0: CErrorConcealmentIntfc::NewL(CMdaAudioOutputStream& aUtility) sl@0: { sl@0: CErrorConcealmentIntfcProxy* errorConcealmentIntfcProxy; sl@0: errorConcealmentIntfcProxy = sl@0: (CErrorConcealmentIntfcProxy*)aUtility.CustomInterface( sl@0: KUidErrorConcealmentIntfc); sl@0: if (!errorConcealmentIntfcProxy) sl@0: { sl@0: User::Leave(KErrNotFound); sl@0: } sl@0: return errorConcealmentIntfcProxy; sl@0: } sl@0: sl@0: // ========================== OTHER EXPORTED FUNCTIONS ========================= sl@0: sl@0: // End of File