omadmadapters/connmoadapter/src/Luid.cpp
author hgs
Tue, 13 Jul 2010 03:48:30 +0530
changeset 45 0f9fc722d255
parent 44 deviceupdatesui/omadmadapters/connmoadapter/src/Luid.cpp@137912d1a556
permissions -rw-r--r--
201021_01
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
 * ==============================================================================
hgs
parents:
diff changeset
     3
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
hgs
parents:
diff changeset
     4
 * All rights reserved.
hgs
parents:
diff changeset
     5
 * This component and the accompanying materials are made available
hgs
parents:
diff changeset
     6
 * under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     7
 * which accompanies this distribution, and is available
hgs
parents:
diff changeset
     8
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     9
 *
hgs
parents:
diff changeset
    10
 * Initial Contributors:
hgs
parents:
diff changeset
    11
 * Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    12
 *
hgs
parents:
diff changeset
    13
 * Contributors:
hgs
parents:
diff changeset
    14
 * 
hgs
parents:
diff changeset
    15
 * Description:
hgs
parents:
diff changeset
    16
 * 
hgs
parents:
diff changeset
    17
 * ==============================================================================
hgs
parents:
diff changeset
    18
 */
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
#include "Luid.h"
hgs
parents:
diff changeset
    21
#include "OstTraceDefinitions.h"
hgs
parents:
diff changeset
    22
#ifdef OST_TRACE_COMPILER_IN_USE
hgs
parents:
diff changeset
    23
#include "LuidTraces.h"
hgs
parents:
diff changeset
    24
#endif
hgs
parents:
diff changeset
    25
hgs
parents:
diff changeset
    26
hgs
parents:
diff changeset
    27
// ======== LOCAL FUNCTIONS =========
hgs
parents:
diff changeset
    28
hgs
parents:
diff changeset
    29
// ======== MEMBER FUNCTIONS ========
hgs
parents:
diff changeset
    30
hgs
parents:
diff changeset
    31
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    32
// TLuid::TLuid()
hgs
parents:
diff changeset
    33
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    34
TLuid::TLuid() 
hgs
parents:
diff changeset
    35
    {
hgs
parents:
diff changeset
    36
hgs
parents:
diff changeset
    37
    }
hgs
parents:
diff changeset
    38
hgs
parents:
diff changeset
    39
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    40
// TLuid::TLuid()
hgs
parents:
diff changeset
    41
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    42
TLuid::TLuid( const TDesC8& aName, const TUint32 aCmId ) 
hgs
parents:
diff changeset
    43
    {
hgs
parents:
diff changeset
    44
    OstTraceExt2( TRACE_NORMAL, TLUID_TLUID, "ENTRY: TLuid::TLuid;aName=%s;aCmId=%u", aName, aCmId );
hgs
parents:
diff changeset
    45
    
hgs
parents:
diff changeset
    46
    iName = aName;
hgs
parents:
diff changeset
    47
    iCmId = aCmId;
hgs
parents:
diff changeset
    48
    }
hgs
parents:
diff changeset
    49
hgs
parents:
diff changeset
    50
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    51
// TLuid::Equals()
hgs
parents:
diff changeset
    52
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    53
TBool TLuid::Equals( TUint32 aId ) const
hgs
parents:
diff changeset
    54
    {
hgs
parents:
diff changeset
    55
    OstTraceFunctionEntry1( TLUID_EQUALS_ENTRY, this );
hgs
parents:
diff changeset
    56
    if ( aId == iCmId)
hgs
parents:
diff changeset
    57
        {
hgs
parents:
diff changeset
    58
        OstTraceFunctionExitExt( TLUID_EQUALS_EXIT, this, ETrue );
hgs
parents:
diff changeset
    59
        return ETrue;
hgs
parents:
diff changeset
    60
        }
hgs
parents:
diff changeset
    61
    else
hgs
parents:
diff changeset
    62
        {
hgs
parents:
diff changeset
    63
        OstTraceFunctionExitExt( DUP1_TLUID_EQUALS_EXIT, this, EFalse );
hgs
parents:
diff changeset
    64
        return EFalse;
hgs
parents:
diff changeset
    65
        }
hgs
parents:
diff changeset
    66
    }
hgs
parents:
diff changeset
    67
hgs
parents:
diff changeset
    68
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    69
// TLuid::GetCmId()
hgs
parents:
diff changeset
    70
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    71
TUint32 TLuid::GetCmId()
hgs
parents:
diff changeset
    72
    {
hgs
parents:
diff changeset
    73
    OstTrace1( TRACE_NORMAL, TLUID_GETCMID, "TLuid::GetCmId;iCmId=%u", iCmId );
hgs
parents:
diff changeset
    74
    
hgs
parents:
diff changeset
    75
    return iCmId;
hgs
parents:
diff changeset
    76
    }
hgs
parents:
diff changeset
    77
hgs
parents:
diff changeset
    78
// ======== GLOBAL FUNCTIONS ========