commsfwutils/commsbufs/inc/commsbufponddbg.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description: Pond debug functions.
       
    14 //
       
    15 
       
    16 /**
       
    17 @file
       
    18 @internalTechnology
       
    19 */
       
    20 
       
    21 #ifndef __COMMSBUFPONDDBF_H__
       
    22 #define __COMMSBUFPONDDBF_H__
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 class RCommsBuf;
       
    27 class RCommsBufPond;
       
    28 
       
    29 class MCommsBufPondDbg
       
    30 	{
       
    31 	public:
       
    32     virtual RCommsBuf* __DbgBufChain() =0;
       
    33 	virtual RCommsBuf* __DbgBufChain(TUint aBufSize) =0;
       
    34 	virtual void __DbgSetPoolLimit(TInt aCount) =0;
       
    35 	virtual void __DbgSetPoolLimit(TInt aCount, TUint aBufSize) =0;
       
    36 	virtual void __DbgSetFailAfter(TInt aCount=0) =0;
       
    37 	virtual TUint __DbgGetBufSpace() =0;
       
    38 	virtual TUint __DbgGetBufSpace(TUint aBufSize) =0;
       
    39 	virtual TUint __DbgGetBufTotal() =0;
       
    40 	virtual TUint __DbgGetBufTotal(TUint aMufSize) =0;
       
    41 	virtual TInt __DbgGetHeapSize() =0;
       
    42 
       
    43 	};
       
    44 
       
    45 class TCommsBufPondDbg
       
    46 	{
       
    47 	public:
       
    48 	IMPORT_C TCommsBufPondDbg(RCommsBufPond& aPond);
       
    49     IMPORT_C RCommsBuf* __DbgBufChain();
       
    50 	IMPORT_C RCommsBuf* __DbgBufChain(TUint aBufSize);
       
    51 	IMPORT_C void __DbgSetPoolLimit(TInt aCount);
       
    52 	IMPORT_C void __DbgSetPoolLimit(TInt aCount, TUint aBufSize);
       
    53 	IMPORT_C void __DbgSetFailAfter(TInt aCount=0);
       
    54 	IMPORT_C TUint __DbgGetBufSpace();
       
    55 	IMPORT_C TUint __DbgGetBufSpace(TUint aBufSize);
       
    56 	IMPORT_C TUint __DbgGetBufTotal();
       
    57 	IMPORT_C TUint __DbgGetBufTotal(TUint aMufSize);
       
    58 	IMPORT_C TInt __DbgGetHeapSize();
       
    59 	
       
    60 	private:
       
    61 	MCommsBufPondDbg& iCommsBufPondDbg;
       
    62 	};
       
    63 #endif // __COMMSBUFPONDDBF_H__
       
    64