os/mm/mmlibs/mmfw/src/Client/generic/MclUtil.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 1997-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 //
    15 
    16 // Public Media Server includes
    17 #include <mda/client/utility.h>
    18 
    19 #include "CompatAids.h"
    20 
    21 #if defined(__PANIC_COMPAT_IS_ACTIVE)
    22 _LIT(KMdaServerName, "CMdaServer");	
    23 #endif // __PANIC_COMPAT_IS_ACTIVE			
    24 
    25 // --------------------------------------------------------------
    26 // CMdaServer member functions
    27 // Public
    28 
    29 /**
    30 Connects to and starts the media server.
    31 
    32 @return The connected session with the media server.
    33 */
    34 EXPORT_C CMdaServer* CMdaServer::NewL()
    35 	{
    36 	return new(ELeave) CMdaServer();
    37 	}
    38 
    39 /**
    40 Destructor. Closes the session with the media server.
    41 
    42 @panic  EMdaUtilServerListenerListNotEmpty 
    43         Not all event listeners that were added to the server have been removed.
    44 @panic  EMdaClientBaseSessionHasOpenObjects 
    45         The client has resources still open in the server.
    46 */
    47 EXPORT_C CMdaServer::~CMdaServer()
    48 	{
    49 	}
    50 
    51 /**
    52 Adds an object event listener, so that events can be passed to it.
    53 
    54 @param  aListener
    55         The object event listener to add to the list.
    56 */
    57 EXPORT_C void CMdaServer::AddListenerL(MMdaObjectEventListener& /*aListener*/)
    58 	{
    59 	__PANIC_COMPAT(User::Panic(KMdaServerName, KDummyMdaServerNotImplemented));
    60 	User::Leave(KErrNotSupported);
    61 	}
    62 
    63 /**
    64 Removes an object event listener so that events can no longer be passed to it. 
    65 The specified listener must be in the list, or a panic occurs.
    66 
    67 @param  aListener
    68         The object event listener to remove from the list.
    69 */
    70 EXPORT_C void CMdaServer::RemoveListener(MMdaObjectEventListener& /*aListener*/)
    71 	{
    72 	__PANIC_COMPAT(User::Panic(KMdaServerName, KDummyMdaServerNotImplemented));
    73 	}