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