Rabbit Remote Control 0.1.0-alpha.2
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 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.
 
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

 CParameterBase (QObject *parent=nullptr)
 
 CParameterBase (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=nullptr, const QString &szPrefix=QString())
 
CParameterPluginGetGlobalParameters ()
 Get CParameterPlugin.
 
int SetGlobalParameters (CParameterPlugin *p)
 
const QString GetName () const
 
void SetName (const QString &szName)
 
- 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_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 44 of file ParameterBase.h.

Constructor & Destructor Documentation

◆ CParameterBase()

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

Definition at line 18 of file ParameterBase.cpp.

Member Function Documentation

◆ GetAdaptWindows()

CFrmViewer::ADAPT_WINDOWS CParameterBase::GetAdaptWindows ( )

Definition at line 183 of file ParameterBase.cpp.

◆ GetClipboard()

const bool CParameterBase::GetClipboard ( ) const
virtual

Definition at line 144 of file ParameterBase.cpp.

◆ GetCursorPosition()

const bool CParameterBase::GetCursorPosition ( ) const

Definition at line 131 of file ParameterBase.cpp.

◆ GetEnableLocalInputMethod()

bool CParameterBase::GetEnableLocalInputMethod ( ) const

Definition at line 231 of file ParameterBase.cpp.

◆ GetLedState()

bool CParameterBase::GetLedState ( ) const

Definition at line 170 of file ParameterBase.cpp.

◆ GetLocalCursor()

const bool CParameterBase::GetLocalCursor ( ) const

Definition at line 118 of file ParameterBase.cpp.

◆ GetOnlyView()

bool CParameterBase::GetOnlyView ( ) const

Definition at line 105 of file ParameterBase.cpp.

◆ GetServerName()

const QString CParameterBase::GetServerName ( ) const

Definition at line 78 of file ParameterBase.cpp.

◆ GetShowServerName()

bool CParameterBase::GetShowServerName ( ) const

Definition at line 91 of file ParameterBase.cpp.

◆ GetSupportsDesktopResize()

bool CParameterBase::GetSupportsDesktopResize ( ) const

Definition at line 157 of file ParameterBase.cpp.

◆ GetZoomFactor()

double CParameterBase::GetZoomFactor ( ) const

Definition at line 197 of file ParameterBase.cpp.

◆ Init()

int CParameterBase::Init ( )
private

Definition at line 28 of file ParameterBase.cpp.

◆ OnLoad()

int CParameterBase::OnLoad ( QSettings &  set)
overrideprotectedvirtual

Reimplemented from CParameterOperate.

Definition at line 42 of file ParameterBase.cpp.

◆ OnSave()

int CParameterBase::OnSave ( QSettings &  set)
overrideprotectedvirtual

Reimplemented from CParameterOperate.

Definition at line 62 of file ParameterBase.cpp.

◆ SetAdaptWindows()

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

Definition at line 188 of file ParameterBase.cpp.

◆ SetClipboard()

void CParameterBase::SetClipboard ( bool  c)
virtual

Definition at line 149 of file ParameterBase.cpp.

◆ SetCursorPosition()

void CParameterBase::SetCursorPosition ( bool  pos)

Definition at line 136 of file ParameterBase.cpp.

◆ SetEnableLocalInputMethod()

void CParameterBase::SetEnableLocalInputMethod ( bool  enable)

Definition at line 236 of file ParameterBase.cpp.

◆ SetLedState()

void CParameterBase::SetLedState ( bool  state)

Definition at line 175 of file ParameterBase.cpp.

◆ SetLocalCursor()

void CParameterBase::SetLocalCursor ( bool  cursor)

Definition at line 123 of file ParameterBase.cpp.

◆ SetOnlyView()

void CParameterBase::SetOnlyView ( bool  only)

Definition at line 110 of file ParameterBase.cpp.

◆ SetServerName()

void CParameterBase::SetServerName ( const QString &  szName)

Definition at line 83 of file ParameterBase.cpp.

◆ SetShowServerName()

void CParameterBase::SetShowServerName ( bool  NewShowServerName)

Definition at line 96 of file ParameterBase.cpp.

◆ SetSupportsDesktopResize()

void CParameterBase::SetSupportsDesktopResize ( bool  newSupportsDesktopResize)

Definition at line 162 of file ParameterBase.cpp.

◆ SetZoomFactor()

void CParameterBase::SetZoomFactor ( double  newZoomFactor)

Definition at line 202 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 212 of file ParameterBase.cpp.

Member Data Documentation

◆ m_AdaptWindows

CFrmViewer::ADAPT_WINDOWS CParameterBase::m_AdaptWindows
private

Definition at line 114 of file ParameterBase.h.

◆ m_bClipboard

bool CParameterBase::m_bClipboard
private

Definition at line 102 of file ParameterBase.h.

◆ m_bCursorPosition

bool CParameterBase::m_bCursorPosition
private

Definition at line 101 of file ParameterBase.h.

◆ m_bEnableLocalInputMethod

bool CParameterBase::m_bEnableLocalInputMethod
private

Definition at line 105 of file ParameterBase.h.

◆ m_bLedState

bool CParameterBase::m_bLedState
private

Definition at line 104 of file ParameterBase.h.

◆ m_bLocalCursor

bool CParameterBase::m_bLocalCursor
private

Definition at line 100 of file ParameterBase.h.

◆ m_bOnlyView

bool CParameterBase::m_bOnlyView
private

Definition at line 99 of file ParameterBase.h.

◆ m_bShowServerName

bool CParameterBase::m_bShowServerName
private

Definition at line 98 of file ParameterBase.h.

◆ m_bSupportsDesktopResize

bool CParameterBase::m_bSupportsDesktopResize
private

Definition at line 103 of file ParameterBase.h.

◆ m_dbZoomFactor

double CParameterBase::m_dbZoomFactor
private

Definition at line 122 of file ParameterBase.h.

◆ m_Net

CParameterNet CParameterBase::m_Net

Definition at line 65 of file ParameterBase.h.

◆ m_Proxy

CParameterProxy CParameterBase::m_Proxy

Definition at line 66 of file ParameterBase.h.

◆ m_Record

CParameterRecord CParameterBase::m_Record

Definition at line 67 of file ParameterBase.h.

◆ m_szServerName

QString CParameterBase::m_szServerName
private

Definition at line 97 of file ParameterBase.h.

Property Documentation

◆ AdaptWindows

CFrmViewer::ADAPT_WINDOWS CParameterBase::AdaptWindows
readwrite

Definition at line 115 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 123 of file ParameterBase.h.


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