Progress
Object Hierarchy:
Description:
[ CCode ( type_id = "pk_progress_get_type ()" ) ]
public class Progress : Object
Content:
Properties:
- public bool allow_cancel { get; set; }
true
if this transaction can be cancelled.
- public bool caller_active { get; set; }
true
if the transaction caller is still connected.
- public uint64 download_size_remaining { get; set; }
Number of bytes remaining to download.
- public uint elapsed_time { get; set; }
Amount of time the transaction has taken in seconds.
- public ItemProgress item_progress { get; set; }
Item progress associated with this transaction.
- public Package package { get; set; }
The package this transaction is acting on.
- public string package_id { get; set; }
Package ID this transaction is acting on.
- public int percentage { get; set; }
Percentage complete of this transaction.
- public uint remaining_time { get; set; }
Amount of time the transaction will take to complete in seconds or 0
if unknown.
- public uint role { get; set; }
Role of this transaction.
- public uint speed { get; set; }
Transaction speed in bits per second or 0 if unknown.
- public uint status { get; set; }
Status of this transaction.
- public uint64 transaction_flags { get; set; }
- public string transaction_id { get; set; }
ID used by this transaction.
- public uint uid { get; set; }
The UID that started this transaction.
Creation methods:
Methods:
- public bool get_allow_cancel ()
Get if this transaction can be cancelled.
- public bool get_caller_active ()
Get if the transaction caller is connected.
- public uint64 get_download_size_remaining ()
Get the number of bytes remaining to download.
- public uint get_elapsed_time ()
Get the amount of time the transaction has taken.
- public unowned ItemProgress get_item_progress ()
Get the item progress associated with this transaction.
- public unowned Package get_package ()
Get the package this transaction is acting on.
- public unowned string get_package_id ()
Get the package ID this transaction is acting on.
- public int get_percentage ()
Get the percentage complete.
- public uint get_remaining_time ()
Get the amount of time the transaction will take to complete.
- public Role get_role ()
Get the role of this transaction.
- public uint get_speed ()
Get the speed of this transaction.
- public Status get_status ()
Get the status of this transaction.
- public uint64 get_transaction_flags ()
Get the flags associated with this transaction.
- public unowned string get_transaction_id ()
Get the ID used by this transaction.
- public uint get_uid ()
Get the UID that started this transaction.
- public bool set_allow_cancel (bool allow_cancel)
Set if this transaction can be cancelled.
- public bool set_caller_active (bool caller_active)
Set if the transaction caller is connected.
- public bool set_download_size_remaining (uint64 download_size_remaining)
Set the number of bytes remaining to download.
- public bool set_elapsed_time (uint elapsed_time)
Set the amount of time the transaction has taken.
- public bool set_item_progress (ItemProgress item_progress)
Set the item progress associated with this transaction.
- public bool set_package (Package package)
Set the package this transaction is acting on.
- public bool set_package_id (string package_id)
Set the package ID this transaction is acting on.
- public bool set_percentage (int percentage)
Set the percentage complete of this transaction.
- public bool set_remaining_time (uint remaining_time)
Set the amount of time the transaction will take to complete.
- public bool set_role (Role role)
Set the role of this transaction.
- public bool set_speed (uint speed)
Set the speed of this transaction.
- public bool set_status (Status status)
Set the status of this transaction.
- public bool set_transaction_flags (uint64 transaction_flags)
Set the flags associated with this transaction.
- public bool set_transaction_id (string transaction_id)
Set the ID used by this transaction.
- public bool set_uid (uint uid)
Set the UID that started this transaction.
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