Progress
Object Hierarchy:
Description:
Namespace: Pk
Package: packagekit-glib2
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 string sender { owned get; set; }
The D-Bus name of the client that started 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; }
A Bitfield containing TransactionFlag associated with this transaction.
- public string transaction_id { get; set; }
ID used by this transaction.
- public uint uid { get; set; }
The UID that started this transaction.
Creation methods:
- public Progress ()
Progress is a nice GObject wrapper for PackageKit and makes writing frontends easy.
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 string get_sender ()
Get the D-Bus name of the client that started 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_sender (string bus_name)
Set the D-Bus name of the client that started 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