perfsrv/memspy/Driver/Kernel/Include/MemSpyDriverLogicalChannel.h
changeset 51 98307c651589
child 54 a151135b0cf9
equal deleted inserted replaced
42:0ff24a8f6ca2 51:98307c651589
       
     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 *
       
    16 */
       
    17 
       
    18 #ifndef MEMSPYDRIVERLOGICALCHANNEL_H
       
    19 #define MEMSPYDRIVERLOGICALCHANNEL_H
       
    20 
       
    21 // System includes
       
    22 #include <e32cmn.h>
       
    23 #include <kernel.h>
       
    24 
       
    25 // Classes referenced
       
    26 class DMemSpyDriverDevice;
       
    27 class DMemSpyDriverLogChanBase;
       
    28 
       
    29 
       
    30 class DMemSpyDriverLogicalChannel : public DLogicalChannelBase
       
    31 	{
       
    32 public:
       
    33 	DMemSpyDriverLogicalChannel();
       
    34 	~DMemSpyDriverLogicalChannel();
       
    35 
       
    36 private: // from DLogicalChannelBase
       
    37 	TInt DoCreate( TInt aUnit, const TDesC8* anInfo, const TVersion& aVer );
       
    38 	TInt Request( TInt aFunction, TAny* a1, TAny* a2 );
       
    39 
       
    40 private: // Channel operation handlers
       
    41     TInt SubChannelsRegister();
       
    42     TInt SubChannelConstructAndSave( DMemSpyDriverLogChanBase*& aSubChannel );
       
    43     void SubChannelsDestroy();
       
    44     DMemSpyDriverLogChanBase* SubChannelForFunction( TInt aFunction );
       
    45 
       
    46 private: // Internal methods
       
    47     DMemSpyDriverDevice& MemSpyDevice();
       
    48 
       
    49 private: // Data members
       
    50 	DThread* iClientThread;
       
    51     RPointerArray<DMemSpyDriverLogChanBase> iSubChannels;
       
    52 	};
       
    53 
       
    54 
       
    55 #endif