Package
Object Hierarchy:
Description:
[
CCode ( type_id =
"pk_package_get_type ()" ) ]
public class Package :
Source
Content:
Properties:
Static methods:
- public static string id_build (string name, string version, string arch, string data)
Generate a PackageID.
- public static bool id_check (string package_id)
Check if a Packageid is well formed.
- public static bool id_equal_fuzzy_arch (string package_id1, string package_id2)
Only compare the name, version, and arch, where the architecture will
fuzzy match with i*86.
- public static string[] id_split (string package_id)
Splits a PackageID into the correct number of parts, checking the
correct number of delimiters are present.
- public static string id_to_printable (string package_id)
Formats the PackageID to be printable to the user.
- public static string[] ids_add_id (string package_ids, string package_id)
Adds a package_id to an existing list.
- public static string[] ids_add_ids (string package_ids, string package_ids_new)
Adds a package_id to an existing list.
- public static bool ids_check (string package_ids)
Check the string array of package_id's for validity
- public static string[] ids_from_id (string package_id)
Form a composite string array of package_id's from a single package_id
- public static string[] ids_from_string (string package_id)
Form a composite string array of package_id's from a delimited string
- public static bool ids_present_id (string package_ids, string package_id)
Finds out if a package ID is present in the list.
- public static string[] ids_remove_id (string package_ids, string package_id)
Removes a package ID from the the list.
- public static string ids_to_string (string package_ids)
Cats the string array of package_id's into one delimited string
Creation methods:
Methods:
- public bool equal (Package package2)
Do the Package's have the same ID.
- public bool equal_id (Package package2)
Do the Package's have the same ID.
- public unowned string get_arch ()
Gets the package arch.
- public unowned string get_data ()
Gets the package data, which is usually the repository ID that
contains the package.
- public unowned string get_id ()
Gets the package object ID
- public Info get_info ()
Gets the package object ID
- public unowned string get_name ()
Gets the package name.
- public unowned string get_summary ()
Gets the package object ID
- public Info get_update_severity ()
Returns the this update severity.
- public unowned string get_version ()
Gets the package version.
- public bool parse (string data) throws Error
Parses the data to populate the Package.
- public void print ()
Prints details about the package to standard out.
- public bool set_id (string package_id) throws Error
Sets the package object to have the given ID
- public void set_info (Info info)
Sets the package info enum.
- public void set_summary (string summary)
Sets the package summary.
- public void set_update_severity (Info update_severity)
Set an update severity for the this.
Signals:
Inherited Members:
All known members inherited from class Pk.Source
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