Rabbit Remote Control 0.1.0-bate14
Loading...
Searching...
No Matches
CParameterPlayer Class Reference
Inheritance diagram for CParameterPlayer:
Collaboration diagram for CParameterPlayer:

Public Types

enum class  TYPE { Camera , Url }

Signals

void sigAudioInput (int nIndex)
void sigEnableAudioInput (bool bEnable)
void sigAudioInputMuted (bool bMuted)
void sigAudioInputVolume (float fVolume)
void sigAudioOutput (int nIndex)
void sigEnableAudioOutput (bool bEnable)
void sigAudioOutputMuted (bool bMuted)
void sigAudioOutputVolume (float fVolume)
Signals inherited from CParameterDesktop
void sigShowServerNameChanged ()
void sigEnableInputMethod (bool bEnable)
void sigAdaptWindowsChanged (CFrmViewer::ADAPT_WINDOWS aw)
void sigZoomFactorChanged (double newZoomFactor)
Signals inherited from CParameterOperate
void sigSetPluginParameters ()
 Only used by this class.
void sigNameChanged (const QString &name=QString())
Signals inherited from CParameter
void sigChanged ()
 emit when the parameter changes Usually if required, the corresponding parameter corresponds to a change event.

Public Member Functions

 CParameterPlayer (QObject *parent=nullptr)
const TYPE GetType () const
int SetType (TYPE type)
const QString GetUrl () const
int SetUrl (const QString &szUrl)
const int GetCamera () const
int SetCamera (int nIndex)
const int GetAudioInput () const
int SetAudioInput (int nIndex)
const bool GetEnableAudioInput () const
int SetEnableAudioInput (bool bEnable)
const bool GetAudioInputMuted () const
int SetAudioInputMuted (bool bMuted)
const float GetAudioInputVolume () const
int SetAudioInputVolume (float fVolume)
const int GetAudioOutput () const
int SetAudioOutput (int nIndex)
const bool GetEnableAudioOutput () const
int SetEnableAudioOutput (bool bEnable)
const bool GetAudioOutputMuted () const
int SetAudioOutputMuted (bool bMuted)
const float GetAudioOutputVolume () const
int SetAudioOutputVolume (float fVolume)
bool GetSubtitle () const
void SetSubtitle (bool subtitle)
const int GetScreen () const
int SetScreen (int nIndex)
Public Member Functions inherited from CParameterDesktop
 CParameterDesktop (QObject *parent=nullptr)
 CParameterDesktop (CParameterOperate *parent, const QString &szPrefix=QString())
const QString GetServerName () const
void SetServerName (const QString &szName)
bool GetShowServerName () const
void SetShowServerName (bool NewShowServerName)
bool GetOnlyView () const
void SetOnlyView (bool only)
const bool GetLocalCursor () const
void SetLocalCursor (bool cursor)
const bool GetCursorPosition () const
void SetCursorPosition (bool pos)
virtual const bool GetClipboard () const
virtual void SetClipboard (bool c)
bool GetSupportsDesktopResize () const
void SetSupportsDesktopResize (bool newSupportsDesktopResize)
bool GetLedState () const
void SetLedState (bool state)
bool GetEnableLocalInputMethod () const
void SetEnableLocalInputMethod (bool enable)
CFrmViewer::ADAPT_WINDOWS GetAdaptWindows ()
void SetAdaptWindows (CFrmViewer::ADAPT_WINDOWS aw)
double GetZoomFactor () const
void SetZoomFactor (double newZoomFactor)
Public Member Functions inherited from CParameterOperate
 CParameterOperate (QObject *parent, const QString &szPrefix=QString())
CParameterPluginGetPluginParameters ()
 Get CParameterPlugin.
int SetPluginParameters (CParameterPlugin *p)
const QString GetName () const
void SetName (const QString &szName)
int LoadPassword (const QString &szTitle, const QString &szKey, QString &password, QSettings &set)
 Restore password.
int SavePassword (const QString &szKey, const QString &password, QSettings &set, bool bSave=false)
Public Member Functions inherited from CParameter
 CParameter (QObject *parent, const QString &szPrefix=QString())
virtual int Load (QString szFile=QString())
 Load from file.
virtual int Save (QString szFile=QString(), bool bForce=true)
 Save to file.
virtual int Load (QSettings &set)
 Load from QSettings.
virtual int Save (QSettings &set, bool bForce=true)
 Save to QSettings.
virtual bool CheckValidity ()
 Check whether the parameter is valid to decide whether to use or save the parameter.

Protected Member Functions

virtual int OnLoad (QSettings &set) override
virtual int OnSave (QSettings &set) override
Protected Member Functions inherited from CParameterDesktop
virtual void slotSetPluginParameters () override
 Call after set CParameterPlugin.
Protected Member Functions inherited from CParameterOperate
QByteArray PasswordSum (const std::string &password, const std::string &key)
Protected Member Functions inherited from CParameter
virtual bool OnCheckValidity ()
 Check validity.
int SetModified (bool bModified=true)
 When setting parameters, if there is a modification, it is called.
bool GetModified ()
 Whether the parameters have been modified.

Private Attributes

TYPE m_Type
QString m_szUrl
int m_nCamera
int m_nAudioInput
bool m_bEnableAudioInput
bool m_bAudioInputMuted
float m_fAudioInputVolume
int m_nAudioOutput
bool m_bEnableAudioOutput
bool m_bAudioOutputMuted
float m_fAudioOutputVolume
bool m_bSubtitle
int m_nScreen

Additional Inherited Members

Public Attributes inherited from CParameterDesktop
CParameterNet m_Net
CParameterProxy m_Proxy
CParameterRecord m_Record
Properties inherited from CParameterDesktop
QString Name
QString ServerName
bool ShowServerName
bool OnlyView
bool LocalCursor
CFrmViewer::ADAPT_WINDOWS AdaptWindows
double ZoomFactor
Properties inherited from CParameter
bool Modified

Detailed Description

Definition at line 8 of file ParameterPlayer.h.

Member Enumeration Documentation

◆ TYPE

enum class CParameterPlayer::TYPE
strong

Definition at line 14 of file ParameterPlayer.h.

Constructor & Destructor Documentation

◆ CParameterPlayer()

CParameterPlayer::CParameterPlayer ( QObject * parent = nullptr)
explicit

Definition at line 5 of file ParameterPlayer.cpp.

Member Function Documentation

◆ GetAudioInput()

const int CParameterPlayer::GetAudioInput ( ) const

Definition at line 63 of file ParameterPlayer.cpp.

◆ GetAudioInputMuted()

const bool CParameterPlayer::GetAudioInputMuted ( ) const

Definition at line 93 of file ParameterPlayer.cpp.

◆ GetAudioInputVolume()

const float CParameterPlayer::GetAudioInputVolume ( ) const

Definition at line 108 of file ParameterPlayer.cpp.

◆ GetAudioOutput()

const int CParameterPlayer::GetAudioOutput ( ) const

Definition at line 123 of file ParameterPlayer.cpp.

◆ GetAudioOutputMuted()

const bool CParameterPlayer::GetAudioOutputMuted ( ) const

Definition at line 153 of file ParameterPlayer.cpp.

◆ GetAudioOutputVolume()

const float CParameterPlayer::GetAudioOutputVolume ( ) const

Definition at line 168 of file ParameterPlayer.cpp.

◆ GetCamera()

const int CParameterPlayer::GetCamera ( ) const

Definition at line 49 of file ParameterPlayer.cpp.

◆ GetEnableAudioInput()

const bool CParameterPlayer::GetEnableAudioInput ( ) const

Definition at line 78 of file ParameterPlayer.cpp.

◆ GetEnableAudioOutput()

const bool CParameterPlayer::GetEnableAudioOutput ( ) const

Definition at line 138 of file ParameterPlayer.cpp.

◆ GetScreen()

const int CParameterPlayer::GetScreen ( ) const

Definition at line 244 of file ParameterPlayer.cpp.

◆ GetSubtitle()

bool CParameterPlayer::GetSubtitle ( ) const

Definition at line 258 of file ParameterPlayer.cpp.

◆ GetType()

const CParameterPlayer::TYPE CParameterPlayer::GetType ( ) const

Definition at line 21 of file ParameterPlayer.cpp.

◆ GetUrl()

const QString CParameterPlayer::GetUrl ( ) const

Definition at line 35 of file ParameterPlayer.cpp.

◆ OnLoad()

int CParameterPlayer::OnLoad ( QSettings & set)
overrideprotectedvirtual

Reimplemented from CParameterDesktop.

Definition at line 183 of file ParameterPlayer.cpp.

◆ OnSave()

int CParameterPlayer::OnSave ( QSettings & set)
overrideprotectedvirtual

Reimplemented from CParameterDesktop.

Definition at line 214 of file ParameterPlayer.cpp.

◆ SetAudioInput()

int CParameterPlayer::SetAudioInput ( int nIndex)

Definition at line 68 of file ParameterPlayer.cpp.

◆ SetAudioInputMuted()

int CParameterPlayer::SetAudioInputMuted ( bool bMuted)

Definition at line 98 of file ParameterPlayer.cpp.

◆ SetAudioInputVolume()

int CParameterPlayer::SetAudioInputVolume ( float fVolume)

Definition at line 113 of file ParameterPlayer.cpp.

◆ SetAudioOutput()

int CParameterPlayer::SetAudioOutput ( int nIndex)

Definition at line 128 of file ParameterPlayer.cpp.

◆ SetAudioOutputMuted()

int CParameterPlayer::SetAudioOutputMuted ( bool bMuted)

Definition at line 158 of file ParameterPlayer.cpp.

◆ SetAudioOutputVolume()

int CParameterPlayer::SetAudioOutputVolume ( float fVolume)

Definition at line 173 of file ParameterPlayer.cpp.

◆ SetCamera()

int CParameterPlayer::SetCamera ( int nIndex)

Definition at line 54 of file ParameterPlayer.cpp.

◆ SetEnableAudioInput()

int CParameterPlayer::SetEnableAudioInput ( bool bEnable)

Definition at line 83 of file ParameterPlayer.cpp.

◆ SetEnableAudioOutput()

int CParameterPlayer::SetEnableAudioOutput ( bool bEnable)

Definition at line 143 of file ParameterPlayer.cpp.

◆ SetScreen()

int CParameterPlayer::SetScreen ( int nIndex)

Definition at line 249 of file ParameterPlayer.cpp.

◆ SetSubtitle()

void CParameterPlayer::SetSubtitle ( bool subtitle)

Definition at line 263 of file ParameterPlayer.cpp.

◆ SetType()

int CParameterPlayer::SetType ( TYPE type)

Definition at line 26 of file ParameterPlayer.cpp.

◆ SetUrl()

int CParameterPlayer::SetUrl ( const QString & szUrl)

Definition at line 40 of file ParameterPlayer.cpp.

Member Data Documentation

◆ m_bAudioInputMuted

bool CParameterPlayer::m_bAudioInputMuted
private

Definition at line 81 of file ParameterPlayer.h.

◆ m_bAudioOutputMuted

bool CParameterPlayer::m_bAudioOutputMuted
private

Definition at line 85 of file ParameterPlayer.h.

◆ m_bEnableAudioInput

bool CParameterPlayer::m_bEnableAudioInput
private

Definition at line 80 of file ParameterPlayer.h.

◆ m_bEnableAudioOutput

bool CParameterPlayer::m_bEnableAudioOutput
private

Definition at line 84 of file ParameterPlayer.h.

◆ m_bSubtitle

bool CParameterPlayer::m_bSubtitle
private

Definition at line 92 of file ParameterPlayer.h.

◆ m_fAudioInputVolume

float CParameterPlayer::m_fAudioInputVolume
private

Definition at line 82 of file ParameterPlayer.h.

◆ m_fAudioOutputVolume

float CParameterPlayer::m_fAudioOutputVolume
private

Definition at line 86 of file ParameterPlayer.h.

◆ m_nAudioInput

int CParameterPlayer::m_nAudioInput
private

Definition at line 79 of file ParameterPlayer.h.

◆ m_nAudioOutput

int CParameterPlayer::m_nAudioOutput
private

Definition at line 83 of file ParameterPlayer.h.

◆ m_nCamera

int CParameterPlayer::m_nCamera
private

Definition at line 78 of file ParameterPlayer.h.

◆ m_nScreen

int CParameterPlayer::m_nScreen
private

Definition at line 98 of file ParameterPlayer.h.

◆ m_szUrl

QString CParameterPlayer::m_szUrl
private

Definition at line 77 of file ParameterPlayer.h.

◆ m_Type

TYPE CParameterPlayer::m_Type
private

Definition at line 76 of file ParameterPlayer.h.


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