equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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 #ifndef MUSBTHERMALNOTIFY_H |
|
19 #define MUSBTHERMALNOTIFY_H |
|
20 |
|
21 #include <e32def.h> |
|
22 |
|
23 // Class used to be used as callbacks to report thermal information |
|
24 class MUsbThermalNotify |
|
25 { |
|
26 public: |
|
27 /** |
|
28 * Called by thermal monitor plugin when there is any changes about thermal info |
|
29 * |
|
30 * @param aLastError The last error code detected |
|
31 * @param aValue The new value of thermal |
|
32 */ |
|
33 virtual void UsbThermalStateChange(TInt aLastError, TInt aValue) = 0; |
|
34 }; |
|
35 |
|
36 /** |
|
37 * This class is used by usbman server to register itself as an observer of |
|
38 * system thermal event. |
|
39 */ |
|
40 class MUsbThermalPluginInterface |
|
41 { |
|
42 public: |
|
43 virtual void RegisterThermalObserver(MUsbThermalNotify& aThermalObserver) = 0; |
|
44 }; |
|
45 |
|
46 #endif //MUSBTHERMALNOTIFY_H |