Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
606ee6cc
Commit
606ee6cc
authored
Feb 21, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 22, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Add support for reading more TaskSettings fields to XML parser.
parent
02bd13df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
task.c
dlls/taskschd/task.c
+21
-0
No files found.
dlls/taskschd/task.c
View file @
606ee6cc
...
...
@@ -1061,6 +1061,9 @@ static const WCHAR IgnoreNew[] = {'I','g','n','o','r','e','N','e','w',0};
static
const
WCHAR
DisallowStartIfOnBatteries
[]
=
{
'D'
,
'i'
,
's'
,
'a'
,
'l'
,
'l'
,
'o'
,
'w'
,
'S'
,
't'
,
'a'
,
'r'
,
't'
,
'I'
,
'f'
,
'O'
,
'n'
,
'B'
,
'a'
,
't'
,
't'
,
'e'
,
'r'
,
'i'
,
'e'
,
's'
,
0
};
static
const
WCHAR
AllowStartOnDemand
[]
=
{
'A'
,
'l'
,
'l'
,
'o'
,
'w'
,
'S'
,
't'
,
'a'
,
'r'
,
't'
,
'O'
,
'n'
,
'D'
,
'e'
,
'm'
,
'a'
,
'n'
,
'd'
,
0
};
static
const
WCHAR
StopIfGoingOnBatteries
[]
=
{
'S'
,
't'
,
'o'
,
'p'
,
'I'
,
'f'
,
'G'
,
'o'
,
'i'
,
'n'
,
'g'
,
'O'
,
'n'
,
'B'
,
'a'
,
't'
,
't'
,
'e'
,
'r'
,
'i'
,
'e'
,
's'
,
0
};
static
const
WCHAR
AllowHardTerminate
[]
=
{
'A'
,
'l'
,
'l'
,
'o'
,
'w'
,
'H'
,
'a'
,
'r'
,
'd'
,
'T'
,
'e'
,
'r'
,
'm'
,
'i'
,
'n'
,
'a'
,
't'
,
'e'
,
0
};
static
const
WCHAR
StartWhenAvailable
[]
=
{
'S'
,
't'
,
'a'
,
'r'
,
't'
,
'W'
,
'h'
,
'e'
,
'n'
,
'A'
,
'v'
,
'a'
,
'i'
,
'l'
,
'a'
,
'b'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
RunOnlyIfNetworkAvailable
[]
=
{
'R'
,
'u'
,
'n'
,
'O'
,
'n'
,
'l'
,
'y'
,
'I'
,
'f'
,
'N'
,
'e'
,
't'
,
'w'
,
'o'
,
'r'
,
'k'
,
'A'
,
'v'
,
'a'
,
'i'
,
'l'
,
'a'
,
'b'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
Enabled
[]
=
{
'E'
,
'n'
,
'a'
,
'b'
,
'l'
,
'e'
,
'd'
,
0
};
static
const
WCHAR
Hidden
[]
=
{
'H'
,
'i'
,
'd'
,
'd'
,
'e'
,
'n'
,
0
};
static
const
WCHAR
RunOnlyIfIdle
[]
=
{
'R'
,
'u'
,
'n'
,
'O'
,
'n'
,
'l'
,
'y'
,
'I'
,
'f'
,
'I'
,
'd'
,
'l'
,
'e'
,
0
};
...
...
@@ -1226,6 +1229,24 @@ static HRESULT read_settings(IXmlReader *reader, ITaskSettings *taskset)
if
(
hr
==
S_OK
)
ITaskSettings_put_StopIfGoingOnBatteries
(
taskset
,
bool_val
);
}
else
if
(
!
lstrcmpW
(
name
,
AllowHardTerminate
))
{
hr
=
read_variantbool_value
(
reader
,
&
bool_val
);
if
(
hr
==
S_OK
)
ITaskSettings_put_AllowHardTerminate
(
taskset
,
bool_val
);
}
else
if
(
!
lstrcmpW
(
name
,
StartWhenAvailable
))
{
hr
=
read_variantbool_value
(
reader
,
&
bool_val
);
if
(
hr
==
S_OK
)
ITaskSettings_put_StartWhenAvailable
(
taskset
,
bool_val
);
}
else
if
(
!
lstrcmpW
(
name
,
RunOnlyIfNetworkAvailable
))
{
hr
=
read_variantbool_value
(
reader
,
&
bool_val
);
if
(
hr
==
S_OK
)
ITaskSettings_put_RunOnlyIfNetworkAvailable
(
taskset
,
bool_val
);
}
else
if
(
!
lstrcmpW
(
name
,
Enabled
))
{
hr
=
read_variantbool_value
(
reader
,
&
bool_val
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment