LLMediaImplCommon Class Reference

#include <llmediaimplcommon.h>

Inheritance diagram for LLMediaImplCommon:

Inheritance graph
[legend]
Collaboration diagram for LLMediaImplCommon:

Collaboration graph
[legend]

List of all members.

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< LLMediaObservermEventEmitter
LLMediaImplMakerBasemImplMaker
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


Detailed Description

Definition at line 43 of file llmediaimplcommon.h.


Constructor & Destructor Documentation

LLMediaImplCommon::LLMediaImplCommon (  ) 

Definition at line 52 of file llmediaimplcommon.cpp.

LLMediaImplCommon::~LLMediaImplCommon (  )  [virtual]

Definition at line 75 of file llmediaimplcommon.cpp.


Member Function Documentation

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]

Implements LLMediaBase.

Definition at line 95 of file llmediaimplcommon.cpp.

References mMimeType.

std::string LLMediaImplCommon::getMimeType (  )  const [virtual]

Implements LLMediaBase.

Definition at line 104 of file llmediaimplcommon.cpp.

References mMimeType.

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]

Implements LLMediaBase.

Definition at line 125 of file llmediaimplcommon.cpp.

bool LLMediaImplCommon::clr404RedirectUrl (  )  [virtual]

Implements LLMediaBase.

Definition at line 132 of file llmediaimplcommon.cpp.

bool LLMediaImplCommon::setBackgroundColor ( unsigned int  red,
unsigned int  green,
unsigned int  blue 
) const [virtual]

Implements LLMediaBase.

Definition at line 139 of file llmediaimplcommon.cpp.

bool LLMediaImplCommon::setCaretColor ( unsigned int  red,
unsigned int  green,
unsigned int  blue 
) const [virtual]

Implements LLMediaBase.

Definition at line 146 of file llmediaimplcommon.cpp.

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]

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

int LLMediaImplCommon::getMediaDataHeight (  )  const [virtual]

Implements LLMediaBase.

Definition at line 174 of file llmediaimplcommon.cpp.

References getMediaHeight().

Here is the call graph for this function:

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]

Implements LLMediaBase.

Definition at line 287 of file llmediaimplcommon.cpp.

References mVolume.

float LLMediaImplCommon::getVolume (  )  const [virtual]

Implements LLMediaBase.

Definition at line 296 of file llmediaimplcommon.cpp.

References mVolume.

bool LLMediaImplCommon::addCommand ( LLMediaBase::ECommand  cmd  )  [virtual]

Implements LLMediaBase.

Definition at line 303 of file llmediaimplcommon.cpp.

References mCommand.

bool LLMediaImplCommon::clearCommand (  )  [virtual]

Implements LLMediaBase.

Definition at line 313 of file llmediaimplcommon.cpp.

References LLMediaBase::COMMAND_NONE, and mCommand.

Referenced by updateCommand().

Here is the caller graph for this function:

bool LLMediaImplCommon::updateCommand (  )  [virtual]

LLMediaBase::ECommand LLMediaImplCommon::nextCommand (  ) 

Definition at line 348 of file llmediaimplcommon.cpp.

References mCommand.

Referenced by updateCommand().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

bool LLMediaImplCommon::setStatus ( LLMediaBase::EStatus  status  ) 

Definition at line 362 of file llmediaimplcommon.cpp.

References mStatus.

Referenced by LLMediaImplExample2::navigateTo(), LLMediaImplExample1::navigateTo(), and updateCommand().

Here is the caller graph for this function:

bool LLMediaImplCommon::seek ( double  time  )  [virtual]

Implements LLMediaBase.

Definition at line 371 of file llmediaimplcommon.cpp.

virtual bool LLMediaImplCommon::setLooping ( bool  enable  )  [inline, virtual]

Implements LLMediaBase.

Definition at line 95 of file llmediaimplcommon.h.

References mLooping.

virtual bool LLMediaImplCommon::isLooping (  )  [inline, virtual]

Implements LLMediaBase.

Definition at line 96 of file llmediaimplcommon.h.

References mLooping.

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]

Implements LLMediaBase.

Definition at line 401 of file llmediaimplcommon.cpp.

bool LLMediaImplCommon::mouseUp ( int  x_pos,
int  y_pos 
) [virtual]

Implements LLMediaBase.

Definition at line 408 of file llmediaimplcommon.cpp.

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]

Implements LLMediaBase.

Definition at line 422 of file llmediaimplcommon.cpp.

bool LLMediaImplCommon::scrollByLines ( int  lines  )  [virtual]

Implements LLMediaBase.

Definition at line 429 of file llmediaimplcommon.cpp.

bool LLMediaImplCommon::focus ( bool  focus  )  [virtual]

Implements LLMediaBase.

Definition at line 436 of file llmediaimplcommon.cpp.

bool LLMediaImplCommon::unicodeInput ( unsigned long  uni_char  )  [virtual]

Implements LLMediaBase.

Definition at line 443 of file llmediaimplcommon.cpp.

bool LLMediaImplCommon::mouseLeftDoubleClick ( int  x_pos,
int  y_pos 
) [virtual]

Implements LLMediaBase.

Definition at line 450 of file llmediaimplcommon.cpp.

bool LLMediaImplCommon::navigateForward (  )  [virtual]

Implements LLMediaBase.

Definition at line 457 of file llmediaimplcommon.cpp.

bool LLMediaImplCommon::navigateBack (  )  [virtual]

Implements LLMediaBase.

Definition at line 464 of file llmediaimplcommon.cpp.

bool LLMediaImplCommon::canNavigateForward (  )  [virtual]

Implements LLMediaBase.

Definition at line 471 of file llmediaimplcommon.cpp.

bool LLMediaImplCommon::canNavigateBack (  )  [virtual]

Implements LLMediaBase.

Definition at line 478 of file llmediaimplcommon.cpp.

bool LLMediaImplCommon::enableCookies ( bool  enable  )  [virtual]

Implements LLMediaBase.

Definition at line 485 of file llmediaimplcommon.cpp.

bool LLMediaImplCommon::clearCache (  )  [virtual]

Implements LLMediaBase.

Definition at line 492 of file llmediaimplcommon.cpp.

bool LLMediaImplCommon::clearCookies (  )  [virtual]

Implements LLMediaBase.

Definition at line 499 of file llmediaimplcommon.cpp.

bool LLMediaImplCommon::enableProxy ( bool  enable,
std::string  proxy_host_name,
int  proxy_port 
) [virtual]

Implements LLMediaBase.

Definition at line 506 of file llmediaimplcommon.cpp.

bool LLMediaImplCommon::addObserver ( LLMediaObserver subject  )  [virtual]

Implements LLMediaBase.

Definition at line 512 of file llmediaimplcommon.cpp.

References LLMediaEmitter< T >::addObserver(), and mEventEmitter.

Here is the call graph for this function:

bool LLMediaImplCommon::remObserver ( LLMediaObserver subject  )  [virtual]

Implements LLMediaBase.

Definition at line 519 of file llmediaimplcommon.cpp.

References mEventEmitter, and LLMediaEmitter< T >::remObserver().

Here is the call graph for this function:

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]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 142 of file llmediaimplcommon.h.

Referenced by setImplMaker(), and supportsMediaType().

std::string LLMediaImplCommon::mMimeType [protected]

Definition at line 143 of file llmediaimplcommon.h.

Referenced by getMimeType(), and setMimeType().

std::string LLMediaImplCommon::mInitialURL [protected]

Definition at line 144 of file llmediaimplcommon.h.

Referenced by getMediaURL().

Definition at line 145 of file llmediaimplcommon.h.

Referenced by isAutoScaled(), and setAutoScaled().

Definition at line 146 of file llmediaimplcommon.h.

Referenced by getMediaWidth(), setMediaDepth(), and setMediaSize().

Definition at line 147 of file llmediaimplcommon.h.

Referenced by setMediaSize().

Definition at line 148 of file llmediaimplcommon.h.

Referenced by getMediaBufferSize(), getMediaHeight(), and setMediaSize().

Definition at line 149 of file llmediaimplcommon.h.

Referenced by setMediaSize().

Definition at line 150 of file llmediaimplcommon.h.

Referenced by getMediaDepth(), and setMediaDepth().

Definition at line 151 of file llmediaimplcommon.h.

Referenced by setMediaDepth().

Definition at line 152 of file llmediaimplcommon.h.

Referenced by getMediaBufferSize(), and setMediaDepth().

Definition at line 153 of file llmediaimplcommon.h.

Referenced by setRequestedMediaSize().

Definition at line 154 of file llmediaimplcommon.h.

Referenced by setRequestedMediaSize().

float LLMediaImplCommon::mVolume [protected]

Definition at line 155 of file llmediaimplcommon.h.

Referenced by getVolume(), and setVolume().

Definition at line 156 of file llmediaimplcommon.h.

Referenced by addCommand(), clearCommand(), and nextCommand().

Definition at line 157 of file llmediaimplcommon.h.

Referenced by getStatus(), and setStatus().

bool LLMediaImplCommon::mLooping [protected]

Definition at line 158 of file llmediaimplcommon.h.

Referenced by isLooping(), and setLooping().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:52:27 2008 for SecondLife by  doxygen 1.5.5