Snapd.Task¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/co  | 
Extra data of task  | 
||
r/w/co  | 
ID of task  | 
||
r/w/co  | 
Kind of task  | 
||
r/w/co  | 
Number of items done in this task  | 
||
r/w/co  | 
Label for progress  | 
||
r/w/co  | 
Total number of items to be done in this task  | 
||
d/r/w/co  | 
  | 
||
r/w/co  | 
Time this task completed  | 
||
r/w/co  | 
Time this task started  | 
||
r/w/co  | 
Status of task  | 
||
r/w/co  | 
Summary of task  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Class Details¶
- class Snapd.Task(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Snapd.Taskcontains progress information for a task in a Snap transaction.New in version 1.0.
- get_data()¶
 - Returns:
 a
Snapd.TaskDataorNone.- Return type:
 
Get the extra data associated with the progress.
New in version 1.66.
- get_kind()¶
 - Returns:
 the kind of task.
- Return type:
 
Gets the kind of task this is.
New in version 1.0.
- get_progress_done()¶
 - Returns:
 a count.
- Return type:
 
Get the the number of items completed in this task.
New in version 1.0.
- get_progress_label()¶
 - Returns:
 a label string.
- Return type:
 
Get the the label associated with the progress.
New in version 1.5.
- get_progress_total()¶
 - Returns:
 a count.
- Return type:
 
Get the the total number of items to be completed in this task.
New in version 1.0.
- get_ready()¶
 - 
Get if this task is completed.
New in version 1.0.
Deprecated since version 1.5: Use
Snapd.Change.get_ready() instead. 
- get_ready_time()¶
 - Returns:
 a
GLib.DateTimeorNone.- Return type:
 
Get the time this task completed or
Noneif not yet completed.New in version 1.0.
- get_spawn_time()¶
 - Returns:
 - Return type:
 
Get the time this task started.
New in version 1.0.
- get_status()¶
 - Returns:
 a status string.
- Return type:
 
Get the status of the task.
New in version 1.0.
Property Details¶
- Snapd.Task.props.data¶
 - Name:
 data- Type:
 - Default Value:
 - Flags:
 
Extra data of task
- Snapd.Task.props.id¶
 - Name:
 id- Type:
 - Default Value:
 - Flags:
 
ID of task
- Snapd.Task.props.kind¶
 - Name:
 kind- Type:
 - Default Value:
 - Flags:
 
Kind of task
- Snapd.Task.props.progress_done¶
 - Name:
 progress-done- Type:
 - Default Value:
 0- Flags:
 
Number of items done in this task
- Snapd.Task.props.progress_label¶
 - Name:
 progress-label- Type:
 - Default Value:
 - Flags:
 
Label for progress
- Snapd.Task.props.progress_total¶
 - Name:
 progress-total- Type:
 - Default Value:
 0- Flags:
 
Total number of items to be done in this task
- Snapd.Task.props.ready¶
 - Name:
 ready- Type:
 - Default Value:
 - Flags:
 
Truewhen task completeDeprecated since version ???.
- Snapd.Task.props.ready_time¶
 - Name:
 ready-time- Type:
 - Default Value:
 - Flags:
 
Time this task completed
- Snapd.Task.props.spawn_time¶
 - Name:
 spawn-time- Type:
 - Default Value:
 - Flags:
 
Time this task started
- Snapd.Task.props.status¶
 - Name:
 status- Type:
 - Default Value:
 - Flags:
 
Status of task