dbgagents/trkagent/engine/TrkUsbConnectionListener.h
changeset 0 c6b0df440bee
equal deleted inserted replaced
-1:000000000000 0:c6b0df440bee
       
     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 
       
    19 #ifndef TRKUSBCONNECTIONLISTENER_H_
       
    20 #define TRKUSBCONNECTIONLISTENER_H_
       
    21 
       
    22 /**
       
    23 *  Abstract callback interface for port listeners to call into the debug manager for certain situations.
       
    24 */
       
    25 class MTrkUsbConnectionListener
       
    26 {
       
    27     public:
       
    28 
       
    29         /**
       
    30         * Called by the port listeners when a connection is available
       
    31         */
       
    32         virtual void ConnectionAvailable() = 0;
       
    33 
       
    34         /**
       
    35         * This is called when a connection is closed, this can happen for different reasons.
       
    36         * One of the reasons could be that the user has unplugged 
       
    37         * the USB cable when using the USB connection
       
    38         */
       
    39         virtual void ConnectionUnAvailable() = 0; 
       
    40             
       
    41 };
       
    42 #endif /* TRKUSBCONNECTIONLISTENER_H_ */