C# Class Plasma.ContainmentActions

Inheritance: Qyoto.QObject, IDisposable
Afficher le fichier Open project: 0xd34df00d/Qross

Private Properties

Свойство Type Description
ConfigurationAccepted void
ContainmentActions System
ContextEvent void
ContextualActions List
CreateConfigurationInterface Qyoto.QWidget
Event bool
Init void
Save void

Méthodes publiques

Méthode Description
ConfigurationRequired ( ) : bool
ContainmentActions ( QObject parent ) : System Default constructor for an empty or null containmentactions
ContainmentActions ( QObject parent, List args ) : System This constructor is to be used with the plugin loading systems found in KPluginInfo and KService. The argument list is expected to have one element: the KService service ID for the desktop entry. name="parent" a QObject parent; you probably want to pass in 0 name="args" a list of strings containing one entry: the service id
DataEngine ( string name ) : DataEngine Loads the given DataEngine Tries to load the data engine given by name. Each engine is only loaded once, and that instance is re-used on all subsequent requests. If the data engine was not found, an invalid data engine is returned (see DataEngine.IsValid()). Note that you should not delete the returned engine. name="name" Name of the data engine to load
Dispose ( ) : void
EventToString ( Qyoto.QEvent arg1 ) : string Turns a mouse or wheel event into a string suitable for a ContainmentActions
IsInitialized ( ) : bool
ListContainmentActionsInfo ( ) : List Returns a list of all known containmentactions plugins.
Load ( Plasma parent, Kimono.KPluginInfo info ) : ContainmentActions
Load ( Plasma parent, Kimono.KPluginInfo info, List args ) : ContainmentActions Attempts to load a containmentactions Returns a pointer to the containmentactions if successful. The caller takes responsibility for the containmentactions, including deleting it when no longer needed. name="parent" the parent containment. Required; if you send null you'll get back null. name="info" KPluginInfo object for the desired containmentactions name="args" to send the containmentactions extra arguments
Load ( Plasma parent, string name ) : ContainmentActions
Load ( Plasma parent, string name, List args ) : ContainmentActions Attempts to load a containmentactions Returns a pointer to the containmentactions if successful. The caller takes responsibility for the containmentactions, including deleting it when no longer needed. name="parent" the parent containment. Required; if you send null you'll get back null. name="name" the plugin name, as returned by KPluginInfo.PluginName() name="args" to send the containmentactions extra arguments
PackageStructure ( ) : Plasma.PackageStructure Returns the Package specialization for containmentactions.
Restore ( Kimono.KConfigGroup config ) : void This method should be called once the plugin is loaded or settings are changed. name="config" Config group to load settings

Méthodes protégées

Méthode Description
Containment ( ) : Containment
ContainmentActions ( Type dummy ) : System
CreateProxy ( ) : void
Paste ( QPointF scenePos, Qyoto.QPoint screenPos ) : void pastes the clipboard at a given location
SetConfigurationRequired ( ) : void
SetConfigurationRequired ( bool needsConfiguring ) : void When the containmentactions needs to be configured before being usable, this method can be called to denote that action is required name="needsConfiguring" true if the applet needs to be configured, or false if it doesn't

Private Methods

Méthode Description
ConfigurationAccepted ( ) : void
ContainmentActions ( ) : System
ContextEvent ( Qyoto.QEvent arg1 ) : void
ContextualActions ( ) : List
CreateConfigurationInterface ( QWidget parent ) : QWidget
Event ( Qyoto.QEvent e ) : bool
Init ( Kimono.KConfigGroup config ) : void
Save ( Kimono.KConfigGroup config ) : void

Method Details

ConfigurationRequired() public méthode

public ConfigurationRequired ( ) : bool
Résultat bool

Containment() protected méthode

protected Containment ( ) : Containment
Résultat Containment

ContainmentActions() public méthode

Default constructor for an empty or null containmentactions
public ContainmentActions ( QObject parent ) : System
parent Qyoto.QObject
Résultat System

ContainmentActions() public méthode

This constructor is to be used with the plugin loading systems found in KPluginInfo and KService. The argument list is expected to have one element: the KService service ID for the desktop entry. name="parent" a QObject parent; you probably want to pass in 0 name="args" a list of strings containing one entry: the service id
public ContainmentActions ( QObject parent, List args ) : System
parent Qyoto.QObject
args List
Résultat System

ContainmentActions() protected méthode

protected ContainmentActions ( Type dummy ) : System
dummy System.Type
Résultat System

CreateProxy() protected méthode

protected CreateProxy ( ) : void
Résultat void

DataEngine() public méthode

Loads the given DataEngine Tries to load the data engine given by name. Each engine is only loaded once, and that instance is re-used on all subsequent requests. If the data engine was not found, an invalid data engine is returned (see DataEngine.IsValid()). Note that you should not delete the returned engine. name="name" Name of the data engine to load
public DataEngine ( string name ) : DataEngine
name string
Résultat DataEngine

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EventToString() public static méthode

Turns a mouse or wheel event into a string suitable for a ContainmentActions
public static EventToString ( Qyoto.QEvent arg1 ) : string
arg1 Qyoto.QEvent
Résultat string

IsInitialized() public méthode

public IsInitialized ( ) : bool
Résultat bool

ListContainmentActionsInfo() public static méthode

Returns a list of all known containmentactions plugins.
public static ListContainmentActionsInfo ( ) : List
Résultat List

Load() public static méthode

public static Load ( Plasma parent, Kimono.KPluginInfo info ) : ContainmentActions
parent Plasma
info Kimono.KPluginInfo
Résultat ContainmentActions

Load() public static méthode

Attempts to load a containmentactions Returns a pointer to the containmentactions if successful. The caller takes responsibility for the containmentactions, including deleting it when no longer needed. name="parent" the parent containment. Required; if you send null you'll get back null. name="info" KPluginInfo object for the desired containmentactions name="args" to send the containmentactions extra arguments
public static Load ( Plasma parent, Kimono.KPluginInfo info, List args ) : ContainmentActions
parent Plasma
info Kimono.KPluginInfo
args List
Résultat ContainmentActions

Load() public static méthode

public static Load ( Plasma parent, string name ) : ContainmentActions
parent Plasma
name string
Résultat ContainmentActions

Load() public static méthode

Attempts to load a containmentactions Returns a pointer to the containmentactions if successful. The caller takes responsibility for the containmentactions, including deleting it when no longer needed. name="parent" the parent containment. Required; if you send null you'll get back null. name="name" the plugin name, as returned by KPluginInfo.PluginName() name="args" to send the containmentactions extra arguments
public static Load ( Plasma parent, string name, List args ) : ContainmentActions
parent Plasma
name string
args List
Résultat ContainmentActions

PackageStructure() public static méthode

Returns the Package specialization for containmentactions.
public static PackageStructure ( ) : Plasma.PackageStructure
Résultat Plasma.PackageStructure

Paste() protected méthode

pastes the clipboard at a given location
protected Paste ( QPointF scenePos, Qyoto.QPoint screenPos ) : void
scenePos Qyoto.QPointF
screenPos Qyoto.QPoint
Résultat void

Restore() public méthode

This method should be called once the plugin is loaded or settings are changed. name="config" Config group to load settings
public Restore ( Kimono.KConfigGroup config ) : void
config Kimono.KConfigGroup
Résultat void

SetConfigurationRequired() protected méthode

protected SetConfigurationRequired ( ) : void
Résultat void

SetConfigurationRequired() protected méthode

When the containmentactions needs to be configured before being usable, this method can be called to denote that action is required name="needsConfiguring" true if the applet needs to be configured, or false if it doesn't
protected SetConfigurationRequired ( bool needsConfiguring ) : void
needsConfiguring bool
Résultat void