analyzetool/storageserver/server/src/atdynprocessinfo.cpp
branchRCL_3
changeset 59 8ad140f3dd41
parent 19 da2cedce4920
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Definitions for the class CATDynProcessInfo
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include    "atdynprocessinfo.h"
       
    21 
       
    22 // ============================ MEMBER FUNCTIONS ===============================
       
    23 
       
    24 
       
    25 // -----------------------------------------------------------------------------
       
    26 // CATDynProcessInfo::CATDynProcessInfo
       
    27 // -----------------------------------------------------------------------------
       
    28 //  
       
    29 CATDynProcessInfo::CATDynProcessInfo() :
       
    30     iProcessId( KNullProcessId ),
       
    31     iSessionObject( NULL )
       
    32     {
       
    33     }
       
    34 
       
    35 // -----------------------------------------------------------------------------
       
    36 // CATDynProcessInfo::CATDynProcessInfo
       
    37 // -----------------------------------------------------------------------------
       
    38 //  
       
    39 CATDynProcessInfo::CATDynProcessInfo( TUint aProcessId,
       
    40                                       CATStorageServerSession* aSessionObject,
       
    41                                       const RArray<TATDllInfo>& aDlls ) :
       
    42     iProcessId( aProcessId ),
       
    43     iSessionObject( aSessionObject ),
       
    44     iDlls( aDlls )
       
    45     {
       
    46     }
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 // CATDynProcessInfo::CATDynProcessInfo
       
    50 // -----------------------------------------------------------------------------
       
    51 //  
       
    52 CATDynProcessInfo::CATDynProcessInfo( TUint aProcessId,
       
    53                                       CATStorageServerSession* aSessionObject ) :
       
    54     iProcessId( aProcessId ), iSessionObject( aSessionObject )
       
    55     {
       
    56     }
       
    57 
       
    58 // -----------------------------------------------------------------------------
       
    59 // CATDynProcessInfo::CATDynProcessInfo
       
    60 // -----------------------------------------------------------------------------
       
    61 //  
       
    62 CATDynProcessInfo::CATDynProcessInfo( TUint aProcessId ) :
       
    63     iProcessId( aProcessId ), iSessionObject( NULL )
       
    64     {
       
    65     }
       
    66 
       
    67 // Destructor
       
    68 CATDynProcessInfo::~CATDynProcessInfo()
       
    69     {
       
    70     iDlls.Close();
       
    71     }
       
    72 
       
    73 // -----------------------------------------------------------------------------
       
    74 // CATDynProcessInfo::Compare
       
    75 // -----------------------------------------------------------------------------
       
    76 //  
       
    77 TInt CATDynProcessInfo::Compare( const CATDynProcessInfo& aFirst, 
       
    78 	const CATDynProcessInfo& aSecond )
       
    79     {
       
    80     if ( aFirst.iProcessId < aSecond.iProcessId )
       
    81         {
       
    82         return -1;
       
    83         }
       
    84     
       
    85     if ( aFirst.iProcessId > aSecond.iProcessId )
       
    86         {
       
    87         return 1;
       
    88         }
       
    89    
       
    90     // else
       
    91     return 0;
       
    92     }
       
    93 
       
    94 // End of File