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

The interface of connecter parameters. More...

#include <ParameterBase.h>

Inheritance diagram for CParameterBase:
Inheritance graph
[legend]
Collaboration diagram for CParameterBase:
Collaboration graph
[legend]

Signals

void sigNameChanged (const QString &name=QString())
 
void sigShowServerNameChanged ()
 
void sigEnableInputMethod (bool bEnable)
 
void sigAdaptWindowsChanged (CFrmViewer::ADAPT_WINDOWS aw)
 
void sigZoomFactorChanged (double newZoomFactor)
 
- Signals inherited from CParameterOperate
void sigSetGlobalParameters ()
 Only used by this class.
 
- 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 (CParameterOperate *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)
 
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=nullptr, const QString &szPrefix=QString())
 
CParameterPluginGetGlobalParameters ()
 Get CParameterPlugin.
 
int SetGlobalParameters (CParameterPlugin *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 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.
 

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 slotSetGlobalParameters () override
 Call after set CParameterPlugin.
 
- Protected Member Functions inherited from CParameterOperate
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
 
bool m_bEnableLocalInputMethod
 
CFrmViewer::ADAPT_WINDOWS m_AdaptWindows
 
double m_dbZoomFactor
 

Additional Inherited Members

- Protected Slots inherited from CParameterOperate

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 45 of file ParameterBase.h.

Constructor & Destructor Documentation

◆ CParameterBase()

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

Definition at line 16 of file ParameterBase.cpp.

Member Function Documentation

◆ GetAdaptWindows()

CFrmViewer::ADAPT_WINDOWS CParameterBase::GetAdaptWindows ( )

Definition at line 197 of file ParameterBase.cpp.

◆ GetClipboard()

const bool CParameterBase::GetClipboard ( ) const
virtual

Definition at line 158 of file ParameterBase.cpp.

◆ GetCursorPosition()

const bool CParameterBase::GetCursorPosition ( ) const

Definition at line 145 of file ParameterBase.cpp.

◆ GetEnableLocalInputMethod()

bool CParameterBase::GetEnableLocalInputMethod ( ) const

Definition at line 245 of file ParameterBase.cpp.

◆ GetLedState()

bool CParameterBase::GetLedState ( ) const

Definition at line 184 of file ParameterBase.cpp.

◆ GetLocalCursor()

const bool CParameterBase::GetLocalCursor ( ) const

Definition at line 132 of file ParameterBase.cpp.

◆ GetName()

const QString CParameterBase::GetName ( ) const

Definition at line 78 of file ParameterBase.cpp.

◆ GetOnlyView()

bool CParameterBase::GetOnlyView ( ) const

Definition at line 119 of file ParameterBase.cpp.

◆ GetServerName()

const QString CParameterBase::GetServerName ( ) const

Definition at line 92 of file ParameterBase.cpp.

◆ GetShowServerName()

bool CParameterBase::GetShowServerName ( ) const

Definition at line 105 of file ParameterBase.cpp.

◆ GetSupportsDesktopResize()

bool CParameterBase::GetSupportsDesktopResize ( ) const

Definition at line 171 of file ParameterBase.cpp.

◆ GetZoomFactor()

double CParameterBase::GetZoomFactor ( ) const

Definition at line 211 of file ParameterBase.cpp.

◆ Init()

int CParameterBase::Init ( )
private

Definition at line 26 of file ParameterBase.cpp.

◆ OnLoad()

int CParameterBase::OnLoad ( QSettings &  set)
overrideprotectedvirtual

Implements CParameter.

Definition at line 40 of file ParameterBase.cpp.

◆ OnSave()

int CParameterBase::OnSave ( QSettings &  set)
overrideprotectedvirtual

Implements CParameter.

Definition at line 61 of file ParameterBase.cpp.

◆ SetAdaptWindows()

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

Definition at line 202 of file ParameterBase.cpp.

◆ SetClipboard()

void CParameterBase::SetClipboard ( bool  c)
virtual

Definition at line 163 of file ParameterBase.cpp.

◆ SetCursorPosition()

void CParameterBase::SetCursorPosition ( bool  pos)

Definition at line 150 of file ParameterBase.cpp.

◆ SetEnableLocalInputMethod()

void CParameterBase::SetEnableLocalInputMethod ( bool  enable)

Definition at line 250 of file ParameterBase.cpp.

◆ SetLedState()

void CParameterBase::SetLedState ( bool  state)

Definition at line 189 of file ParameterBase.cpp.

◆ SetLocalCursor()

void CParameterBase::SetLocalCursor ( bool  cursor)

Definition at line 137 of file ParameterBase.cpp.

◆ SetName()

void CParameterBase::SetName ( const QString &  szName)

Definition at line 83 of file ParameterBase.cpp.

◆ SetOnlyView()

void CParameterBase::SetOnlyView ( bool  only)

Definition at line 124 of file ParameterBase.cpp.

◆ SetServerName()

void CParameterBase::SetServerName ( const QString &  szName)

Definition at line 97 of file ParameterBase.cpp.

◆ SetShowServerName()

void CParameterBase::SetShowServerName ( bool  NewShowServerName)

Definition at line 110 of file ParameterBase.cpp.

◆ SetSupportsDesktopResize()

void CParameterBase::SetSupportsDesktopResize ( bool  newSupportsDesktopResize)

Definition at line 176 of file ParameterBase.cpp.

◆ SetZoomFactor()

void CParameterBase::SetZoomFactor ( double  newZoomFactor)

Definition at line 216 of file ParameterBase.cpp.

◆ slotSetGlobalParameters()

void CParameterBase::slotSetGlobalParameters ( )
overrideprotectedvirtual

Call after set CParameterPlugin.

Used to initialize operations related to CParameterPlugin.

Use CParameterPlugin in CParameterOperate

Reimplemented from CParameterOperate.

Definition at line 226 of file ParameterBase.cpp.

Member Data Documentation

◆ m_AdaptWindows

CFrmViewer::ADAPT_WINDOWS CParameterBase::m_AdaptWindows
private

Definition at line 121 of file ParameterBase.h.

◆ m_bClipboard

bool CParameterBase::m_bClipboard
private

Definition at line 109 of file ParameterBase.h.

◆ m_bCursorPosition

bool CParameterBase::m_bCursorPosition
private

Definition at line 108 of file ParameterBase.h.

◆ m_bEnableLocalInputMethod

bool CParameterBase::m_bEnableLocalInputMethod
private

Definition at line 112 of file ParameterBase.h.

◆ m_bLedState

bool CParameterBase::m_bLedState
private

Definition at line 111 of file ParameterBase.h.

◆ m_bLocalCursor

bool CParameterBase::m_bLocalCursor
private

Definition at line 107 of file ParameterBase.h.

◆ m_bOnlyView

bool CParameterBase::m_bOnlyView
private

Definition at line 106 of file ParameterBase.h.

◆ m_bShowServerName

bool CParameterBase::m_bShowServerName
private

Definition at line 105 of file ParameterBase.h.

◆ m_bSupportsDesktopResize

bool CParameterBase::m_bSupportsDesktopResize
private

Definition at line 110 of file ParameterBase.h.

◆ m_dbZoomFactor

double CParameterBase::m_dbZoomFactor
private

Definition at line 129 of file ParameterBase.h.

◆ m_Net

CParameterNet CParameterBase::m_Net

Definition at line 69 of file ParameterBase.h.

◆ m_Proxy

CParameterProxy CParameterBase::m_Proxy

Definition at line 70 of file ParameterBase.h.

◆ m_Record

CParameterRecord CParameterBase::m_Record

Definition at line 71 of file ParameterBase.h.

◆ m_szName

QString CParameterBase::m_szName
private

Definition at line 102 of file ParameterBase.h.

◆ m_szServerName

QString CParameterBase::m_szServerName
private

Definition at line 104 of file ParameterBase.h.

Property Documentation

◆ AdaptWindows

CFrmViewer::ADAPT_WINDOWS CParameterBase::AdaptWindows
readwrite

Definition at line 122 of file ParameterBase.h.

◆ LocalCursor

bool CParameterBase::LocalCursor
readwrite

Definition at line 53 of file ParameterBase.h.

◆ Name

QString CParameterBase::Name
readwrite

Definition at line 48 of file ParameterBase.h.

◆ OnlyView

bool CParameterBase::OnlyView
readwrite

Definition at line 52 of file ParameterBase.h.

◆ ServerName

QString CParameterBase::ServerName
readwrite

Definition at line 49 of file ParameterBase.h.

◆ ShowServerName

bool CParameterBase::ShowServerName
readwrite

Definition at line 50 of file ParameterBase.h.

◆ ZoomFactor

double CParameterBase::ZoomFactor
readwrite

Definition at line 130 of file ParameterBase.h.


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