messagelistener

class openlp.plugins.presentations.lib.messagelistener.Controller(live)[source]

Bases: object

This is the Presentation listener who acts on events from the slide controller and passes the messages on the the correct presentation handlers.

activate()[source]

Active the presentation, and show it on the screen. Use the last slide number.

add_handler(controller, file, hide_mode, slide_no)[source]

Add a handler, which is an instance of a presentation and slidecontroller combination. If the slidecontroller has a display then load the presentation.

blank(hide_mode)[source]

Instruct the controller to blank the presentation.

first()[source]

Based on the handler passed at startup triggers the first slide.

last()[source]

Based on the handler passed at startup triggers the last slide.

next()[source]

Based on the handler passed at startup triggers the next slide event.

poll()[source]
previous()[source]

Based on the handler passed at startup triggers the previous slide event.

shutdown()[source]

Based on the handler passed at startup triggers slide show to shut down.

slide(slide)[source]

Go to a specific slide

stop()[source]

Instruct the controller to stop and hide the presentation.

unblank()[source]

Instruct the controller to unblank the presentation.

class openlp.plugins.presentations.lib.messagelistener.MessageListener(media_item)[source]

Bases: object

This is the Presentation listener who acts on events from the slide controller and passes the messages on the correct presentation handlers

blank(message)[source]

React to the message to blank the display.

Parameters:message – The message {1} is_live {2} slide
first(message)[source]

React to the message to move to the first slide.

Parameters:message – The message {1} is_live
hide(message)[source]

React to the message to show the desktop.

Parameters:message – The message {1} is_live
last(message)[source]

React to the message to move to the last slide.

Parameters:message – The message {1} is_live
next(message)[source]

React to the message to move to the next animation/slide.

Parameters:message – The message {1} is_live
previous(message)[source]

React to the message to move to the previous animation/slide.

Parameters:message – The message {1} is_live
shutdown(message)[source]

React to message to shutdown the presentation. I.e. end the show and close the file.

Parameters:message – The message {1} is_live
slide(message)[source]

React to the message to move to a specific slide.

Parameters:message – The message {1} is_live {2} slide
startup(message)[source]

Start of new presentation. Save the handler as any new presentations start here

timeout()[source]

The presentation may be timed or might be controlled by the application directly, rather than through OpenLP. Poll occasionally to check which slide is currently displayed so the slidecontroller view can be updated.

unblank(message)[source]

React to the message to unblank the display.

Parameters:message – The message {1} is_live