memspy/MemSpyClient/inc/memspyapithread.h
branchRCL_3
changeset 59 8ad140f3dd41
parent 49 7fdc9a71d314
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:
       
    15 * Contains the declaration of  CMemSpyProcessWrapper class and TMemSpyProcess data class
       
    16 */
       
    17 
       
    18 #ifndef MEMSPYAPITHREAD_H
       
    19 #define MEMSPYAPITHREAD_H
       
    20 
       
    21 // System includes
       
    22 #include <e32base.h>
       
    23 
       
    24 class TMemSpyThreadData;
       
    25 
       
    26 NONSHARABLE_CLASS( CMemSpyApiThread ) {
       
    27 
       
    28 public:
       
    29 	IMPORT_C ~CMemSpyApiThread();
       
    30 	
       
    31 	static CMemSpyApiThread* NewL(const TMemSpyThreadData& aData);
       
    32 
       
    33 	static CMemSpyApiThread* NewLC(const TMemSpyThreadData& aData);
       
    34 
       
    35 public:
       
    36 	IMPORT_C TThreadId Id() const;
       
    37 	IMPORT_C TProcessId ProcessId() const;
       
    38 	
       
    39 	IMPORT_C const TDesC& Name() const;
       
    40 		
       
    41 	IMPORT_C TInt SID() const;
       
    42 	
       
    43 	IMPORT_C TInt VID() const;
       
    44 	
       
    45 	IMPORT_C TThreadPriority ThreadPriority() const;
       
    46 	
       
    47 	IMPORT_C TProcessPriority ProcessPriority() const;
       
    48 	
       
    49 	IMPORT_C TInt RequestCount() const;
       
    50 	
       
    51 	IMPORT_C TInt ThreadHandles() const;
       
    52 	
       
    53 	IMPORT_C TInt ProcessHandles() const;
       
    54 	
       
    55 	IMPORT_C TInt ThreadNumberUsing() const;
       
    56 	
       
    57 	IMPORT_C TInt ProcessNumberUsing() const;
       
    58 	
       
    59 	IMPORT_C TInt Attributes() const;
       
    60 	
       
    61 	IMPORT_C TInt CpuUse() const;
       
    62 	
       
    63 	IMPORT_C TExitType ExitType() const;
       
    64 	
       
    65 private:
       
    66 	CMemSpyApiThread();	
       
    67 	
       
    68 	void ConstructL(const TMemSpyThreadData& aData);
       
    69 private:
       
    70 	TMemSpyThreadData* iThreadData;
       
    71 };
       
    72 
       
    73 #endif