SpiceClientGLib.SmartcardManager¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
---|---|
|
The |
|
The |
|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class SpiceClientGLib.SmartcardManager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
SpiceClientGLib.SmartcardManager
struct is opaque and should not be accessed directly.- classmethod get()¶
- Returns:
a weak reference to the
SpiceClientGLib.SmartcardManager
- Return type:
SpiceClientGLib.SmartcardManager
is a singleton, use this function to get a pointer to it. A newSpiceClientGLib.SmartcardManager
instance will be created the first time this function is called
- get_readers()¶
- Returns:
a newly allocated list of
SpiceClientGLib.SmartcardReader
instances, orNone
if none were found. When no longer needed, the list must be freed after unreferencing its elements withGObject.boxed_free
()- Return type:
Gets the list of smartcard readers that are currently available, they can be either software (emulated) readers, or hardware ones.
New in version 0.20.
- insert_card()¶
- Returns:
True
if smartcard insertion was successfully simulated,False
if this failed, or if software smartcard support isn’t enabled.- Return type:
Simulates the insertion of a smartcard in the guest. Valid certificates must have been set in
SpiceClientGLib.Session
:smartcard-certificates
for software smartcard support to work. At the moment, only one software smartcard reader is supported, that’s why there is no parameter to indicate which reader to insert the card in.New in version 0.20.
- remove_card()¶
- Returns:
True
if smartcard removal was successfully simulated,False
if this failed, or if software smartcard support isn’t enabled.- Return type:
Simulates the removal of a smartcard in the guest. At the moment, only one software smartcard reader is supported, that’s why there is no parameter to indicate which reader to insert the card in.
New in version 0.20.
- do_card_inserted(reader) virtual¶
- Parameters:
reader (
SpiceClientGLib.SmartcardReader
) –
- do_card_removed(reader) virtual¶
- Parameters:
reader (
SpiceClientGLib.SmartcardReader
) –
- do_reader_added(reader) virtual¶
- Parameters:
reader (
SpiceClientGLib.SmartcardReader
) –
- do_reader_removed(reader) virtual¶
- Parameters:
reader (
SpiceClientGLib.SmartcardReader
) –
Signal Details¶
- SpiceClientGLib.SmartcardManager.signals.card_insertedcard_inserted(*fixme)¶
- Signal Name:
card-inserted
- Flags:
(FIXME pgi-docgen: arguments are missing here)
The
SpiceClientGLib.SmartcardManager
::card-inserted
signal is emitted whenever a smartcard is inserted in a reader
- SpiceClientGLib.SmartcardManager.signals.card_removedcard_removed(*fixme)¶
- Signal Name:
card-removed
- Flags:
(FIXME pgi-docgen: arguments are missing here)
The
SpiceClientGLib.SmartcardManager
::card-removed
signal is emitted whenever a smartcard was removed from a reader.
- SpiceClientGLib.SmartcardManager.signals.reader_addedreader_added(*fixme)¶
- Signal Name:
reader-added
- Flags:
(FIXME pgi-docgen: arguments are missing here)
The
SpiceClientGLib.SmartcardManager
::reader-added
signal is emitted whenever a new smartcard reader (software or hardware) has been plugged in.
- SpiceClientGLib.SmartcardManager.signals.reader_removedreader_removed(*fixme)¶
- Signal Name:
reader-removed
- Flags:
(FIXME pgi-docgen: arguments are missing here)
The
SpiceClientGLib.SmartcardManager
::reader-removed
signal is emitted whenever a smartcard reader (software or hardware) has been removed.