mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 17:03:37 +00:00
taskschd: Implement ITaskSettings_put_StopIfGoingOnBatteries.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0ae50c22d6
commit
fdb2eedd9e
|
@ -999,8 +999,13 @@ static HRESULT WINAPI TaskSettings_get_StopIfGoingOnBatteries(ITaskSettings *ifa
|
|||
|
||||
static HRESULT WINAPI TaskSettings_put_StopIfGoingOnBatteries(ITaskSettings *iface, VARIANT_BOOL stop)
|
||||
{
|
||||
FIXME("%p,%d: stub\n", iface, stop);
|
||||
return E_NOTIMPL;
|
||||
TaskSettings *taskset = impl_from_ITaskSettings(iface);
|
||||
|
||||
TRACE("%p,%d\n", iface, stop);
|
||||
|
||||
taskset->stop_if_going_on_batteries = stop ? TRUE : FALSE;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI TaskSettings_get_DisallowStartIfOnBatteries(ITaskSettings *iface, VARIANT_BOOL *disallow)
|
||||
|
|
|
@ -1111,6 +1111,9 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
|
|||
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
|
||||
|
||||
hr = ITaskSettings_put_StopIfGoingOnBatteries(set, test->stop_if_going_on_batteries);
|
||||
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
|
||||
|
||||
hr = ITaskSettings_put_DisallowStartIfOnBatteries(set, test->disallow_start_if_on_batteries);
|
||||
todo_wine
|
||||
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
|
||||
/* FIXME: Remove once implemented */
|
||||
|
@ -1120,9 +1123,6 @@ todo_wine
|
|||
return;
|
||||
}
|
||||
|
||||
hr = ITaskSettings_put_DisallowStartIfOnBatteries(set, test->disallow_start_if_on_batteries);
|
||||
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
|
||||
|
||||
hr = ITaskSettings_put_AllowHardTerminate(set, test->allow_hard_terminate);
|
||||
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
|
||||
|
||||
|
|
Loading…
Reference in a new issue