equal
deleted
inserted
replaced
|
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: PSM Client Observer |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef PSMCLIENTOBSERVER_H |
|
21 #define PSMCLIENTOBSERVER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <psmtypes.h> |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * PSM Client Observer for Power Save Mode change notification |
|
31 * |
|
32 * @lib psmclient.lib |
|
33 */ |
|
34 class MPsmClientObserver |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * This method is called when Power Save Mode is changed. |
|
40 * |
|
41 * @param aMode Mode that is currently active |
|
42 */ |
|
43 virtual void PowerSaveModeChanged( const TPsmsrvMode aMode ) = 0; |
|
44 |
|
45 /** |
|
46 * This method is called when there is an error during power save mode change |
|
47 * |
|
48 * @param aError System wide error code. |
|
49 * KErrNoMemory if memory allocation failed, |
|
50 * KErrAlreadyExists if the requested mode is already in use, |
|
51 * KErrArgument if the requested mode is not supported. |
|
52 * KErrCompletion if mode change done only partially, i.e. some |
|
53 * actions are not done for certain reason. |
|
54 */ |
|
55 virtual void PowerSaveModeChangeError( const TInt aError ) = 0; |
|
56 |
|
57 }; |
|
58 |
|
59 #endif //PSMCLIENTOBSERVER_H |
|
60 |
|
61 // End of File |
|
62 |
|
63 |