Package
Object Hierarchy:
Description:
Namespace: Pk
Package: packagekit-glib2
Content:
Properties:
- public string description { owned get; set; }
- public Group group { get; set; }
- public Info info { get; set; }
- public string license { owned get; set; }
- public string package_id { owned get; }
- public uint64 size { get; set; }
- public string summary { get; set; }
- public string[] update_bugzilla_urls { owned get; set; }
- public string update_changelog { owned get; set; }
- public string[] update_cve_urls { owned get; set; }
- public string update_issued { owned get; set; }
- public string update_obsoletes { owned get; set; }
- public Restart update_restart { get; set; }
- public Info update_severity { get; set; }
- public UpdateState update_state { get; set; }
- public string update_text { owned get; set; }
- public string update_updated { owned get; set; }
- public string update_updates { owned get; set; }
- public string[] update_vendor_urls { owned get; set; }
- public string url { owned get; set; }
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:
- public Package ()
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:
- public virtual signal void changed ()
The changed signal is emitted when the package data may have changed.
Inherited Members:
All known members inherited from class Pk.Source
All known members inherited from class GLib.Object