PackageKitGlib.Progress¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class PackageKitGlib.Progress(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
A new
PackageKitGlib.Progress
instance- Return type:
PackageKitGlib.Progress
is a niceGObject.Object
wrapper for PackageKit and makes writing frontends easy.New in version 0.5.2.
- get_allow_cancel()¶
-
Get if this transaction can be cancelled.
New in version 1.0.12.
- get_caller_active()¶
-
Get if the transaction caller is connected.
New in version 1.0.12.
- get_download_size_remaining()¶
- Returns:
number of bytes remaining to download.
- Return type:
Get the number of bytes remaining to download.
New in version 1.0.12.
- get_elapsed_time()¶
- Returns:
time in seconds
- Return type:
Get the amount of time the transaction has taken.
New in version 1.0.12.
- get_item_progress()¶
- Returns:
- Return type:
Get the item progress associated with this transaction.
New in version 1.0.12.
- get_package()¶
- Returns:
- Return type:
Get the package this transaction is acting on.
New in version 1.0.12.
- get_package_id()¶
- Returns:
a PackageID
- Return type:
Get the package ID this transaction is acting on.
New in version 1.0.12.
- get_percentage()¶
- Returns:
a percentage (0-100)
- Return type:
Get the percentage complete.
New in version 1.0.12.
- get_remaining_time()¶
- Returns:
time in seconds or 0 if unknown.
- Return type:
Get the amount of time the transaction will take to complete.
New in version 1.0.12.
- get_role()¶
- Returns:
- Return type:
Get the role of this transaction.
New in version 1.0.12.
- get_sender()¶
- Returns:
a D-Bus name
- Return type:
Get the D-Bus name of the client that started this transaction.
New in version 1.2.6.
- get_speed()¶
- Returns:
speed in bits per scond or 0 if unknown
- Return type:
Get the speed of this transaction.
New in version 1.0.12.
- get_status()¶
- Returns:
a status string
- Return type:
Get the status of this transaction.
New in version 1.0.12.
- get_transaction_flags()¶
- Returns:
a #PkBitfield containing
PackageKitGlib.TransactionFlagEnum
values.- Return type:
Get the flags associated with this transaction.
New in version 1.0.12.
- get_transaction_id()¶
- Returns:
a transaction ID.
- Return type:
Get the ID used by this transaction.
New in version 1.0.12.
- get_uid()¶
- Returns:
an UID
- Return type:
Get the UID that started this transaction.
New in version 1.0.12.
- set_allow_cancel(allow_cancel)¶
- Parameters:
allow_cancel (
bool
) –True
if this transaction can be cancelled.- Returns:
True
if value changed.- Return type:
Set if this transaction can be cancelled.
New in version 0.5.2.
- set_caller_active(caller_active)¶
- Parameters:
caller_active (
bool
) –True
if the transaction caller is still connected.- Returns:
True
if value changed.- Return type:
Set if the transaction caller is connected.
New in version 0.5.2.
- set_download_size_remaining(download_size_remaining)¶
- Parameters:
download_size_remaining (
int
) – number of bytes remaining to download.- Returns:
True
if value changed.- Return type:
Set the number of bytes remaining to download.
New in version 0.8.0.
- set_elapsed_time(elapsed_time)¶
-
Set the amount of time the transaction has taken.
New in version 0.5.2.
- set_item_progress(item_progress)¶
- Parameters:
item_progress (
PackageKitGlib.ItemProgress
) – aPackageKitGlib.ItemProgress
- Returns:
True
if value changed.- Return type:
Set the item progress associated with this transaction.
New in version 0.8.1.
- set_package(package)¶
- Parameters:
package (
PackageKitGlib.Package
) – aPackageKitGlib.Package
- Returns:
True
if value changed.- Return type:
Set the package this transaction is acting on.
New in version 0.5.2.
- set_package_id(package_id)¶
-
Set the package ID this transaction is acting on.
New in version 0.5.2.
- set_percentage(percentage)¶
- Parameters:
percentage (
int
) – a percentage value (0-100)- Returns:
True
if value changed.- Return type:
Set the percentage complete of this transaction.
New in version 0.5.2.
- set_remaining_time(remaining_time)¶
- Parameters:
remaining_time (
int
) – time in seconds or 0 if unknown.- Returns:
True
if value changed.- Return type:
Set the amount of time the transaction will take to complete.
New in version 0.5.2.
- set_role(role)¶
- Parameters:
role (
PackageKitGlib.RoleEnum
) – aPackageKitGlib.RoleEnum
- Returns:
True
if value changed.- Return type:
Set the role of this transaction.
New in version 0.5.2.
- set_sender(bus_name)¶
-
Set the D-Bus name of the client that started this transaction.
New in version 1.2.6.
- set_speed(speed)¶
- Parameters:
speed (
int
) – speed in bits per second or 0 if unknown- Returns:
True
if value changed.- Return type:
Set the speed of this transaction.
New in version 0.5.2.
- set_status(status)¶
- Parameters:
status (
PackageKitGlib.StatusEnum
) – aPackageKitGlib.StatusEnum
- Returns:
True
if value changed.- Return type:
Set the status of this transaction.
New in version 0.5.2.
- set_transaction_flags(transaction_flags)¶
- Parameters:
transaction_flags (
int
) – a #PkBitfield containingPackageKitGlib.TransactionFlagEnum
values.- Returns:
True
if value changed.- Return type:
Set the flags associated with this transaction.
New in version 0.8.8.
Property Details¶
- PackageKitGlib.Progress.props.allow_cancel¶
- Name:
allow-cancel
- Type:
- Default Value:
- Flags:
True
if this transaction can be cancelled.New in version 0.5.2.
- PackageKitGlib.Progress.props.caller_active¶
- Name:
caller-active
- Type:
- Default Value:
- Flags:
True
if the transaction caller is still connected.New in version 0.5.2.
- PackageKitGlib.Progress.props.download_size_remaining¶
- Name:
download-size-remaining
- Type:
- Default Value:
0
- Flags:
Number of bytes remaining to download.
New in version 0.8.0.
- PackageKitGlib.Progress.props.elapsed_time¶
- Name:
elapsed-time
- Type:
- Default Value:
0
- Flags:
Amount of time the transaction has taken in seconds.
New in version 0.5.2.
- PackageKitGlib.Progress.props.item_progress¶
- Name:
item-progress
- Type:
- Default Value:
- Flags:
Item progress associated with this transaction.
New in version 0.8.1.
- PackageKitGlib.Progress.props.package¶
- Name:
package
- Type:
- Default Value:
- Flags:
The package this transaction is acting on.
New in version 0.5.3.
- PackageKitGlib.Progress.props.package_id¶
- Name:
package-id
- Type:
- Default Value:
- Flags:
Full package ID this transaction is acting on. e.g. ‘gnome-power-manager;0.1.2;i386;fedora’
New in version 0.5.2.
- PackageKitGlib.Progress.props.percentage¶
- Name:
percentage
- Type:
- Default Value:
-1
- Flags:
Percentage complete of this transaction.
New in version 0.5.2.
- PackageKitGlib.Progress.props.remaining_time¶
- Name:
remaining-time
- Type:
- Default Value:
0
- Flags:
Amount of time the transaction will take to complete in seconds or 0 if unknown.
New in version 0.5.2.
- PackageKitGlib.Progress.props.role¶
- Name:
role
- Type:
- Default Value:
0
- Flags:
Role of this transaction.
New in version 0.5.2.
- PackageKitGlib.Progress.props.sender¶
- Name:
sender
- Type:
- Default Value:
- Flags:
The D-Bus name of the client that started this transaction.
New in version 1.2.6.
- PackageKitGlib.Progress.props.speed¶
- Name:
speed
- Type:
- Default Value:
0
- Flags:
Transaction speed in bits per second or 0 if unknown.
New in version 0.5.2.
- PackageKitGlib.Progress.props.status¶
- Name:
status
- Type:
- Default Value:
0
- Flags:
Status of this transaction.
New in version 0.5.2.
- PackageKitGlib.Progress.props.transaction_flags¶
- Name:
transaction-flags
- Type:
- Default Value:
0
- Flags:
A #PkBitfield containing
PackageKitGlib.TransactionFlagEnum
associated with this transaction.New in version 0.8.8.
- PackageKitGlib.Progress.props.transaction_id¶
- Name:
transaction-id
- Type:
- Default Value:
- Flags:
ID used by this transaction.
New in version 0.5.2.
- PackageKitGlib.Progress.props.uid¶
- Name:
uid
- Type:
- Default Value:
0
- Flags:
The UID that started this transaction.
New in version 0.5.2.