PluginInfo
Object Hierarchy:
Peas.PluginInfo
Peas.PluginInfo
Peas.PluginInfo
GLib.Object
GLib.Object
GLib.Object->Peas.PluginInfo
Description:
[ CCode ( type_id = "peas_plugin_info_get_type ()" ) ]public sealed class PluginInfo : Object
A PluginInfo contains all the information available about a plugin.
All this information comes from the related plugin info file, whose file extension is ".plugin". Here is an example of such a plugin
file, in the [struct@GLib.KeyFile] format:
```toml [Plugin] Module=helloworld Depends=foo;bar;baz Loader=python Name=Hello World Description=Displays "Hello World" Authors=Steve
Frécinaux <code@istique.net> Copyright=Copyright © 2009-10 Steve Frécinaux
Website=https://wiki.gnome.org/Projects/Libpeas Help=http://library.gnome.org/devel/libpeas/stable/ Hidden=false ```
Content:
Properties:
Static methods:
Creation methods:
Methods:
public unowned string [] get_authors ()
Gets a null -terminated array of
strings with the authors of the plugin.
public unowned string get_copyright ()
Gets the copyright of the plugin.
public unowned string get_data_dir ()
Gets the data dir of the plugin.
public unowned string [] get_dependencies ()
Gets the dependencies of the plugin.
public unowned string get_description ()
Gets the description of the plugin.
public unowned string ? get_external_data (string key)
Gets external data specified for the plugin.
public unowned string get_help_uri ()
Gets the help URI of the plugin.
public unowned string get_icon_name ()
Gets the icon name of the plugin.
public unowned string get_module_dir ()
Gets the module directory.
public unowned string get_module_name ()
Gets the module name.
public unowned string get_name ()
Gets the name of the plugin.
public Resource get_resource (string ? filename) throws Error
Creates a new Resource for the given
filename
located in the module directory.
public Settings ? get_settings (string ? schema_id)
Creates a new [class@Gio.
public unowned string get_version ()
Gets the version of the plugin.
public unowned string get_website ()
Gets the website of the plugin.
public bool has_dependency (string module_name)
Check if the plugin depends on another plugin.
public bool is_available () throws Error
Check if the plugin is available.
public bool is_builtin ()
Check if the plugin is a builtin plugin.
public bool is_hidden ()
Check if the plugin is a hidden plugin.
public bool is_loaded ()
Check if the plugin is loaded.
public void load_resource (string ? filename) throws Error
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