Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
Signals | Public Member Functions | Public Attributes | Protected Member Functions | Properties | Private Member Functions | Private Attributes | List of all members
CParameterBase Class Reference

The interface of connecter parameters. More...

#include <ParameterBase.h>

Inheritance diagram for CParameterBase:
CParameterConnecter CParameter CParameterFreeRDP CParameterLibVNCServer CParameterPlayer CParameterScreenCapture CParameterVnc

Signals

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

 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.
 

Public Attributes

CParameterNet m_Net
 
CParameterProxy m_Proxy
 
CParameterRecord m_Record
 

Protected Member Functions

virtual int OnLoad (QSettings &set) override
 
virtual int OnSave (QSettings &set) override
 
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.
 

Properties

QString Name
 
QString ServerName
 
bool ShowServerName
 
bool OnlyView
 
bool LocalCursor
 
CFrmViewer::ADAPT_WINDOWS AdaptWindows
 
double ZoomFactor
 
- Properties inherited from CParameter
bool Modified
 

Private Member Functions

int Init ()
 

Private Attributes

QString m_szName
 
QString m_szServerName
 
bool m_bShowServerName
 
bool m_bOnlyView
 
bool m_bLocalCursor
 
bool m_bCursorPosition
 
bool m_bClipboard
 
bool m_bSupportsDesktopResize
 
bool m_bLedState
 
CFrmViewer::ADAPT_WINDOWS m_AdaptWindows
 
double m_dbZoomFactor
 

Additional Inherited Members

- Protected Slots inherited from CParameterConnecter

Detailed Description

The interface of connecter parameters.

include base parameters(network etc). All plug-in connection parameters should be derived from this class.

Use connecter parameter

Definition at line 44 of file ParameterBase.h.

Constructor & Destructor Documentation

◆ CParameterBase()

CParameterBase::CParameterBase ( CParameterConnecter parent,
const QString &  szPrefix = QString() 
)
explicit

Definition at line 15 of file ParameterBase.cpp.

Member Function Documentation

◆ GetAdaptWindows()

CFrmViewer::ADAPT_WINDOWS CParameterBase::GetAdaptWindows ( )

Definition at line 194 of file ParameterBase.cpp.

◆ GetClipboard()

const bool CParameterBase::GetClipboard ( ) const
virtual

Definition at line 155 of file ParameterBase.cpp.

◆ GetCursorPosition()

const bool CParameterBase::GetCursorPosition ( ) const

Definition at line 142 of file ParameterBase.cpp.

◆ GetLedState()

bool CParameterBase::GetLedState ( ) const

Definition at line 181 of file ParameterBase.cpp.

◆ GetLocalCursor()

const bool CParameterBase::GetLocalCursor ( ) const

Definition at line 129 of file ParameterBase.cpp.

◆ GetName()

const QString CParameterBase::GetName ( ) const

Definition at line 75 of file ParameterBase.cpp.

◆ GetOnlyView()

bool CParameterBase::GetOnlyView ( ) const

Definition at line 116 of file ParameterBase.cpp.

◆ GetServerName()

const QString CParameterBase::GetServerName ( ) const

Definition at line 89 of file ParameterBase.cpp.

◆ GetShowServerName()

bool CParameterBase::GetShowServerName ( ) const

Definition at line 102 of file ParameterBase.cpp.

◆ GetSupportsDesktopResize()

bool CParameterBase::GetSupportsDesktopResize ( ) const

Definition at line 168 of file ParameterBase.cpp.

◆ GetZoomFactor()

double CParameterBase::GetZoomFactor ( ) const

Definition at line 208 of file ParameterBase.cpp.

◆ Init()

int CParameterBase::Init ( )
private

Definition at line 25 of file ParameterBase.cpp.

◆ OnLoad()

int CParameterBase::OnLoad ( QSettings &  set)
overrideprotectedvirtual

Implements CParameter.

Definition at line 39 of file ParameterBase.cpp.

◆ OnSave()

int CParameterBase::OnSave ( QSettings &  set)
overrideprotectedvirtual

Implements CParameter.

Definition at line 59 of file ParameterBase.cpp.

◆ SetAdaptWindows()

void CParameterBase::SetAdaptWindows ( CFrmViewer::ADAPT_WINDOWS  aw)

Definition at line 199 of file ParameterBase.cpp.

◆ SetClipboard()

void CParameterBase::SetClipboard ( bool  c)
virtual

Definition at line 160 of file ParameterBase.cpp.

◆ SetCursorPosition()

void CParameterBase::SetCursorPosition ( bool  pos)

Definition at line 147 of file ParameterBase.cpp.

◆ SetLedState()

void CParameterBase::SetLedState ( bool  state)

Definition at line 186 of file ParameterBase.cpp.

◆ SetLocalCursor()

void CParameterBase::SetLocalCursor ( bool  cursor)

Definition at line 134 of file ParameterBase.cpp.

◆ SetName()

void CParameterBase::SetName ( const QString &  szName)

Definition at line 80 of file ParameterBase.cpp.

◆ SetOnlyView()

void CParameterBase::SetOnlyView ( bool  only)

Definition at line 121 of file ParameterBase.cpp.

◆ SetServerName()

void CParameterBase::SetServerName ( const QString &  szName)

Definition at line 94 of file ParameterBase.cpp.

◆ SetShowServerName()

void CParameterBase::SetShowServerName ( bool  NewShowServerName)

Definition at line 107 of file ParameterBase.cpp.

◆ SetSupportsDesktopResize()

void CParameterBase::SetSupportsDesktopResize ( bool  newSupportsDesktopResize)

Definition at line 173 of file ParameterBase.cpp.

◆ SetZoomFactor()

void CParameterBase::SetZoomFactor ( double  newZoomFactor)

Definition at line 213 of file ParameterBase.cpp.

◆ slotSetParameterClient()

void CParameterBase::slotSetParameterClient ( )
overrideprotectedvirtual

Call after set CParameterClient.

Used to initialize operations related to CParameterClient.

Use CParameterClient in CParameterConnecter

Reimplemented from CParameterConnecter.

Definition at line 223 of file ParameterBase.cpp.

Member Data Documentation

◆ m_AdaptWindows

CFrmViewer::ADAPT_WINDOWS CParameterBase::m_AdaptWindows
private

Definition at line 115 of file ParameterBase.h.

◆ m_bClipboard

bool CParameterBase::m_bClipboard
private

Definition at line 104 of file ParameterBase.h.

◆ m_bCursorPosition

bool CParameterBase::m_bCursorPosition
private

Definition at line 103 of file ParameterBase.h.

◆ m_bLedState

bool CParameterBase::m_bLedState
private

Definition at line 106 of file ParameterBase.h.

◆ m_bLocalCursor

bool CParameterBase::m_bLocalCursor
private

Definition at line 102 of file ParameterBase.h.

◆ m_bOnlyView

bool CParameterBase::m_bOnlyView
private

Definition at line 101 of file ParameterBase.h.

◆ m_bShowServerName

bool CParameterBase::m_bShowServerName
private

Definition at line 100 of file ParameterBase.h.

◆ m_bSupportsDesktopResize

bool CParameterBase::m_bSupportsDesktopResize
private

Definition at line 105 of file ParameterBase.h.

◆ m_dbZoomFactor

double CParameterBase::m_dbZoomFactor
private

Definition at line 123 of file ParameterBase.h.

◆ m_Net

CParameterNet CParameterBase::m_Net

Definition at line 68 of file ParameterBase.h.

◆ m_Proxy

CParameterProxy CParameterBase::m_Proxy

Definition at line 69 of file ParameterBase.h.

◆ m_Record

CParameterRecord CParameterBase::m_Record

Definition at line 70 of file ParameterBase.h.

◆ m_szName

QString CParameterBase::m_szName
private

Definition at line 97 of file ParameterBase.h.

◆ m_szServerName

QString CParameterBase::m_szServerName
private

Definition at line 99 of file ParameterBase.h.

Property Documentation

◆ AdaptWindows

CFrmViewer::ADAPT_WINDOWS CParameterBase::AdaptWindows
readwrite

Definition at line 116 of file ParameterBase.h.

◆ LocalCursor

bool CParameterBase::LocalCursor
readwrite

Definition at line 52 of file ParameterBase.h.

◆ Name

QString CParameterBase::Name
readwrite

Definition at line 47 of file ParameterBase.h.

◆ OnlyView

bool CParameterBase::OnlyView
readwrite

Definition at line 51 of file ParameterBase.h.

◆ ServerName

QString CParameterBase::ServerName
readwrite

Definition at line 48 of file ParameterBase.h.

◆ ShowServerName

bool CParameterBase::ShowServerName
readwrite

Definition at line 49 of file ParameterBase.h.

◆ ZoomFactor

double CParameterBase::ZoomFactor
readwrite

Definition at line 124 of file ParameterBase.h.


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