videoscheduler/SchedulerClient/src/RCseSchedulerServiceBase.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 16:02:30 +0300
changeset 16 ae43a6765dd5
parent 15 6c92a12abac0
permissions -rw-r--r--
Revision: 201009 Kit: 201015

/*
* 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 <ipvideo/RCseSchedulerServiceBase.h>       // Client common methods (open, close etc)
#include <ipvideo/RCseSchedulerClient.h>            // Client common methods (server start up etc)
#include "CseDebug.h"                       // Debug macros
#include <ipvideo/CseSchedulerClientServerCommon.h> // 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");
    }

// -----------------------------------------------------------------------------
// RCseSchedulerServiceBase::~RCseSchedulerServiceBase
//
// -----------------------------------------------------------------------------
//    
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::Open");
    return CreateSubSession( aClient, ECseServCreateSubSession, args );  
    }

// -----------------------------------------------------------------------------
// RCseSchedulerServiceBase::Close
// 
// -----------------------------------------------------------------------------
//
void RCseSchedulerServiceBase::Close()
    {
    CSELOGSTRING_HIGH_LEVEL(">>>RCseSchedulerServiceBase::Close");
    RSubSessionBase::CloseSubSession( ECseServCloseSubSession );
    CSELOGSTRING_HIGH_LEVEL("<<<RCseSchedulerServiceBase::Close");
    }

// -----------------------------------------------------------------------------
// RCseSchedulerServiceBase::PanicClient
// 
// -----------------------------------------------------------------------------
//
void RCseSchedulerServiceBase::PanicClient( TInt aFault ) const
    {
    CSELOGSTRING_HIGH_LEVEL(">>>RCseSchedulerServiceBase::PanicClient");
    _LIT( KCseRTPClientFault, "CseRTPApi Client Fault" );
    User::Panic( KCseRTPClientFault, aFault );
    }

// End of File