devicediagnostics/diagplugins/diagusbcableplugin/inc/diagusbcabletestcallbackinterface.h
changeset 0 3ce708148e4d
equal deleted inserted replaced
-1:000000000000 0:3ce708148e4d
       
     1 /*
       
     2 * Copyright (c) 2007 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:  This class is an abstract interface used by the USB cable test
       
    15 *                engine class (CDiagUSBCableTestEngine) to report result to the 
       
    16 *                plug-in class (CDiagUSBCableTestPlugin)    
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef DIAGUSBCALLBACKINTERFACE_H
       
    22 #define DIAGUSBCALLBACKINTERFACE_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <DiagResultsDatabaseItem.h>
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 * MDiagUSBTestCallBackInterface
       
    31 *
       
    32 * This is an abstract interface class used by the USB cable test
       
    33 * engine class (CDiagUSBCableTestEngine) to report result of the test
       
    34 * to the plug-in class (CDiagUSBCableTestPlugin) and invoke few other callback functions
       
    35 */
       
    36  
       
    37 class MDiagUSBTestCallBackInterface
       
    38     {
       
    39 public:
       
    40     /**
       
    41     * The engine class uses this callback interface to report result back to the plugin
       
    42     * class
       
    43     */
       
    44     virtual void ReportTestResultL(CDiagResultsDatabaseItem::TResult aResult) = 0;
       
    45     
       
    46     /**
       
    47     * The engine class uses this callback on the plugin class to ask the user if the entire test
       
    48     * execution needs to be cancelled.
       
    49     * @param aUserResponse : The user response is returned in this reference argument.
       
    50     *      
       
    51     * @return ETrue     : The dialog was dismissed by the user.
       
    52     *         EFalse    : The dialog was dismissed internally.
       
    53     */    
       
    54     virtual TBool AskCancelExecutionL(TInt& aUserResponse,TInt aOption) = 0;  
       
    55      
       
    56     };    
       
    57 
       
    58 #endif // DIAGUSBCALLBACKINTERFACE_H