EDataServer.SourceRegistryWatcher¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | new(registry, extension_name) | 
| get_extension_name() | |
| get_registry() | |
| reclaim() | 
Virtual Methods¶
| Inherited: | GObject.Object (7) | 
|---|
| do_appeared(source) | |
| do_disappeared(source) | |
| do_filter(source) | 
Properties¶
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| extension-name | str | r/w/co | |
| registry | EDataServer.SourceRegistry | r/w/co | Data source registry | 
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
| Name | Short Description | 
|---|---|
| appeared | A signal emitted when the source is enabled or added and it had been considered for inclusion with the ESourceRegistryWatcher ::filtersignal. | 
| disappeared | A signal emitted when the source is disabled or removed and it had been considered for inclusion with the ESourceRegistryWatcher ::filtersignal earlier. | 
| filter | A filter signal which verifies whether the source can be considered for inclusion in the watcher or not. | 
Class Details¶
- 
class EDataServer.SourceRegistryWatcher(**kwargs)¶
- Bases: - GObject.Object- Abstract: - No - Structure: - EDataServer.SourceRegistryWatcherClass- Contains only private data that should be read and manipulated using the functions below. - 
classmethod new(registry, extension_name)¶
- Parameters: - registry (EDataServer.SourceRegistry) – anEDataServer.SourceRegistry
- extension_name (strorNone) – optional extension name to filter sources with, orNone
 - Returns: - Return type: - Creates a new - EDataServer.SourceRegistryWatcherinstance.- The extension_name can be used as a complementary filter to - EDataServer.SourceRegistryWatcher- ::filtersignal.- New in version 3.26. 
- registry (
 - 
get_extension_name()¶
- Returns: - The extension name passed to - EDataServer.SourceRegistryWatcher.new().- Return type: - stror- None- New in version 3.26. 
 - 
get_registry()¶
- Returns: - an - EDataServer.SourceRegistry- Return type: - EDataServer.SourceRegistry- Returns the - EDataServer.SourceRegistrypassed to- EDataServer.SourceRegistryWatcher.new().- New in version 3.26. 
 - 
reclaim()¶
- Reclaims all available sources satisfying the - EDataServer.SourceRegistryWatcher- ::filtersignal. It doesn’t notify about disappeared sources, it notifies only on those appeared.- New in version 3.26. 
 - 
do_appeared(source) virtual¶
- Parameters: - source ( - EDataServer.Source) –
 - 
do_disappeared(source) virtual¶
- Parameters: - source ( - EDataServer.Source) –
 - 
do_filter(source) virtual¶
- Parameters: - source ( - EDataServer.Source) –- Return type: - bool
 
- 
classmethod 
Signal Details¶
- 
EDataServer.SourceRegistryWatcher.signals.appeared(source_registry_watcher, source)¶
- Signal Name: - appeared- Flags: - Parameters: - source_registry_watcher (EDataServer.SourceRegistryWatcher) – The object which received the signal
- source (EDataServer.Source) – theEDataServer.Sourcewhich appeared
 - A signal emitted when the source is enabled or added and it had been considered for inclusion with the ESourceRegistryWatcher - ::filtersignal.- New in version 3.26. 
- source_registry_watcher (
- 
EDataServer.SourceRegistryWatcher.signals.disappeared(source_registry_watcher, source)¶
- Signal Name: - disappeared- Flags: - Parameters: - source_registry_watcher (EDataServer.SourceRegistryWatcher) – The object which received the signal
- source (EDataServer.Source) – theEDataServer.Sourcewhich disappeared
 - A signal emitted when the source is disabled or removed and it had been considered for inclusion with the ESourceRegistryWatcher - ::filtersignal earlier.- New in version 3.26. 
- source_registry_watcher (
- 
EDataServer.SourceRegistryWatcher.signals.filter(source_registry_watcher, source)¶
- Signal Name: - filter- Flags: - Parameters: - source_registry_watcher (EDataServer.SourceRegistryWatcher) – The object which received the signal
- source (EDataServer.Source) – theEDataServer.Sourceto filter
 - Returns: - Return type: - A filter signal which verifies whether the source can be considered for inclusion in the watcher or not. If none is set then all the sources are included. - New in version 3.26. 
- source_registry_watcher (
Property Details¶
- 
EDataServer.SourceRegistryWatcher.props.extension_name¶
- Name: - extension-name- Type: - str- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- Optional extension name, to consider sources with only. It can be - None, to check for all sources. This is a complementary filter to- EDataServer.SourceRegistryWatcher- ::filtersignal.- New in version 3.26. 
- 
EDataServer.SourceRegistryWatcher.props.registry¶
- Name: - registry- Type: - EDataServer.SourceRegistry- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- The - EDataServer.SourceRegistrymanages- EDataServer.Sourceinstances.- New in version 3.26.