Class

SpiceClientGLibSmartcardManager

Description [src]

class SpiceClientGLib.SmartcardManager : GObject.Object
{
  /* No available fields */
}

The SpiceSmartcardManager struct is opaque and should not be accessed directly.

Hierarchy

hierarchy this SpiceSmartcardManager ancestor_0 GObject ancestor_0--this

Ancestors

Functions

spice_smartcard_manager_get

SpiceSmartcardManager is a singleton, use this function to get a pointer to it. A new SpiceSmartcardManager instance will be created the first time this function is called.

Instance methods

spice_smartcard_manager_get_readers

Gets the list of smartcard readers that are currently available, they can be either software (emulated) readers, or hardware ones.

since: 0.20

spice_smartcard_manager_insert_card

Simulates the insertion of a smartcard in the guest. Valid certificates must have been set in SpiceSession: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.

since: 0.7

spice_smartcard_manager_remove_card

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.

since: 0.7

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

SpiceClientGLib.SmartcardManager::card-inserted

The SpiceSmartcardManager::card-inserted signal is emitted whenever a smartcard is inserted in a reader.

SpiceClientGLib.SmartcardManager::card-removed

The SpiceSmartcardManager::card-removed signal is emitted whenever a smartcard was removed from a reader.

SpiceClientGLib.SmartcardManager::reader-added

The SpiceSmartcardManager::reader-added signal is emitted whenever a new smartcard reader (software or hardware) has been plugged in.

SpiceClientGLib.SmartcardManager::reader-removed

The SpiceSmartcardManager::reader-removed signal is emitted whenever a smartcard reader (software or hardware) has been removed.

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct SpiceClientGLibSmartcardManagerClass {
  GObjectClass parent_class;
  void (* reader_added) (
    SpiceSmartcardManager* manager,
    SpiceSmartcardReader* reader
  );
  void (* reader_removed) (
    SpiceSmartcardManager* manager,
    SpiceSmartcardReader* reader
  );
  void (* card_inserted) (
    SpiceSmartcardManager* manager,
    SpiceSmartcardReader* reader
  );
  void (* card_removed) (
    SpiceSmartcardManager* manager,
    SpiceSmartcardReader* reader
  );
  
}

Class structure for SpiceSmartcardManager.

Class members
parent_class: GObjectClass

Parent class.

reader_added: void (* reader_added) ( SpiceSmartcardManager* manager, SpiceSmartcardReader* reader )

Signal class handler for the SpiceSmartcardManager::reader_added signal.

reader_removed: void (* reader_removed) ( SpiceSmartcardManager* manager, SpiceSmartcardReader* reader )

Signal class handler for the SpiceSmartcardManager::reader_removed signal.

card_inserted: void (* card_inserted) ( SpiceSmartcardManager* manager, SpiceSmartcardReader* reader )

Signal class handler for the SpiceSmartcardManager::card_inserted signal.

card_removed: void (* card_removed) ( SpiceSmartcardManager* manager, SpiceSmartcardReader* reader )

Signal class handler for the SpiceSmartcardManager::card_removed signal.

Virtual methods

SpiceClientGLib.SmartcardManagerClass.card_inserted

Signal class handler for the SpiceSmartcardManager::card_inserted signal.

SpiceClientGLib.SmartcardManagerClass.card_removed

Signal class handler for the SpiceSmartcardManager::card_removed signal.

SpiceClientGLib.SmartcardManagerClass.reader_added

Signal class handler for the SpiceSmartcardManager::reader_added signal.

SpiceClientGLib.SmartcardManagerClass.reader_removed

Signal class handler for the SpiceSmartcardManager::reader_removed signal.