|
1 /* |
|
2 * Copyright (c) 2006 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 server client-server API. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef PSMCLIENTSERVER_H |
|
20 #define PSMCLIENTSERVER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 /** |
|
25 * Opcodes used in message passing between client and server |
|
26 * |
|
27 * NOTE: If TPsmServerRequest enumeration is changed, |
|
28 * PSM Server's policy defined in psmserver.h must also be |
|
29 * checked and changed correspondingly, if necessary. |
|
30 */ |
|
31 enum TPsmServerRequest |
|
32 { |
|
33 |
|
34 /** |
|
35 * Change power save mode, Notification API |
|
36 */ |
|
37 EPsmServerNotifyModeChange, |
|
38 |
|
39 /** |
|
40 * Cancels ongoing mode change, Notification API |
|
41 */ |
|
42 EPsmServerCancelModeChange, |
|
43 |
|
44 /** |
|
45 * Change psm settings, Settings API |
|
46 */ |
|
47 EPsmServerChangeSettings, |
|
48 |
|
49 /** |
|
50 * Gets psm settings for currently active PSM mode, Settings API |
|
51 */ |
|
52 EPsmServerGetSettings, |
|
53 |
|
54 /** |
|
55 * Creates backup for psm settings, Settings API |
|
56 */ |
|
57 EPsmServerBackupSettings, |
|
58 |
|
59 /** |
|
60 * Request notification of power save mode change |
|
61 */ |
|
62 EPsmServerModeChangeNotificationRequest, |
|
63 |
|
64 /** |
|
65 * Cancels notification request of power save mode change |
|
66 */ |
|
67 EPsmServerCancelModeChangeNotificationRequest, |
|
68 |
|
69 // --------------------------------------------------------------- |
|
70 // End of enum |
|
71 // --------------------------------------------------------------- |
|
72 |
|
73 /** |
|
74 * Indicates end of enumeration values. |
|
75 * Only used in security check and is not supported |
|
76 * as a real operation. |
|
77 */ |
|
78 EPsmServerReqEnd |
|
79 }; |
|
80 |
|
81 |
|
82 #endif // PSMCLIENTSERVER_H |