#include <llmediaimplcommon.h>
Public Member Functions | |
LLMediaImplCommon () | |
virtual | ~LLMediaImplCommon () |
virtual bool | init () |
virtual bool | reset () |
virtual bool | setMimeType (const std::string url) |
virtual std::string | getMimeType () const |
virtual std::string | getMediaURL () const |
virtual std::string | getVersion () |
virtual bool | set404RedirectUrl (std::string redirect_url) |
virtual bool | clr404RedirectUrl () |
virtual bool | setBackgroundColor (unsigned int red, unsigned int green, unsigned int blue) const |
virtual bool | setCaretColor (unsigned int red, unsigned int green, unsigned int blue) const |
virtual bool | updateMedia () |
virtual bool | setRequestedMediaSize (int width, int height) |
virtual int | getMediaWidth () const |
virtual int | getMediaHeight () const |
virtual int | getMediaDepth () const |
virtual int | getMediaBufferSize () const |
virtual unsigned char * | getMediaData () |
virtual int | getMediaDataWidth () const |
virtual int | getMediaDataHeight () const |
virtual int | getTextureFormatInternal () const |
virtual int | getTextureFormatPrimary () const |
virtual int | getTextureFormatType () const |
virtual bool | setVolume (float volume) |
virtual float | getVolume () const |
virtual bool | addCommand (ECommand cmd) |
virtual bool | clearCommand () |
virtual bool | updateCommand () |
LLMediaBase::ECommand | nextCommand () |
virtual LLMediaBase::EStatus | getStatus () |
bool | setStatus (LLMediaBase::EStatus status) |
virtual bool | seek (double time) |
virtual bool | setLooping (bool enable) |
virtual bool | isLooping () |
virtual bool | navigateTo (const std::string url) |
virtual bool | setAutoScaled (bool auto_scaled) |
virtual bool | isAutoScaled () const |
virtual bool | mouseDown (int x_pos, int y_pos) |
virtual bool | mouseUp (int x_pos, int y_pos) |
virtual bool | mouseMove (int x_pos, int y_pos) |
virtual bool | keyPress (int key_code) |
virtual bool | scrollByLines (int lines) |
virtual bool | focus (bool focus) |
virtual bool | unicodeInput (unsigned long uni_char) |
virtual bool | mouseLeftDoubleClick (int x_pos, int y_pos) |
virtual bool | navigateForward () |
virtual bool | navigateBack () |
virtual bool | canNavigateForward () |
virtual bool | canNavigateBack () |
virtual bool | enableCookies (bool enable) |
virtual bool | clearCache () |
virtual bool | clearCookies () |
virtual bool | enableProxy (bool enable, std::string proxy_host_name, int proxy_port) |
bool | addObserver (LLMediaObserver *subject) |
bool | remObserver (LLMediaObserver *subject) |
void | setImplMaker (LLMediaImplMakerBase *impl_maker) |
bool | supportsMediaType (std::string scheme, std::string type) |
Protected Member Functions | |
virtual bool | setMediaSize (int width, int height) |
virtual bool | setMediaDepth (int media_depth) |
Protected Attributes | |
LLMediaEmitter< LLMediaObserver > | mEventEmitter |
LLMediaImplMakerBase * | mImplMaker |
std::string | mMimeType |
std::string | mInitialURL |
bool | mAutoScaled |
int | mMediaWidth |
int | mMediaPrevWidth |
int | mMediaHeight |
int | mMediaPrevHeight |
int | mMediaDepth |
int | mMediaPrevDepth |
int | mMediaRowSpan |
int | mMediaRequestedWidth |
int | mMediaRequestedHeight |
float | mVolume |
LLMediaBase::ECommand | mCommand |
LLMediaBase::EStatus | mStatus |
bool | mLooping |
Definition at line 43 of file llmediaimplcommon.h.
LLMediaImplCommon::LLMediaImplCommon | ( | ) |
Definition at line 52 of file llmediaimplcommon.cpp.
LLMediaImplCommon::~LLMediaImplCommon | ( | ) | [virtual] |
Definition at line 75 of file llmediaimplcommon.cpp.
bool LLMediaImplCommon::init | ( | void | ) | [virtual] |
Implements LLMediaBase.
Reimplemented in LLMediaImplExample1, and LLMediaImplExample2.
Definition at line 81 of file llmediaimplcommon.cpp.
bool LLMediaImplCommon::reset | ( | ) | [virtual] |
Implements LLMediaBase.
Reimplemented in LLMediaImplExample1, and LLMediaImplExample2.
Definition at line 88 of file llmediaimplcommon.cpp.
bool LLMediaImplCommon::setMimeType | ( | const std::string | url | ) | [virtual] |
std::string LLMediaImplCommon::getMimeType | ( | ) | const [virtual] |
std::string LLMediaImplCommon::getMediaURL | ( | ) | const [virtual] |
Implements LLMediaBase.
Definition at line 111 of file llmediaimplcommon.cpp.
References mInitialURL.
std::string LLMediaImplCommon::getVersion | ( | ) | [virtual] |
Implements LLMediaBase.
Reimplemented in LLMediaImplExample1, and LLMediaImplExample2.
Definition at line 118 of file llmediaimplcommon.cpp.
bool LLMediaImplCommon::set404RedirectUrl | ( | std::string | redirect_url | ) | [virtual] |
bool LLMediaImplCommon::clr404RedirectUrl | ( | ) | [virtual] |
bool LLMediaImplCommon::setBackgroundColor | ( | unsigned int | red, | |
unsigned int | green, | |||
unsigned int | blue | |||
) | const [virtual] |
bool LLMediaImplCommon::setCaretColor | ( | unsigned int | red, | |
unsigned int | green, | |||
unsigned int | blue | |||
) | const [virtual] |
bool LLMediaImplCommon::updateMedia | ( | ) | [virtual] |
Implements LLMediaBase.
Reimplemented in LLMediaImplExample1, and LLMediaImplExample2.
Definition at line 153 of file llmediaimplcommon.cpp.
bool LLMediaImplCommon::setRequestedMediaSize | ( | int | width, | |
int | height | |||
) | [virtual] |
Implements LLMediaBase.
Reimplemented in LLMediaImplExample1, and LLMediaImplExample2.
Definition at line 220 of file llmediaimplcommon.cpp.
References mMediaRequestedHeight, and mMediaRequestedWidth.
int LLMediaImplCommon::getMediaWidth | ( | ) | const [virtual] |
Implements LLMediaBase.
Definition at line 205 of file llmediaimplcommon.cpp.
References mMediaWidth.
Referenced by getMediaDataWidth(), LLMediaImplExample2::LLMediaImplExample2(), LLMediaImplExample1::mouseMove(), LLMediaImplExample2::updateMedia(), and LLMediaImplExample1::updateMedia().
int LLMediaImplCommon::getMediaHeight | ( | ) | const [virtual] |
Implements LLMediaBase.
Definition at line 213 of file llmediaimplcommon.cpp.
References mMediaHeight.
Referenced by getMediaDataHeight(), LLMediaImplExample2::LLMediaImplExample2(), LLMediaImplExample2::updateMedia(), and LLMediaImplExample1::updateMedia().
int LLMediaImplCommon::getMediaDepth | ( | ) | const [virtual] |
Implements LLMediaBase.
Definition at line 252 of file llmediaimplcommon.cpp.
References mMediaDepth.
Referenced by LLMediaImplExample1::mouseMove(), LLMediaImplExample2::updateMedia(), and LLMediaImplExample1::updateMedia().
int LLMediaImplCommon::getMediaBufferSize | ( | ) | const [virtual] |
Implements LLMediaBase.
Definition at line 259 of file llmediaimplcommon.cpp.
References mMediaHeight, and mMediaRowSpan.
Referenced by LLMediaImplExample2::init(), and LLMediaImplExample1::init().
unsigned char * LLMediaImplCommon::getMediaData | ( | ) | [virtual] |
Implements LLMediaBase.
Reimplemented in LLMediaImplExample1, and LLMediaImplExample2.
Definition at line 160 of file llmediaimplcommon.cpp.
int LLMediaImplCommon::getMediaDataWidth | ( | ) | const [virtual] |
Implements LLMediaBase.
Definition at line 167 of file llmediaimplcommon.cpp.
References getMediaWidth().
int LLMediaImplCommon::getMediaDataHeight | ( | ) | const [virtual] |
Implements LLMediaBase.
Definition at line 174 of file llmediaimplcommon.cpp.
References getMediaHeight().
int LLMediaImplCommon::getTextureFormatInternal | ( | ) | const [virtual] |
Implements LLMediaBase.
Definition at line 266 of file llmediaimplcommon.cpp.
References LL_MEDIA_RGB.
int LLMediaImplCommon::getTextureFormatPrimary | ( | ) | const [virtual] |
Implements LLMediaBase.
Definition at line 273 of file llmediaimplcommon.cpp.
References LL_MEDIA_RGB.
int LLMediaImplCommon::getTextureFormatType | ( | ) | const [virtual] |
Implements LLMediaBase.
Definition at line 280 of file llmediaimplcommon.cpp.
References LL_MEDIA_UNSIGNED_BYTE.
bool LLMediaImplCommon::setVolume | ( | float | volume | ) | [virtual] |
float LLMediaImplCommon::getVolume | ( | ) | const [virtual] |
bool LLMediaImplCommon::addCommand | ( | LLMediaBase::ECommand | cmd | ) | [virtual] |
bool LLMediaImplCommon::clearCommand | ( | ) | [virtual] |
Implements LLMediaBase.
Definition at line 313 of file llmediaimplcommon.cpp.
References LLMediaBase::COMMAND_NONE, and mCommand.
Referenced by updateCommand().
bool LLMediaImplCommon::updateCommand | ( | ) | [virtual] |
Implements LLMediaBase.
Definition at line 323 of file llmediaimplcommon.cpp.
References clearCommand(), LLMediaBase::COMMAND_PAUSE, LLMediaBase::COMMAND_START, LLMediaBase::COMMAND_STOP, nextCommand(), setStatus(), LLMediaBase::STATUS_PAUSED, LLMediaBase::STATUS_STARTED, and LLMediaBase::STATUS_STOPPED.
Referenced by LLMediaImplExample2::updateMedia(), and LLMediaImplExample1::updateMedia().
LLMediaBase::ECommand LLMediaImplCommon::nextCommand | ( | ) |
Definition at line 348 of file llmediaimplcommon.cpp.
References mCommand.
Referenced by updateCommand().
LLMediaBase::EStatus LLMediaImplCommon::getStatus | ( | ) | [virtual] |
Implements LLMediaBase.
Definition at line 355 of file llmediaimplcommon.cpp.
References mStatus.
Referenced by LLMediaImplExample1::mouseMove(), LLMediaImplExample2::updateMedia(), and LLMediaImplExample1::updateMedia().
bool LLMediaImplCommon::setStatus | ( | LLMediaBase::EStatus | status | ) |
Definition at line 362 of file llmediaimplcommon.cpp.
References mStatus.
Referenced by LLMediaImplExample2::navigateTo(), LLMediaImplExample1::navigateTo(), and updateCommand().
bool LLMediaImplCommon::seek | ( | double | time | ) | [virtual] |
virtual bool LLMediaImplCommon::setLooping | ( | bool | enable | ) | [inline, virtual] |
virtual bool LLMediaImplCommon::isLooping | ( | ) | [inline, virtual] |
bool LLMediaImplCommon::navigateTo | ( | const std::string | url | ) | [virtual] |
Implements LLMediaBase.
Reimplemented in LLMediaImplExample1, and LLMediaImplExample2.
Definition at line 378 of file llmediaimplcommon.cpp.
bool LLMediaImplCommon::setAutoScaled | ( | bool | auto_scaled | ) | [virtual] |
Implements LLMediaBase.
Definition at line 385 of file llmediaimplcommon.cpp.
References mAutoScaled.
bool LLMediaImplCommon::isAutoScaled | ( | ) | const [virtual] |
Implements LLMediaBase.
Definition at line 394 of file llmediaimplcommon.cpp.
References mAutoScaled.
bool LLMediaImplCommon::mouseDown | ( | int | x_pos, | |
int | y_pos | |||
) | [virtual] |
bool LLMediaImplCommon::mouseUp | ( | int | x_pos, | |
int | y_pos | |||
) | [virtual] |
bool LLMediaImplCommon::mouseMove | ( | int | x_pos, | |
int | y_pos | |||
) | [virtual] |
Implements LLMediaBase.
Reimplemented in LLMediaImplExample1.
Definition at line 415 of file llmediaimplcommon.cpp.
bool LLMediaImplCommon::keyPress | ( | int | key_code | ) | [virtual] |
bool LLMediaImplCommon::scrollByLines | ( | int | lines | ) | [virtual] |
bool LLMediaImplCommon::focus | ( | bool | focus | ) | [virtual] |
bool LLMediaImplCommon::unicodeInput | ( | unsigned long | uni_char | ) | [virtual] |
bool LLMediaImplCommon::mouseLeftDoubleClick | ( | int | x_pos, | |
int | y_pos | |||
) | [virtual] |
bool LLMediaImplCommon::navigateForward | ( | ) | [virtual] |
bool LLMediaImplCommon::navigateBack | ( | ) | [virtual] |
bool LLMediaImplCommon::canNavigateForward | ( | ) | [virtual] |
bool LLMediaImplCommon::canNavigateBack | ( | ) | [virtual] |
bool LLMediaImplCommon::enableCookies | ( | bool | enable | ) | [virtual] |
bool LLMediaImplCommon::clearCache | ( | ) | [virtual] |
bool LLMediaImplCommon::clearCookies | ( | ) | [virtual] |
bool LLMediaImplCommon::enableProxy | ( | bool | enable, | |
std::string | proxy_host_name, | |||
int | proxy_port | |||
) | [virtual] |
bool LLMediaImplCommon::addObserver | ( | LLMediaObserver * | subject | ) | [virtual] |
Implements LLMediaBase.
Definition at line 512 of file llmediaimplcommon.cpp.
References LLMediaEmitter< T >::addObserver(), and mEventEmitter.
bool LLMediaImplCommon::remObserver | ( | LLMediaObserver * | subject | ) | [virtual] |
Implements LLMediaBase.
Definition at line 519 of file llmediaimplcommon.cpp.
References mEventEmitter, and LLMediaEmitter< T >::remObserver().
void LLMediaImplCommon::setImplMaker | ( | LLMediaImplMakerBase * | impl_maker | ) | [virtual] |
Implements LLMediaBase.
Definition at line 526 of file llmediaimplcommon.cpp.
References mImplMaker.
bool LLMediaImplCommon::supportsMediaType | ( | std::string | scheme, | |
std::string | type | |||
) | [virtual] |
Implements LLMediaBase.
Definition at line 532 of file llmediaimplcommon.cpp.
References mImplMaker, LLMediaImplMakerBase::supportsMimeType(), LLMediaImplMakerBase::supportsMimeTypeCategory(), and LLMediaImplMakerBase::supportsScheme().
bool LLMediaImplCommon::setMediaSize | ( | int | width, | |
int | height | |||
) | [protected, virtual] |
Definition at line 182 of file llmediaimplcommon.cpp.
References mEventEmitter, mMediaHeight, mMediaPrevHeight, mMediaPrevWidth, mMediaWidth, LLMediaObserver::onMediaSizeChange(), and LLMediaEmitter< T >::update().
Referenced by LLMediaImplExample2::setRequestedMediaSize(), and LLMediaImplExample1::setRequestedMediaSize().
bool LLMediaImplCommon::setMediaDepth | ( | int | media_depth | ) | [protected, virtual] |
Implements LLMediaBase.
Definition at line 230 of file llmediaimplcommon.cpp.
References mMediaDepth, mMediaPrevDepth, mMediaRowSpan, and mMediaWidth.
Referenced by LLMediaImplExample1::LLMediaImplExample1(), and LLMediaImplExample2::LLMediaImplExample2().
LLMediaEmitter< LLMediaObserver > LLMediaImplCommon::mEventEmitter [protected] |
Definition at line 138 of file llmediaimplcommon.h.
Referenced by addObserver(), LLMediaImplExample1::mouseMove(), LLMediaImplExample2::navigateTo(), LLMediaImplExample1::navigateTo(), remObserver(), setMediaSize(), LLMediaImplExample2::updateMedia(), and LLMediaImplExample1::updateMedia().
LLMediaImplMakerBase* LLMediaImplCommon::mImplMaker [protected] |
Definition at line 142 of file llmediaimplcommon.h.
Referenced by setImplMaker(), and supportsMediaType().
std::string LLMediaImplCommon::mMimeType [protected] |
std::string LLMediaImplCommon::mInitialURL [protected] |
bool LLMediaImplCommon::mAutoScaled [protected] |
Definition at line 145 of file llmediaimplcommon.h.
Referenced by isAutoScaled(), and setAutoScaled().
int LLMediaImplCommon::mMediaWidth [protected] |
Definition at line 146 of file llmediaimplcommon.h.
Referenced by getMediaWidth(), setMediaDepth(), and setMediaSize().
int LLMediaImplCommon::mMediaPrevWidth [protected] |
int LLMediaImplCommon::mMediaHeight [protected] |
Definition at line 148 of file llmediaimplcommon.h.
Referenced by getMediaBufferSize(), getMediaHeight(), and setMediaSize().
int LLMediaImplCommon::mMediaPrevHeight [protected] |
int LLMediaImplCommon::mMediaDepth [protected] |
Definition at line 150 of file llmediaimplcommon.h.
Referenced by getMediaDepth(), and setMediaDepth().
int LLMediaImplCommon::mMediaPrevDepth [protected] |
int LLMediaImplCommon::mMediaRowSpan [protected] |
Definition at line 152 of file llmediaimplcommon.h.
Referenced by getMediaBufferSize(), and setMediaDepth().
int LLMediaImplCommon::mMediaRequestedWidth [protected] |
int LLMediaImplCommon::mMediaRequestedHeight [protected] |
float LLMediaImplCommon::mVolume [protected] |
LLMediaBase::ECommand LLMediaImplCommon::mCommand [protected] |
Definition at line 156 of file llmediaimplcommon.h.
Referenced by addCommand(), clearCommand(), and nextCommand().
LLMediaBase::EStatus LLMediaImplCommon::mStatus [protected] |
bool LLMediaImplCommon::mLooping [protected] |