Plug
Object Hierarchy:
Description:
Namespace: Switchboard
Package: switchboard-2.0
Content:
Enums:
Constants:
Properties:
- public bool can_show { get; set; }
Inform if the plug should be shown or not
- public Category category { get; construct; }
The category under which the plug will be stored.
- public string code_name { get; construct; }
The unique name representing the plug.
- public string description { get; construct; }
A short description of the plug.
- public string display_name { get; construct; }
The localised name of the plug.
- public string icon { get; construct; }
The icon representing the plug.
- public TreeMap<string,string?> supported_settings { get; construct; }
Creation methods:
- protected Plug ()
Methods:
- public abstract Widget get_widget ()
Returns the widget that contain the whole interface.
- public abstract void hidden ()
Called when the plug disappear to the user.
- public abstract async TreeMap<string,string> search (string search)
This function should return the widget that contain the whole interface.
- public abstract void search_callback (string location)
This function is used when the user click on a search result, it should show the selected setting (right tab…).
- public abstract void shown ()
Called when the plug appears to the user.
Signals:
- public signal void visibility_changed ()
Inform the application that the plug can now be listed in the available plugs. The application will also listen to the notify::can-show signal.
Inherited Members:
All known members inherited from class GLib.Object