diff -r 826cea16efd9 -r 13a33d82ad98 videoscheduler/SchedulerClient/src/RCseSchedulerServiceBase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/videoscheduler/SchedulerClient/src/RCseSchedulerServiceBase.cpp Wed Sep 01 12:20:37 2010 +0100 @@ -0,0 +1,115 @@ +/* +* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Implementation of CseScheduler client's ServiceBase* +*/ + + + + + +// INCLUDE FILES +#include // Client common methods (open, close etc) +#include // Client common methods (server start up etc) +#include "CseDebug.h" // Debug macros +#include // Common defines for client and server + +// EXTERNAL DATA STRUCTURES +// None. + +// EXTERNAL FUNCTION PROTOTYPES +// None. + +// CONSTANTS +// None. + +// MACROS +// None. + +// LOCAL CONSTANTS AND MACROS +// None. + +// MODULE DATA STRUCTURES +// None. + +// LOCAL FUNCTION PROTOTYPES +// None. + +// FORWARD DECLARATIONS +// None. + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// RCseSchedulerServiceBase::RCseSchedulerServiceBase +// +// ----------------------------------------------------------------------------- +// +RCseSchedulerServiceBase::RCseSchedulerServiceBase() + { + CSELOGSTRING_HIGH_LEVEL(">>>RCseSchedulerServiceBase::RCseSchedulerServiceBase"); + CSELOGSTRING_HIGH_LEVEL("<<>>~RCseSchedulerServiceBase::~RCseSchedulerServiceBase"); + CSELOGSTRING_HIGH_LEVEL("<<<~RCseSchedulerServiceBase::~RCseSchedulerServiceBase"); + } + +// ----------------------------------------------------------------------------- +// RCseSchedulerServiceBase::Open +// +// ----------------------------------------------------------------------------- +// +TInt RCseSchedulerServiceBase::Open( RCseSchedulerClient& aClient ) + { + CSELOGSTRING_HIGH_LEVEL(">>>RCseSchedulerServiceBase::Open"); + __ASSERT_ALWAYS( aClient.Handle(), PanicClient( KErrBadHandle ) ); + iClient = &aClient; + + TIpcArgs args( TIpcArgs::ENothing ); + CSELOGSTRING_HIGH_LEVEL("<<>>RCseSchedulerServiceBase::Close"); + RSubSessionBase::CloseSubSession( ECseServCloseSubSession ); + CSELOGSTRING_HIGH_LEVEL("<<>>RCseSchedulerServiceBase::PanicClient"); + _LIT( KCseRTPClientFault, "CseRTPApi Client Fault" ); + User::Panic( KCseRTPClientFault, aFault ); + } + +// End of File