Snapd.Task – snapd-glib-2 Reference Manual
Packages
snapd-glib-2
Snapd
Task
data
id
kind
progress_done
progress_label
progress_total
ready
ready_time
spawn_time
status
summary
Task
get_data
get_id
get_kind
get_progress_done
get_progress_label
get_progress_total
get_ready
get_ready_time
get_spawn_time
get_status
get_summary
Task
Object Hierarchy:
Description:
[
CCode
( type_id =
"snapd_task_get_type ()"
) ]
[
Version
( since =
"1.0"
) ]
public
class
Task
:
Object
Task
contains progress information for a task in a Snap transaction.
Namespace:
Snapd
Package:
snapd-glib-2
Content:
Properties:
public
TaskData
data
{
get
;
construct
; }
public
string
id
{
get
;
construct
; }
public
string
kind
{
get
;
construct
; }
public
int64
progress_done
{
get
;
construct
; }
public
string
progress_label
{
get
;
construct
; }
public
int64
progress_total
{
get
;
construct
; }
public
bool
ready
{
get
;
construct
; }
public
DateTime
ready_time
{
get
;
construct
; }
public
DateTime
spawn_time
{
get
;
construct
; }
public
string
status
{
get
;
construct
; }
public
string
summary
{
get
;
construct
; }
Creation methods:
protected
Task
()
Methods:
public
unowned
TaskData
?
get_data
()
Get the extra data associated with the progress.
public
unowned
string
get_id
()
Get the unique ID for this task.
public
unowned
string
get_kind
()
Gets the kind of task this is.
public
int64
get_progress_done
()
Get the the number of items completed in this task.
public
unowned
string
get_progress_label
()
Get the the label associated with the progress.
public
int64
get_progress_total
()
Get the the total number of items to be completed in this task.
public
bool
get_ready
()
Get if this task is completed.
public
unowned
DateTime
?
get_ready_time
()
Get the time this task completed or
null
if not yet completed.
public
unowned
DateTime
get_spawn_time
()
Get the time this task started.
public
unowned
string
get_status
()
Get the status of the task.
public
unowned
string
get_summary
()
Get a human readable description of the task.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref