dbgagents/trkagent/engine/TrkUsbPortListener.h
changeset 0 c6b0df440bee
equal deleted inserted replaced
-1:000000000000 0:c6b0df440bee
       
     1 /*
       
     2 * Copyright (c) 2004-2008 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 
       
    19 #ifndef     _TRK_USBPORTLISTENER_H_
       
    20 #define     _TRK_USBPORTLISTENER_H_
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <c32comm.h>
       
    25 #include <usbman.h>
       
    26 
       
    27 #include "TrkCommPortListener.h"
       
    28 #include "TrkEngine.h"
       
    29 
       
    30 
       
    31 // DATA TYPES
       
    32 
       
    33 // FORWARD DECLARATIONS
       
    34 
       
    35 // CLASS DECLARATION
       
    36 
       
    37 
       
    38 class CTrkUsbPortListener: public CTrkCommPortListener
       
    39 {
       
    40 
       
    41     public:  
       
    42 
       
    43 		CTrkUsbPortListener(MTrkUsbConnectionListener *aConnectionListener);	
       
    44         ~CTrkUsbPortListener();
       
    45 
       
    46 		// From CTrkCommPortListener
       
    47         void ListenL();
       
    48         void StopListening();
       
    49 
       
    50     protected: 
       
    51     	// From CActive
       
    52         void DoCancel();
       
    53         void RunL();	    
       
    54 
       
    55 	private:
       
    56 	
       
    57 		void IssueRequestL();
       
    58 
       
    59 		
       
    60     private:    
       
    61 
       
    62         RUsb                        iUsbServer;
       
    63 		TUsbDeviceState				iUsbDeviceState;
       
    64 		
       
    65 		TBool iConnected;
       
    66 		TInt iPersonalityId;
       
    67 };
       
    68 
       
    69 
       
    70 #endif      //  _TRK_USBPORTLISTENER_H_
       
    71 
       
    72 
       
    73 //  End of File