perfsrv/memspy/MemSpyClient/inc/memspyapicodesegment.h
changeset 62 1c2bb2fc7c87
equal deleted inserted replaced
56:aa2539c91954 62:1c2bb2fc7c87
       
     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:
       
    15 * Contains the declaration of  CMemSpyCodeSegment class 
       
    16 */
       
    17 
       
    18 #ifndef MEMSPYAPICODESEGMENT_H
       
    19 #define MEMSPYAPICODESEGMENT_H
       
    20 
       
    21 // System includes
       
    22 #include <e32base.h>
       
    23 
       
    24 #include <memspy/driver/memspydriverenumerationsshared.h>
       
    25 
       
    26 class TMemSpyCodeSegmentData;
       
    27 
       
    28 NONSHARABLE_CLASS( CMemSpyApiCodeSegment ) 
       
    29 	{
       
    30 public:
       
    31 	IMPORT_C ~CMemSpyApiCodeSegment();
       
    32 	
       
    33 	static CMemSpyApiCodeSegment* NewL(const TMemSpyCodeSegmentData& aData);
       
    34 
       
    35 	static CMemSpyApiCodeSegment* NewLC(const TMemSpyCodeSegmentData& aData);		
       
    36 	
       
    37 public:
       
    38 	IMPORT_C const TDesC& Name() const;
       
    39 	
       
    40 	IMPORT_C TInt CodeSize() const;
       
    41 	
       
    42 	IMPORT_C TInt TotalDataSize() const;
       
    43 	
       
    44 	IMPORT_C TInt TextSize() const;
       
    45 	
       
    46 	IMPORT_C TInt DataSize() const;
       
    47 	
       
    48 	IMPORT_C TInt BssSize() const;
       
    49 	
       
    50 	IMPORT_C TUidType Uids() const;
       
    51 	
       
    52 	IMPORT_C TUint32 ModuleVersion() const;
       
    53 	
       
    54 	IMPORT_C TUint32 SID() const;
       
    55 	
       
    56 	IMPORT_C TUint32 VID() const;
       
    57 	
       
    58 	IMPORT_C TUint32 EntryPtVeneer() const;		// address of first instruction to be called
       
    59 	
       
    60 	IMPORT_C TUint32 FileEntryPoint() const;	// address of entry point within this code segment
       
    61 	
       
    62 	IMPORT_C TInt DepCount() const;
       
    63 	
       
    64 	IMPORT_C TUint32 CodeLoadAddress() const;	// 0 for RAM loaded code, else pointer to TRomImageHeader
       
    65 	
       
    66 	IMPORT_C TUint32 DataLoadAddress() const;
       
    67 	
       
    68 	IMPORT_C TUint32 Capabilities1() const;
       
    69 	
       
    70 	IMPORT_C TUint32 Capabilities2() const;
       
    71 				
       
    72 private:
       
    73 	CMemSpyApiCodeSegment();
       
    74 	
       
    75 	void ConstructL(const TMemSpyCodeSegmentData& aData);
       
    76 		
       
    77 private:
       
    78 	TMemSpyCodeSegmentData* iCodeSegmentData;
       
    79 };
       
    80 
       
    81 	
       
    82 #endif // MEMSPYAPICODESEGMENT_H