Media
Object Hierarchy:
Description:
[
CCode ( type_id =
"osinfo_media_get_type ()" ) ]
public class Media :
Entity
Content:
Properties:
- public string application_id { owned get; set; }
Expected application ID (regular expression) for ISO9660 image/device.
- public string architecture { owned get; set; }
The target hardware architecture of this media.
- public bool eject_after_install { get; set; }
Whether the media should be ejected after the installation process.
- public string initrd_path { owned get; set; }
The path to the initrd image in the install tree.
- public bool installer { get; set; }
Whether media provides an installer for an OS.
- public int installer_reboots { get; set; }
If media is an installer, this property indicates the number of
reboots the installer takes before installation is complete.
- public bool installer_script { get; set; }
Whether the media supports installation via an install-script.
- public string kernel_path { owned get; set; }
The path to the kernel image in the install tree.
- public List<unowned string> languages { owned get; }
If media is an installer, this property indicates the languages that
can be used during automatic installations.
- public bool live { get; set; }
Whether media can boot directly an OS without any installations.
- public Os os { owned get; set; }
Os information for the current media.
- public string publisher_id { owned get; set; }
Expected publisher ID (regular expression) for ISO9660 image/device.
- public string system_id { owned get; set; }
Expected system ID (regular expression) for ISO9660 image/device.
- public string url { owned get; set; }
The URL to this media.
- public string volume_id { owned get; set; }
Expected volume ID (regular expression) for ISO9660 image/device.
- public int64 volume_size { get; set; }
Expected volume size, in bytes for ISO9660 image/device.
Static methods:
Creation methods:
- public Media (string id, string architecture)
Methods:
- public void add_install_script (InstallScript script)
Adds an script
to the specified
this
- public unowned string get_application_id ()
If this is an ISO9660 image/device,
this function retrieves the expected application ID.
- public unowned string get_architecture ()
Retrieves the target hardware architecture of the OS
this provides.
- public bool get_eject_after_install ()
Whether this should ejected after
the installation procces.
- public unowned string get_initrd_path ()
Retrieves the path to the initrd image in the install tree.
- public InstallScriptList get_install_script_list ()
- public bool get_installer ()
Whether this provides an installer
for an OS.
- public int get_installer_reboots ()
If media is an installer, this method retrieves the number of reboots
the installer takes before installation is complete.
- public unowned string get_kernel_path ()
Retrieves the path to the kernel image in the install tree.
- public List<unowned string> get_languages ()
If media is an installer, this property indicates the languages that
can be used during automatic installations.
- public bool get_live ()
Whether this can boot directly an OS
without any installations.
- public Os get_os ()
- public OsVariantList get_os_variants ()
Gets the variants of the associated operating system.
- public unowned string get_publisher_id ()
If this is an ISO9660 image/device,
this function retrieves the expected publisher ID.
- public unowned string get_system_id ()
If this is an ISO9660 image/device,
this function retrieves the expected system ID.
- public unowned string get_url ()
The URL to the this
- public unowned string get_volume_id ()
If this is an ISO9660 image/device,
this function retrieves the expected volume ID.
- public int64 get_volume_size ()
- public bool is_bootable ()
- public bool matches (Media reference)
Determines whether the metadata for the unidentified
this is a match for the reference
media.
- public bool supports_installer_script ()
Whether this supports installation
using install scripts.
Inherited Members:
All known members inherited from class Osinfo.Entity
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