omadm/omadmextensions/adapters/connmoadapter/src/Luid.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 07 Jan 2010 12:39:15 +0200
changeset 1 4490afcb47b1
permissions -rw-r--r--
Revision: 200951 Kit: 201001

/*
 * ==============================================================================
 * Copyright (c) 2009 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:
 * 
 * ==============================================================================
 */

#include "Luid.h"
#include "OstTraceDefinitions.h"
#ifdef OST_TRACE_COMPILER_IN_USE
#include "LuidTraces.h"
#endif


// ======== LOCAL FUNCTIONS =========

// ======== MEMBER FUNCTIONS ========

//------------------------------------------------------------------------------
// TLuid::TLuid()
//------------------------------------------------------------------------------
TLuid::TLuid() 
    {

    }

//------------------------------------------------------------------------------
// TLuid::TLuid()
//------------------------------------------------------------------------------
TLuid::TLuid( const TDesC8& aName, const TUint32 aCmId ) 
    {
    OstTraceExt2( TRACE_NORMAL, TLUID_TLUID, "ENTRY: TLuid::TLuid;aName=%s;aCmId=%u", aName, aCmId );
    
    iName = aName;
    iCmId = aCmId;
    }

//------------------------------------------------------------------------------
// TLuid::Equals()
//------------------------------------------------------------------------------
TBool TLuid::Equals( TUint32 aId ) const
    {
    OstTraceFunctionEntry1( TLUID_EQUALS_ENTRY, this );
    if ( aId == iCmId)
        {
        OstTraceFunctionExitExt( TLUID_EQUALS_EXIT, this, ETrue );
        return ETrue;
        }
    else
        {
        OstTraceFunctionExitExt( DUP1_TLUID_EQUALS_EXIT, this, EFalse );
        return EFalse;
        }
    }

//------------------------------------------------------------------------------
// TLuid::GetCmId()
//------------------------------------------------------------------------------
TUint32 TLuid::GetCmId()
    {
    OstTrace1( TRACE_NORMAL, TLUID_GETCMID, "TLuid::GetCmId;iCmId=%u", iCmId );
    
    return iCmId;
    }

// ======== GLOBAL FUNCTIONS ========