xbmc
Public Member Functions | Static Public Member Functions | List of all members
CStereoscopicsManager Class Reference
Inheritance diagram for CStereoscopicsManager:
Inheritance graph
[legend]
Collaboration diagram for CStereoscopicsManager:
Collaboration graph
[legend]

Public Member Functions

 CStereoscopicsManager ()
 
void Initialize ()
 
RENDER_STEREO_MODE GetStereoMode (void) const
 
std::string DetectStereoModeByString (const std::string &needle) const
 
std::string GetLabelForStereoMode (const RENDER_STEREO_MODE &mode) const
 
void SetStereoMode (const RENDER_STEREO_MODE &mode)
 
void OnSettingChanged (const std::shared_ptr< const CSetting > &setting) override
 The value of the given setting has changed. More...
 
void OnStreamChange ()
 
bool OnMessage (CGUIMessage &message) override
 
bool OnAction (const CAction &action)
 Handle 3D specific cActions. More...
 
- Public Member Functions inherited from ISettingCallback
virtual bool OnSettingChanging (const std::shared_ptr< const CSetting > &setting)
 The value of the given setting is being changed. More...
 
virtual void OnSettingAction (const std::shared_ptr< const CSetting > &setting)
 The given setting has been activated. More...
 
virtual bool OnSettingUpdate (const std::shared_ptr< CSetting > &setting, const char *oldSettingId, const TiXmlNode *oldSettingNode)
 The given setting needs to be updated. More...
 
virtual void OnSettingPropertyChanged (const std::shared_ptr< const CSetting > &setting, const char *propertyName)
 The given property of the given setting has changed. More...
 

Static Public Member Functions

static const char * ConvertGuiStereoModeToString (const RENDER_STEREO_MODE &mode)
 
static CAction ConvertActionCommandToAction (const std::string &command, const std::string &parameter)
 Converts a stereoscopics related action/command from Builtins and JsonRPC into the according cAction ID. More...
 
static std::string NormalizeStereoMode (const std::string &mode)
 

Constructor & Destructor Documentation

◆ CStereoscopicsManager()

CStereoscopicsManager::CStereoscopicsManager ( )
Todo:
Move this to Initialize() to avoid potential problems in ctor

Member Function Documentation

◆ ConvertActionCommandToAction()

CAction CStereoscopicsManager::ConvertActionCommandToAction ( const std::string &  command,
const std::string &  parameter 
)
static

Converts a stereoscopics related action/command from Builtins and JsonRPC into the according cAction ID.

Parameters
commandThe command/action
parameterThe parameter of the command
Returns
The integer of the according cAction or -1 if not valid

◆ OnAction()

bool CStereoscopicsManager::OnAction ( const CAction action)

Handle 3D specific cActions.

Parameters
actionThe action to process
Returns
True if action could be handled, false otherwise.

◆ OnSettingChanged()

void CStereoscopicsManager::OnSettingChanged ( const std::shared_ptr< const CSetting > &  setting)
overridevirtual

The value of the given setting has changed.

This callback is triggered whenever the value of a setting has been successfully changed (i.e. none of the OnSettingChanging() handlers) has reverted the change.

Parameters
settingThe setting whose value has been changed

Reimplemented from ISettingCallback.


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