satengine/SatServer/Engine/src/TSatChannelIDInfo.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 23 Jun 2010 18:49:32 +0300
changeset 31 a2467631ae02
parent 0 ff3b6d0fd310
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "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:  Information class for Channel IDs.
*
*/


#include "TSatChannelIDInfo.h"
#include "SatLog.h"

// -----------------------------------------------------------------------------
// TSatChannelIdInfo::TSatChannelIdInfo
// C++ default constructor can NOT contain any code, that
// might leave.
// -----------------------------------------------------------------------------
//
TSatChannelIdInfo::TSatChannelIdInfo( TInt aChannelId, TUint8 aShort ) :
    iChannelId( aChannelId ),
    iShortChannelId( aShort ),
    iActive( EFalse )
    {
    LOG( SIMPLE, "SATENGINE: TSatChannelIdInfo::TSatChannelIdInfo \
        calling-exiting" )
    }

// -----------------------------------------------------------------------------
// TSatChannelIdInfo::ChannelId
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
TInt TSatChannelIdInfo::ChannelId() const
    {
    LOG2( SIMPLE, "SATENGINE: TSatChannelIdInfo::ChannelId \
        calling-exiting with: %i", iChannelId )
    return iChannelId;
    }

// -----------------------------------------------------------------------------
// TSatChannelIdInfo::ShortChannelId
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
TUint8 TSatChannelIdInfo::ShortChannelId() const
    {
    LOG2( SIMPLE, "SATENGINE: TSatChannelIdInfo::ShortChannelId \
        calling-exiting with: %i", iShortChannelId )
    return iShortChannelId;
    }
 
// -----------------------------------------------------------------------------
// TSatChannelIdInfo::IsReserved
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
TBool TSatChannelIdInfo::IsReserved() const
    {
    LOG2( SIMPLE, "SATENGINE: TSatChannelIdInfo::IsReserved \
        calling-exiting with: %i", iActive )
    return iActive;
    }

// -----------------------------------------------------------------------------
// TSatChannelIdInfo::ReserveChannel
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
void TSatChannelIdInfo::ReserveChannel()
    {
    LOG( SIMPLE, "SATENGINE: TSatChannelIdInfo::ReserveChannel \
        calling-exiting" )
    iActive = ETrue;
    }

// -----------------------------------------------------------------------------
// TSatChannelIdInfo::ReleaseChannel
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
void TSatChannelIdInfo::ReleaseChannel()
    {
    LOG( SIMPLE, "SATENGINE: TSatChannelIdInfo::ReleaseChannel \
        calling-exiting" )
    iActive = EFalse;
    }

// End of File