GUPnPDLNA.ProfileGuesser¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Indicates support for profiles that are not part of the DLNA specification |
||
r/w/co |
Indicates that profile matching shouldbe strictly compliant with the DLNA specification |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Will be emitted when guessing DLNA profile for a URI has finished. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class GUPnPDLNA.ProfileGuesser(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod cleanup()¶
Cleans up the DLNA profiles. Provided to remove Valgrind noise. Not thread-safe. Do not call it if there is even a slightest chance that profile guessing will be performed during process lifetime. The profiles are not reloaded after cleanup.
- classmethod new(relaxed_mode, extended_mode)¶
- Parameters:
- Returns:
A new
GUPnPDLNA.ProfileGuesser
object.- Return type:
Creates a new guesser that will use specific DLNA profiles for matching - i.e. which profiles will be used depends on relaxed_mode and extended_mode.
- get_profile(name)¶
- Parameters:
name (
str
) – The name of the DLNA profile to be retrieved.- Returns:
A
GUPnPDLNA.Profile
object on success,None
otherwise.- Return type:
Lookups for
GUPnPDLNA.Profile
with given name.
- guess_profile_async(uri, timeout_in_ms)¶
- Parameters:
- Raises:
- Returns:
- Return type:
Asynchronously guesses DLNA profile for given uri. When guessing is done,
::done
signal is emitted on self.
- guess_profile_from_info(info)¶
- Parameters:
info (
GUPnPDLNA.Information
) – TheGUPnPDLNA.Information
object.- Returns:
A
GUPnPDLNA.Profile
object on success,None
otherwise.- Return type:
Guesses the profile which fits to passed info.
- guess_profile_sync(uri, timeout_in_ms)¶
- Parameters:
- Raises:
- Returns:
DLNA profile if any had matched,
None
otherwise.- dlna_info:
A place where to store DLNA information or
None
.
- Return type:
(
GUPnPDLNA.Profile
, dlna_info:GUPnPDLNA.Information
)
Synchronously guesses DLNA profile for given uri.
- list_profiles()¶
- Returns:
A
GLib.List
ofGUPnPDLNA.Profile
on success,None
otherwise.- Return type:
Gets a list of the all DLNA profiles supported by self.
Signal Details¶
- GUPnPDLNA.ProfileGuesser.signals.done(profile_guesser, info, dlna, error)¶
- Signal Name:
done
- Flags:
- Parameters:
profile_guesser (
GUPnPDLNA.ProfileGuesser
) – The object which received the signalinfo (
GUPnPDLNA.Information
) – URI metadata asGUPnPDLNA.Information
.dlna (
GUPnPDLNA.Profile
orNone
) – The results asGUPnPDLNA.Profile
.error (
GLib.Error
orNone
) – Contains details of the error if discovery failed, else isNone
.
Will be emitted when guessing DLNA profile for a URI has finished.
Property Details¶
- GUPnPDLNA.ProfileGuesser.props.extended_mode¶
- Name:
extended-mode
- Type:
- Default Value:
- Flags:
Whether profile matching should be done also against DLNA profiles not being a part of DLNA specification.