@@ -100,7 +100,7 @@ namespace WPEFramework
100
100
virtual void OnRebootBegin (const string &rebootReasonCustom, const string &rebootReasonOther, const string &rebootRequestor) {};
101
101
};
102
102
virtual Core::hresult Register (Exchange::IPowerManager::IRebootNotification* notification /* @in */ ) = 0;
103
- virtual Core::hresult Unregister (Exchange::IPowerManager::IRebootNotification* notification /* @in */ ) = 0;
103
+ virtual Core::hresult Unregister (const Exchange::IPowerManager::IRebootNotification* notification /* @in */ ) = 0;
104
104
105
105
// @event
106
106
struct EXTERNAL IModePreChangeNotification : virtual public Core::IUnknown
@@ -119,7 +119,7 @@ namespace WPEFramework
119
119
// @brief Unregister for Power Mode pre-change event
120
120
// IMPORTANT: If client is also engaged in power mode pre-change operation (requested via AddPowerModePreChangeClient API),
121
121
// make sure to disengage (using RemovePowerModePreChangeClient API) before calling Unregister.
122
- virtual Core::hresult Unregister (IModePreChangeNotification* notification /* @in */ ) = 0;
122
+ virtual Core::hresult Unregister (const IModePreChangeNotification* notification /* @in */ ) = 0;
123
123
124
124
// @event
125
125
struct EXTERNAL IModeChangedNotification : virtual public Core::IUnknown
@@ -132,7 +132,7 @@ namespace WPEFramework
132
132
virtual void OnPowerModeChanged (const PowerState currentState, const PowerState newState) {};
133
133
};
134
134
virtual Core::hresult Register (IModeChangedNotification* notification /* @in */ ) = 0;
135
- virtual Core::hresult Unregister (IModeChangedNotification* notification /* @in */ ) = 0;
135
+ virtual Core::hresult Unregister (const IModeChangedNotification* notification /* @in */ ) = 0;
136
136
137
137
// @event
138
138
struct EXTERNAL IDeepSleepTimeoutNotification : virtual public Core::IUnknown
@@ -144,7 +144,7 @@ namespace WPEFramework
144
144
virtual void OnDeepSleepTimeout (const int wakeupTimeout) {};
145
145
};
146
146
virtual Core::hresult Register (IDeepSleepTimeoutNotification* notification /* @in */ ) = 0;
147
- virtual Core::hresult Unregister (IDeepSleepTimeoutNotification* notification /* @in */ ) = 0;
147
+ virtual Core::hresult Unregister (const IDeepSleepTimeoutNotification* notification /* @in */ ) = 0;
148
148
149
149
// @event
150
150
struct EXTERNAL INetworkStandbyModeChangedNotification : virtual public Core::IUnknown
@@ -156,7 +156,7 @@ namespace WPEFramework
156
156
virtual void OnNetworkStandbyModeChanged (const bool enabled) {};
157
157
};
158
158
virtual Core::hresult Register (INetworkStandbyModeChangedNotification* notification /* @in */ ) = 0;
159
- virtual Core::hresult Unregister (INetworkStandbyModeChangedNotification* notification /* @in */ ) = 0;
159
+ virtual Core::hresult Unregister (const INetworkStandbyModeChangedNotification* notification /* @in */ ) = 0;
160
160
161
161
// @event
162
162
struct EXTERNAL IThermalModeChangedNotification : virtual public Core::IUnknown
@@ -170,7 +170,7 @@ namespace WPEFramework
170
170
virtual void OnThermalModeChanged (const ThermalTemperature currentThermalLevel, const ThermalTemperature newThermalLevel, const float currentTemperature) {};
171
171
};
172
172
virtual Core::hresult Register (IThermalModeChangedNotification* notification /* @in */ ) = 0;
173
- virtual Core::hresult Unregister (IThermalModeChangedNotification* notification /* @in */ ) = 0;
173
+ virtual Core::hresult Unregister (const IThermalModeChangedNotification* notification /* @in */ ) = 0;
174
174
175
175
/* * Engage a client in power mode change operation. */
176
176
// @text addPowerModePreChangeClient
0 commit comments