Public Member Functions | |
def | __init__ (self, id, config, callback_disconnect, enclosure) |
def | on_connection_closed (self, socket) |
def | on_connection_opened (self, socket_handler) |
def | synchronize (self) |
Public Attributes | |
callback_disconnect | |
enclosure | |
id | |
port | |
socket | |
webapp | |
Static Public Attributes | |
server_thread = None | |
Static Private Attributes | |
int | _last_idx = 0 |
A single GUIConnection exists per graphic interface. This object maintains the socket used for communication and keeps the state of the Mycroft data in sync with the GUIs data. Serves as a communication interface between Qt/QML frontend and Mycroft Core. This is bidirectional, e.g. "show me this visual" to the frontend as well as "the user just tapped this button" from the frontend. For the rough protocol, see: https://cgit.kde.org/scratch/mart/mycroft-gui.git/tree/transportProtocol.txt?h=newapi # nopep8 TODO: Implement variable deletion TODO: Implement 'models' support TODO: Implement events TODO: Implement data coming back from Qt to Mycroft
def mycroft.client.enclosure.base.GUIConnection.__init__ | ( | self, | |
id, | |||
config, | |||
callback_disconnect, | |||
enclosure | |||
) |
def mycroft.client.enclosure.base.GUIConnection.on_connection_closed | ( | self, | |
socket | |||
) |
def mycroft.client.enclosure.base.GUIConnection.on_connection_opened | ( | self, | |
socket_handler | |||
) |
def mycroft.client.enclosure.base.GUIConnection.synchronize | ( | self | ) |
|
staticprivate |
mycroft.client.enclosure.base.GUIConnection.callback_disconnect |
|
static |