LLMediaManager Class Reference

#include <llmediamanager.h>

Collaboration diagram for LLMediaManager:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~LLMediaManager ()
LLMediaBasecreateSourceFromMimeType (std::string scheme, std::string mime_type)
bool destroySource (LLMediaBase *media_impl)
bool addMimeTypeImplNameMap (std::string mime_type, std::string impl_name)
std::string getImplNameFromMimeType (std::string mime_type)
bool supportsMediaType (const std::string &impl_name, const std::string &scheme, const std::string &mime_type)

Static Public Member Functions

static void initClass (LLMediaManagerData *init_data)
static void cleanupClass ()
static LLMediaManagergetInstance ()
static void updateClass ()
static int textureWidthFromMediaWidth (int media_width)
static int textureHeightFromMediaHeight (int media_height)

Private Types

typedef std::set< LLMediaBase * > media_impl_container_t
typedef std::map< std::string,
std::string > 
mime_type_impl_name_container_t

Private Member Functions

 LLMediaManager ()

Private Attributes

media_impl_container_t mMediaImplContainer
mime_type_impl_name_container_t mMimeTypeImplNameContainer

Static Private Attributes

static LLMediaManagersInstance = 0


Detailed Description

Definition at line 81 of file llmediamanager.h.


Member Typedef Documentation

typedef std::set< LLMediaBase* > LLMediaManager::media_impl_container_t [private]

Definition at line 113 of file llmediamanager.h.

typedef std::map< std::string, std::string > LLMediaManager::mime_type_impl_name_container_t [private]

Definition at line 116 of file llmediamanager.h.


Constructor & Destructor Documentation

LLMediaManager::~LLMediaManager (  )  [virtual]

Definition at line 50 of file llmediamanager.cpp.

LLMediaManager::LLMediaManager (  )  [private]

Definition at line 45 of file llmediamanager.cpp.

Referenced by initClass().

Here is the caller graph for this function:


Member Function Documentation

void LLMediaManager::initClass ( LLMediaManagerData init_data  )  [static]

Definition at line 56 of file llmediamanager.cpp.

References LLMediaManager(), sInstance, LLMediaImplExample2::startup(), and LLMediaImplExample1::startup().

Referenced by LLViewerMedia::initClass().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLMediaManager::cleanupClass (  )  [static]

Definition at line 101 of file llmediamanager.cpp.

References LLMediaImplExample2::closedown(), LLMediaImplExample1::closedown(), and sInstance.

Referenced by LLViewerMedia::cleanupClass().

Here is the call graph for this function:

Here is the caller graph for this function:

LLMediaManager * LLMediaManager::getInstance (  )  [static]

void LLMediaManager::updateClass (  )  [static]

Definition at line 84 of file llmediamanager.cpp.

References mMediaImplContainer, sInstance, and LLMediaBase::updateMedia().

Referenced by LLViewerMediaImpl::updateImagesMediaStreams().

Here is the call graph for this function:

Here is the caller graph for this function:

LLMediaBase * LLMediaManager::createSourceFromMimeType ( std::string  scheme,
std::string  mime_type 
)

bool LLMediaManager::destroySource ( LLMediaBase media_impl  ) 

Definition at line 169 of file llmediamanager.cpp.

References mMediaImplContainer.

Referenced by LLViewerMediaImpl::destroyMediaSource(), free_web_media(), LLFloaterAbout::LLFloaterAbout(), and LLWebBrowserCtrl::~LLWebBrowserCtrl().

Here is the caller graph for this function:

bool LLMediaManager::addMimeTypeImplNameMap ( std::string  mime_type,
std::string  impl_name 
)

Definition at line 193 of file llmediamanager.cpp.

References mMimeTypeImplNameContainer.

Referenced by LLViewerMedia::initClass().

Here is the caller graph for this function:

std::string LLMediaManager::getImplNameFromMimeType ( std::string  mime_type  ) 

Definition at line 203 of file llmediamanager.cpp.

References mMimeTypeImplNameContainer.

bool LLMediaManager::supportsMediaType ( const std::string &  impl_name,
const std::string &  scheme,
const std::string &  mime_type 
)

int LLMediaManager::textureWidthFromMediaWidth ( int  media_width  )  [static]

Definition at line 236 of file llmediamanager.cpp.

Referenced by LLViewerMedia::getTextureSize(), and LLViewerMediaImpl::initializePlaceholderImage().

Here is the caller graph for this function:

int LLMediaManager::textureHeightFromMediaHeight ( int  media_height  )  [static]

Definition at line 247 of file llmediamanager.cpp.

Referenced by LLViewerMedia::getTextureSize(), and LLViewerMediaImpl::initializePlaceholderImage().

Here is the caller graph for this function:


Member Data Documentation

LLMediaManager * LLMediaManager::sInstance = 0 [static, private]

Definition at line 111 of file llmediamanager.h.

Referenced by cleanupClass(), getInstance(), initClass(), and updateClass().

Definition at line 114 of file llmediamanager.h.

Referenced by createSourceFromMimeType(), destroySource(), and updateClass().

Definition at line 117 of file llmediamanager.h.

Referenced by addMimeTypeImplNameMap(), and getImplNameFromMimeType().


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

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