PackageSack
Object Hierarchy:
Description:
[ CCode ( type_id = "pk_package_sack_get_type ()" ) ]
public class PackageSack : Object
Content:
Creation methods:
Methods:
- public bool add_package (Package package)
Adds a package to the sack.
- public bool add_package_by_id (string package_id) throws Error
Adds a package reference to the sack.
- public bool add_packages_from_file (File file) throws Error
Adds packages from package-list file to a
PackageSack.
- public virtual void changed ()
- public void clear ()
Empty all the packages from the sack
- public PackageSack filter (PackageSackFilterFunc filter_cb)
Returns a new package sack which only matches packages that return
true
from the filter function.
- public PackageSack filter_by_info (Info info)
Returns a new package sack which only matches packages that match the
specified info enum value.
- public Package find_by_id (string package_id)
Finds a package in a sack from reference.
- public Package find_by_id_name_arch (string package_id)
Finds a package in a sack by package name and architecture.
- public GenericArray<unowned Package> get_array ()
Gets the package array from the sack
- public bool get_details (Cancellable? cancellable = null) throws Error
Gets the properties the daemon supports.
- public async bool get_details_async (Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Merges in details about packages.
- public string[] get_ids ()
Returns all the Package IDs in the sack
- public uint get_size ()
Gets the number of packages in the sack
- public uint64 get_total_bytes ()
Gets the total size of the package sack in bytes.
- public bool get_update_detail (Cancellable? cancellable = null) throws Error
Gets the properties the daemon supports.
- public async bool get_update_detail_async (Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Merges in update details about packages.
- public bool remove_by_filter (PackageSackFilterFunc filter_cb)
Removes from the package sack any packages that return false
from the filter function.
- public bool remove_package (Package package)
Removes a package reference from the sack.
- public bool remove_package_by_id (string package_id)
Removes a package reference from the sack.
- public bool resolve (Cancellable? cancellable = null) throws Error
Gets the properties the daemon supports.
- public async bool resolve_async (Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Merges in details about packages using resolve.
- public void sort (PackageSackSortType type)
Sorts the package sack
- public bool to_file (File file) throws Error
Write the contents of a PackageSack to a
package-list file.
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