Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
Public Types | Signals | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CParameterPlayer Class Reference
Inheritance diagram for CParameterPlayer:
CParameterBase CParameterConnecter CParameter

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 CParameterBase
void sigNameChanged (const QString &name=QString())
 
void sigShowServerNameChanged ()
 
void sigAdaptWindowsChanged (CFrmViewer::ADAPT_WINDOWS aw)
 
void sigZoomFactorChanged (double newZoomFactor)
 
- Signals inherited from CParameterConnecter
void sigSetParameterClient ()
 
- 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)
 
const int GetScreen () const
 
int SetScreen (int nIndex)
 
- Public Member Functions inherited from CParameterBase
 CParameterBase (QObject *parent=nullptr)
 
 CParameterBase (CParameterConnecter *parent, const QString &szPrefix=QString())
 
const QString GetName () const
 
void SetName (const QString &szName)
 
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)
 
CFrmViewer::ADAPT_WINDOWS GetAdaptWindows ()
 
void SetAdaptWindows (CFrmViewer::ADAPT_WINDOWS aw)
 
double GetZoomFactor () const
 
void SetZoomFactor (double newZoomFactor)
 
- Public Member Functions inherited from CParameterConnecter
 CParameterConnecter (QObject *parent=nullptr, const QString &szPrefix=QString())
 
CParameterClientGetParameterClient ()
 Get CParameterClient.
 
int SetParameterClient (CParameterClient *p)
 
- Public Member Functions inherited from CParameter
 CParameter (QObject *parent=nullptr, 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 storage.
 
virtual int Save (QSettings &set, bool bForce=true)
 Save to storage.
 
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 CParameterBase
virtual void slotSetParameterClient () override
 Call after set CParameterClient.
 
- Protected Member Functions inherited from CParameterConnecter
QByteArray PasswordSum (const std::string &password, const std::string &key)
 
int LoadPassword (const QString &szTitle, const QString &szKey, QString &password, QSettings &set)
 
int SavePassword (const QString &szKey, const QString &password, QSettings &set, bool bSave=false)
 
- 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
 
int m_nScreen
 

Additional Inherited Members

- Public Attributes inherited from CParameterBase
CParameterNet m_Net
 
CParameterProxy m_Proxy
 
CParameterRecord m_Record
 
- Protected Slots inherited from CParameterConnecter
- Properties inherited from CParameterBase
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 62 of file ParameterPlayer.cpp.

◆ GetAudioInputMuted()

const bool CParameterPlayer::GetAudioInputMuted ( ) const

Definition at line 92 of file ParameterPlayer.cpp.

◆ GetAudioInputVolume()

const float CParameterPlayer::GetAudioInputVolume ( ) const

Definition at line 107 of file ParameterPlayer.cpp.

◆ GetAudioOutput()

const int CParameterPlayer::GetAudioOutput ( ) const

Definition at line 122 of file ParameterPlayer.cpp.

◆ GetAudioOutputMuted()

const bool CParameterPlayer::GetAudioOutputMuted ( ) const

Definition at line 152 of file ParameterPlayer.cpp.

◆ GetAudioOutputVolume()

const float CParameterPlayer::GetAudioOutputVolume ( ) const

Definition at line 167 of file ParameterPlayer.cpp.

◆ GetCamera()

const int CParameterPlayer::GetCamera ( ) const

Definition at line 48 of file ParameterPlayer.cpp.

◆ GetEnableAudioInput()

const bool CParameterPlayer::GetEnableAudioInput ( ) const

Definition at line 77 of file ParameterPlayer.cpp.

◆ GetEnableAudioOutput()

const bool CParameterPlayer::GetEnableAudioOutput ( ) const

Definition at line 137 of file ParameterPlayer.cpp.

◆ GetScreen()

const int CParameterPlayer::GetScreen ( ) const

Definition at line 231 of file ParameterPlayer.cpp.

◆ GetType()

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

Definition at line 20 of file ParameterPlayer.cpp.

◆ GetUrl()

const QString CParameterPlayer::GetUrl ( ) const

Definition at line 34 of file ParameterPlayer.cpp.

◆ OnLoad()

int CParameterPlayer::OnLoad ( QSettings &  set)
overrideprotectedvirtual

Reimplemented from CParameterBase.

Definition at line 181 of file ParameterPlayer.cpp.

◆ OnSave()

int CParameterPlayer::OnSave ( QSettings &  set)
overrideprotectedvirtual

Reimplemented from CParameterBase.

Definition at line 206 of file ParameterPlayer.cpp.

◆ SetAudioInput()

int CParameterPlayer::SetAudioInput ( int  nIndex)

Definition at line 67 of file ParameterPlayer.cpp.

◆ SetAudioInputMuted()

int CParameterPlayer::SetAudioInputMuted ( bool  bMuted)

Definition at line 97 of file ParameterPlayer.cpp.

◆ SetAudioInputVolume()

int CParameterPlayer::SetAudioInputVolume ( float  fVolume)

Definition at line 112 of file ParameterPlayer.cpp.

◆ SetAudioOutput()

int CParameterPlayer::SetAudioOutput ( int  nIndex)

Definition at line 127 of file ParameterPlayer.cpp.

◆ SetAudioOutputMuted()

int CParameterPlayer::SetAudioOutputMuted ( bool  bMuted)

Definition at line 157 of file ParameterPlayer.cpp.

◆ SetAudioOutputVolume()

int CParameterPlayer::SetAudioOutputVolume ( float  fVolume)

Definition at line 172 of file ParameterPlayer.cpp.

◆ SetCamera()

int CParameterPlayer::SetCamera ( int  nIndex)

Definition at line 53 of file ParameterPlayer.cpp.

◆ SetEnableAudioInput()

int CParameterPlayer::SetEnableAudioInput ( bool  bEnable)

Definition at line 82 of file ParameterPlayer.cpp.

◆ SetEnableAudioOutput()

int CParameterPlayer::SetEnableAudioOutput ( bool  bEnable)

Definition at line 142 of file ParameterPlayer.cpp.

◆ SetScreen()

int CParameterPlayer::SetScreen ( int  nIndex)

Definition at line 236 of file ParameterPlayer.cpp.

◆ SetType()

int CParameterPlayer::SetType ( TYPE  type)

Definition at line 25 of file ParameterPlayer.cpp.

◆ SetUrl()

int CParameterPlayer::SetUrl ( const QString &  szUrl)

Definition at line 39 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_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 92 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: