|
1 /* |
|
2 * Copyright (c) 2005-2009 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 |
|
19 |
|
20 |
|
21 /** |
|
22 @file |
|
23 @internalTechnology |
|
24 */ |
|
25 |
|
26 #ifndef HWRMVIBRACLIENTSERVER_H |
|
27 #define HWRMVIBRACLIENTSERVER_H |
|
28 |
|
29 // INCLUDES |
|
30 // None |
|
31 |
|
32 // CONSTANTS |
|
33 // Maximum number of possible vibra targets |
|
34 const TInt KHWRMVibraMaxTargets(1); |
|
35 |
|
36 // MACROS |
|
37 // None |
|
38 |
|
39 // DATA TYPES |
|
40 // None |
|
41 |
|
42 // Opcodes used in message passing between client and server |
|
43 // Vibra opcodes start at 2000 |
|
44 enum THWRMVibraServRequest |
|
45 { |
|
46 |
|
47 // Services for Vibra |
|
48 |
|
49 /** |
|
50 * Starts vibra with default intensity |
|
51 * |
|
52 * parameters: |
|
53 * 0: TInt - Duration in milliseconds. |
|
54 */ |
|
55 EHWRMStartVibraDefaultIntensity = 2000, |
|
56 |
|
57 /** |
|
58 * Starts vibra with specified intensity |
|
59 * |
|
60 * parameters: |
|
61 * 0: TInt - Duration in milliseconds. |
|
62 * 1: TInt - Intensity (valid values: -100 to 100) |
|
63 */ |
|
64 EHWRMStartVibra, |
|
65 |
|
66 /** |
|
67 * Stops vibra immediately. |
|
68 * |
|
69 * parameters: |
|
70 * None |
|
71 */ |
|
72 EHWRMStopVibra, |
|
73 |
|
74 /** |
|
75 * Cleans up the vibra service so that session can be closed. |
|
76 * |
|
77 * parameters: |
|
78 * None |
|
79 */ |
|
80 EHWRMCleanupVibra, |
|
81 |
|
82 /** |
|
83 * Reserves vibra. |
|
84 * |
|
85 * parameters: |
|
86 * 0: TBool - Restore state flag |
|
87 * 1: TBool - ForceNoCCoeEnv flag |
|
88 */ |
|
89 EHWRMReserveVibra, |
|
90 |
|
91 /** |
|
92 * Releases vibra. |
|
93 * |
|
94 * parameters: |
|
95 * None |
|
96 */ |
|
97 EHWRMReleaseVibra, |
|
98 /** |
|
99 * Generates vibra pulse with default intensity and duration |
|
100 * |
|
101 * parameters: |
|
102 * None |
|
103 */ |
|
104 EHWRMPulseVibraDefault, |
|
105 |
|
106 /** |
|
107 * Generates vibra pulse with specified intensity and default duration |
|
108 * |
|
109 * parameters: |
|
110 * 0: TInt - Duration in milliseconds. |
|
111 */ |
|
112 EHWRMPulseVibraDefaultIntensity, |
|
113 |
|
114 /** |
|
115 * Generates vibra pulse with specified intensity and duration |
|
116 * |
|
117 * parameters: |
|
118 * 0: TInt - Duration in milliseconds. |
|
119 * 1: TInt - Intensity (valid values: -100 to 100) |
|
120 */ |
|
121 EHWRMPulseVibra, |
|
122 |
|
123 EHWRMEndOfVibraOpCodes |
|
124 }; |
|
125 |
|
126 |
|
127 // FUNCTION PROTOTYPES |
|
128 // None |
|
129 |
|
130 // FORWARD DECLARATIONS |
|
131 // None |
|
132 |
|
133 // CLASS DECLARATION |
|
134 // None |
|
135 |
|
136 #endif // HWRMVIBRACLIENTSERVER_H |
|
137 |
|
138 // End of File |