LIRC libraries
Linux Infrared Remote Control
|
Interface to receive lircrc-translated keypresses. More...
Public Member Functions | |
__init__ (self, str program, str lircrc_path=None, str socket_path=None) | |
readline (self, float timeout=None) | |
Implements AbstractConnection.readline(). | |
bool | has_data (self) |
Implements AbstractConnection.has_data() | |
int | fileno (self) |
Implements AbstractConnection.fileno(). | |
close (self) | |
Implements AbstractConnection.close() | |
![]() | |
__enter__ (self) | |
__exit__ (self, exc_type, exc, traceback) | |
Protected Attributes | |
_connection = RawConnection(socket_path, program) | |
_lircrc = _client.lirc_readconfig(lircrc_path) | |
_program = program | |
list | _buffer = [] |
Interface to receive lircrc-translated keypresses.
This is basically built on top of lirc_code2char() and as such supporting centralized translations using lircrc_class. See lircrcd(8).
lirc.client.LircdConnection.__init__ | ( | self, | |
str | program, | ||
str | lircrc_path = None, | ||
str | socket_path = None ) |
lirc.client.LircdConnection.close | ( | self | ) |
Implements AbstractConnection.close()
Reimplemented from lirc.client.AbstractConnection.
int lirc.client.LircdConnection.fileno | ( | self | ) |
Implements AbstractConnection.fileno().
Reimplemented from lirc.client.AbstractConnection.
bool lirc.client.LircdConnection.has_data | ( | self | ) |
Implements AbstractConnection.has_data()
Reimplemented from lirc.client.AbstractConnection.
lirc.client.LircdConnection.readline | ( | self, | |
float | timeout = None ) |
Implements AbstractConnection.readline().
Reimplemented from lirc.client.AbstractConnection.
|
protected |
|
protected |