|
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 Battery charger cable test |
|
15 * engine class (CDiagBatteryChargerCableTestEngine) to report result to the |
|
16 * plug-in class (CDiagBatteryChargerCableTestPlugin) |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef DIAGBATTERYCHARGERCALLBACKINTERFACE_H |
|
22 #define DIAGBATTERYCHARGERCALLBACKINTERFACE_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <DiagResultsDatabaseItem.h> |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * MDiagBatteryChargerTestCallBackInterface |
|
31 * |
|
32 * This is an abstract interface class used by the Battery charger cable test |
|
33 * engine class (CDiagBatteryChargerCableTestEngine) to report result of the test |
|
34 * to the plug-in class (CDiagBatteryChargerCableTestPlugin). |
|
35 */ |
|
36 class MDiagBatteryChargerTestCallBackInterface |
|
37 { |
|
38 public: |
|
39 /** |
|
40 * The engine class uses this interface to inform the plug-in class about the test result. |
|
41 */ |
|
42 virtual void ReportTestResultL(CDiagResultsDatabaseItem::TResult aResult) = 0; |
|
43 |
|
44 /** |
|
45 * The engine class uses this callback on the plugin class to ask the user if the entire test |
|
46 * execution needs to be cancelled. |
|
47 * @param aUserResponse : The user response is returned in this reference argument. |
|
48 * |
|
49 * @return ETrue : The dialog was dismissed by the user. |
|
50 * EFalse : The dialog was dismissed internally. |
|
51 */ |
|
52 virtual TBool AskCancelExecutionL(TInt& aUserResponse) = 0; |
|
53 }; |
|
54 |
|
55 |
|
56 #endif // DIAGBATTERYCHARGERCALLBACKINTERFACE_H |