|
Ginga
0.13.6.1771-df200
The iTV middleware.
|
#include <Media.h>


Public Member Functions | |
| Media (const string &, const string &, const string &) | |
| virtual | ~Media () |
| string | getObjectTypeAsString () override |
| string | toString () override |
| void | setProperty (const string &, const string &, Time dur=0) override |
| void | sendKeyEvent (const string &, bool) override |
| void | sendTickEvent (Time, Time, Time) override |
| bool | startTransition (Event *, Event::Transition) override |
| void | endTransition (Event *, Event::Transition) override |
| virtual bool | isFocused () |
| virtual bool | getZ (int *, int *) |
| virtual void | redraw (cairo_t *) |
| string | getId () |
| Document * | getDocument () |
| void | initDocument (Document *) |
| Composition * | getParent () |
| void | initParent (Composition *) |
| const list< string > * | getAliases () |
| bool | hasAlias (const string &) |
| void | addAlias (const string &) |
| const set< Event * > * | getEvents () |
| Event * | getEvent (Event::Type, const string &) |
| Event * | getAttributionEvent (const string &) |
| void | addAttributionEvent (const string &) |
| Event * | getPresentationEvent (const string &) |
| void | addPresentationEvent (const string &, Time, Time) |
| Event * | getSelectionEvent (const string &) |
| void | addSelectionEvent (const string &) |
| Event * | getLambda () |
| bool | isOccurring () |
| bool | isPaused () |
| bool | isSleeping () |
| virtual string | getProperty (const string &) |
| list< pair< Action, Time > > * | getDelayedActions () |
| void | addDelayedAction (Event *, Event::Transition, const string &value="", Time delay=0) |
| bool | getData (const string &, void **) |
| bool | setData (const string &, void *, UserDataCleanFunc fn=nullptr) |
Protected Member Functions | |
| void | doStop () override |
| virtual void | doStart () |
Protected Attributes | |
| string | _mime |
| string | _uri |
| Player * | _player |
| string | _id |
| Document * | _doc |
| Composition * | _parent |
| list< string > | _aliases |
| Time | _time |
| map< string, string > | _properties |
| Event * | _lambda |
| set< Event * > | _events |
| list< pair< Action, Time > > | _delayed |
| UserData | _udata |
| Media::Media | ( | const string & | id, |
| const string & | mime, | ||
| const string & | uri | ||
| ) |
References _mime, _player, _uri, and mime_table_index().
|
virtual |
References doStop().
|
inherited |
References Object::_aliases, and tryinsert.
Referenced by ParserState::pushContext(), ParserState::pushMedia(), ParserState::pushNcl(), and Formatter::start().
|
inherited |
References Object::_events, Event::ATTRIBUTION, and Object::getAttributionEvent().
Referenced by MediaSettings::MediaSettings(), Formatter::obtainEvent(), and ParserState::pushProperty().
|
inherited |
References Object::_delayed, Object::_time, Action::event, Action::transition, and Action::value.
Referenced by endTransition().
References Object::_events, Object::getPresentationEvent(), Event::PRESENTATION, and Event::setInterval().
Referenced by Object::Object(), Formatter::obtainEvent(), and ParserState::pushArea().
|
inherited |
References Object::_events, Object::getSelectionEvent(), and Event::SELECTION.
Referenced by Formatter::obtainEvent(), and ParserState::popNcl().
|
protectedvirtualinherited |
References Object::_time.
Referenced by Switch::endTransition(), endTransition(), and Context::endTransition().
|
overrideprotectedvirtual |
Reimplemented from Object.
References _player, Object::doStop(), Player::getState(), GINGA_NAMESPACE_END, Player::SLEEPING, and Player::stop().
Referenced by endTransition(), and ~Media().
|
overridevirtual |
Implements Object.
References Object::_doc, Object::_events, _player, Object::_time, Object::addDelayedAction(), Event::ATTRIBUTION, Object::doStart(), doStop(), Document::evalAction(), Document::evalPropertyRef(), g_assert(), g_assert_nonnull(), Event::getFullId(), Event::getId(), Event::getInterval(), Event::getParameter(), Event::getType(), GINGA_TIME_ARGS, GINGA_TIME_FORMAT, Event::isLambda(), Object::isOccurring(), parse_time(), Event::PRESENTATION, Event::SELECTION, setProperty(), Event::START, Event::STOP, and TRACE.
|
inherited |
References Object::_aliases.
|
inherited |
References Event::ATTRIBUTION, and Object::getEvent().
Referenced by Object::addAttributionEvent(), Formatter::obtainEvent(), ParserState::resolveInterfaceRef(), and MediaSettings::updateCurrentFocus().
|
inherited |
References Object::_udata, and UserData::getData().
References Object::_delayed.
|
inherited |
References Object::_doc.
|
inherited |
References Object::_events.
Referenced by Object::getAttributionEvent(), Object::getPresentationEvent(), Object::getSelectionEvent(), and Formatter::obtainEvent().
|
inherited |
References Object::_events.
|
inherited |
|
inherited |
References Object::_lambda, and g_assert_nonnull().
Referenced by Formatter::obtainFormatterEventFromBind(), ParserState::resolveInterfaceRef(), sendTickEvent(), Formatter::start(), and Switch::startTransition().
|
overridevirtual |
Implements Object.
Reimplemented in MediaSettings.
|
inherited |
References Object::_parent.
Referenced by Document::evalAction().
|
inherited |
References Object::getEvent(), and Event::PRESENTATION.
Referenced by Object::addPresentationEvent(), Object::Object(), Formatter::obtainEvent(), and ParserState::resolveInterfaceRef().
|
virtualinherited |
Reimplemented in Context.
References Object::_properties.
Referenced by Document::evalPropertyRef(), Context::getProperty(), and setProperty().
|
inherited |
References Object::getEvent(), and Event::SELECTION.
Referenced by Object::addSelectionEvent(), Formatter::obtainEvent(), and ParserState::popNcl().
|
virtual |
Reimplemented in MediaSettings.
References _player, g_assert_nonnull(), Player::getZ(), and Object::isSleeping().
Referenced by cmpz().
|
inherited |
References Object::_aliases.
Referenced by Composition::getChildByIdOrAlias(), Document::getObjectByIdOrAlias(), and ParserState::resolveComponentRef().
|
inherited |
References Object::_doc, and g_assert_nonnull().
Referenced by Document::addObject().
|
inherited |
References Object::_parent, and g_assert_nonnull().
Referenced by Composition::addChild().
|
virtual |
Reimplemented in MediaSettings.
References _player, g_assert_nonnull(), Player::isFocused(), and Object::isOccurring().
|
inherited |
References Object::_lambda, g_assert_nonnull(), Event::getState(), and Event::OCCURRING.
Referenced by endTransition(), Document::evalAction(), isFocused(), Object::sendTickEvent(), and startTransition().
|
inherited |
References Object::_lambda, g_assert_nonnull(), Event::getState(), and Event::PAUSED.
|
inherited |
References Object::_lambda, g_assert_nonnull(), Event::getState(), and Event::SLEEPING.
|
virtual |
Reimplemented in MediaSettings.
References _player, Object::isSleeping(), and Player::redraw().
|
overridevirtual |
Reimplemented from Object.
References Object::_doc, Object::_events, _player, Document::evalAction(), g_assert_nonnull(), Player::getProperty(), Document::getSettings(), Player::isFocused(), MediaSettings::scheduleFocusUpdate(), Event::SELECTION, Player::sendKeyEvent(), Event::START, Event::STOP, TRACE, and xstrhasprefix().
Reimplemented from Object.
Reimplemented in MediaSettings.
References Object::_doc, _player, Object::_time, Document::evalAction(), g_assert_nonnull(), Player::getDuration(), Player::getEOS(), Event::getFullId(), Object::getLambda(), GINGA_TIME_ARGS, GINGA_TIME_FORMAT, GINGA_TIME_IS_VALID, Player::incTime(), Object::sendTickEvent(), Event::STOP, and TRACE.
Referenced by MediaSettings::sendTickEvent().
|
inherited |
References Object::_udata, and UserData::setData().
|
overridevirtual |
Reimplemented from Object.
Reimplemented in MediaSettings.
References _player, g_assert(), Object::getProperty(), GINGA_TIME_IS_VALID, Player::schedulePropertyAnimation(), Object::setProperty(), and Player::setProperty().
Referenced by endTransition(), and MediaSettings::setProperty().
|
overridevirtual |
Implements Object.
References Object::_doc, Object::_id, _mime, _player, Object::_properties, _uri, Event::ATTRIBUTION, Player::createPlayer(), g_assert(), Document::getData(), Event::getType(), Event::isLambda(), Object::isOccurring(), Event::PRESENTATION, Event::SELECTION, Player::setProperty(), Event::START, Player::start(), Event::STOP, and unlikely.
|
overridevirtual |
Reimplemented from Object.
References _mime, _player, _uri, Object::toString(), and xstrbuild().
|
protectedinherited |
Referenced by Object::addAlias(), Object::getAliases(), Object::hasAlias(), and Object::toString().
Referenced by Object::addDelayedAction(), Object::doStop(), Object::getDelayedActions(), and Object::sendTickEvent().
|
protectedinherited |
Referenced by Composition::addChild(), Switch::endTransition(), endTransition(), Context::endTransition(), Object::getDocument(), Object::initDocument(), Object::Object(), sendKeyEvent(), sendTickEvent(), Object::sendTickEvent(), Switch::startTransition(), startTransition(), and MediaSettings::updateCurrentFocus().
|
protectedinherited |
|
protectedinherited |
Referenced by Object::getId(), Object::Object(), startTransition(), and Object::toString().
|
protectedinherited |
Referenced by Object::getLambda(), Object::isOccurring(), Object::isPaused(), Object::isSleeping(), and Object::Object().
|
protected |
Referenced by Media(), startTransition(), and toString().
|
protectedinherited |
Referenced by Object::getParent(), Object::initParent(), Object::Object(), and Object::toString().
|
protected |
Referenced by doStop(), endTransition(), getZ(), isFocused(), Media(), redraw(), sendKeyEvent(), sendTickEvent(), setProperty(), startTransition(), and toString().
|
protectedinherited |
Referenced by Object::getProperty(), Object::setProperty(), startTransition(), and Object::toString().
|
protectedinherited |
|
protectedinherited |
Referenced by Object::getData(), and Object::setData().
|
protected |
Referenced by Media(), startTransition(), and toString().