连接基础参数接口。包括基本参数(网络参数等)。 所有插件的连接参数都应从此类派生。
更多...
#include <ParameterBase.h>
|
|
void | sigShowServerNameChanged () |
| |
|
void | sigEnableInputMethod (bool bEnable) |
| |
|
void | sigAdaptWindowsChanged (CFrmViewer::ADAPT_WINDOWS aw) |
| |
|
void | sigZoomFactorChanged (double newZoomFactor) |
| |
| void | sigSetGlobalParameters () |
| | 仅由此类使用
|
| |
|
void | sigNameChanged (const QString &name=QString()) |
| |
|
void | sigChanged () |
| | 当参数改变时,触发 通常如果需要,则相应的参数会对应一个改变事件。
|
| |
|
|
| 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) |
| |
|
| CParameterOperate (QObject *parent=nullptr, const QString &szPrefix=QString()) |
| |
| CParameterPlugin * | GetGlobalParameters () |
| | Get CParameterPlugin
|
| |
| int | SetGlobalParameters (CParameterPlugin *p) |
| |
| const QString | GetName () const |
| |
| void | SetName (const QString &szName) |
| |
| 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) |
| |
| | 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 () |
| | 检查参数是否有效,以决定是否使用或者保存参数。 派生类一般只要重载 OnCheckValidity() ,用于检查参数。
|
| |
连接基础参数接口。包括基本参数(网络参数等)。 所有插件的连接参数都应从此类派生。
使用连接基础参数
- 因为插件都有一些公共参数(例如:网络地址等),所以插件参数请从 CParameterBase 派生。
连接基础参数接口。包括基本参数(网络参数等)。 所有插件的连接参数都应从此类派生。
[Declare CParameterFreeRDP]
- 请在 CConnecter 派生类的构造函数中实例化连接参数。
- 调用 CConnecter::SetParameter 设置参数指针。
- 因为 CConnecter 实例运行在主线程中(UI线程),所以插件参数实例也在主线程中。
在文件 ParameterBase.h 第 44 行定义.
◆ CParameterBase()
| CParameterBase::CParameterBase |
( |
CParameterOperate * |
parent, |
|
|
const QString & |
szPrefix = QString() |
|
) |
| |
|
explicit |
◆ GetAdaptWindows()
◆ GetClipboard()
| const bool CParameterBase::GetClipboard |
( |
| ) |
const |
|
virtual |
◆ GetCursorPosition()
| const bool CParameterBase::GetCursorPosition |
( |
| ) |
const |
◆ GetEnableLocalInputMethod()
| bool CParameterBase::GetEnableLocalInputMethod |
( |
| ) |
const |
◆ GetLedState()
| bool CParameterBase::GetLedState |
( |
| ) |
const |
◆ GetLocalCursor()
| const bool CParameterBase::GetLocalCursor |
( |
| ) |
const |
◆ GetOnlyView()
| bool CParameterBase::GetOnlyView |
( |
| ) |
const |
◆ GetServerName()
| const QString CParameterBase::GetServerName |
( |
| ) |
const |
◆ GetShowServerName()
| bool CParameterBase::GetShowServerName |
( |
| ) |
const |
◆ GetSupportsDesktopResize()
| bool CParameterBase::GetSupportsDesktopResize |
( |
| ) |
const |
◆ GetZoomFactor()
| double CParameterBase::GetZoomFactor |
( |
| ) |
const |
◆ Init()
| int CParameterBase::Init |
( |
| ) |
|
|
private |
◆ OnLoad()
| int CParameterBase::OnLoad |
( |
QSettings & |
set | ) |
|
|
overrideprotectedvirtual |
◆ OnSave()
| int CParameterBase::OnSave |
( |
QSettings & |
set | ) |
|
|
overrideprotectedvirtual |
◆ SetAdaptWindows()
◆ SetClipboard()
| void CParameterBase::SetClipboard |
( |
bool |
c | ) |
|
|
virtual |
◆ SetCursorPosition()
| void CParameterBase::SetCursorPosition |
( |
bool |
pos | ) |
|
◆ SetEnableLocalInputMethod()
| void CParameterBase::SetEnableLocalInputMethod |
( |
bool |
enable | ) |
|
◆ SetLedState()
| void CParameterBase::SetLedState |
( |
bool |
state | ) |
|
◆ SetLocalCursor()
| void CParameterBase::SetLocalCursor |
( |
bool |
cursor | ) |
|
◆ SetOnlyView()
| void CParameterBase::SetOnlyView |
( |
bool |
only | ) |
|
◆ SetServerName()
| void CParameterBase::SetServerName |
( |
const QString & |
szName | ) |
|
◆ SetShowServerName()
| void CParameterBase::SetShowServerName |
( |
bool |
NewShowServerName | ) |
|
◆ SetSupportsDesktopResize()
| void CParameterBase::SetSupportsDesktopResize |
( |
bool |
newSupportsDesktopResize | ) |
|
◆ SetZoomFactor()
| void CParameterBase::SetZoomFactor |
( |
double |
newZoomFactor | ) |
|
◆ slotSetGlobalParameters()
| void CParameterBase::slotSetGlobalParameters |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ m_AdaptWindows
◆ m_bClipboard
| bool CParameterBase::m_bClipboard |
|
private |
◆ m_bCursorPosition
| bool CParameterBase::m_bCursorPosition |
|
private |
◆ m_bEnableLocalInputMethod
| bool CParameterBase::m_bEnableLocalInputMethod |
|
private |
◆ m_bLedState
| bool CParameterBase::m_bLedState |
|
private |
◆ m_bLocalCursor
| bool CParameterBase::m_bLocalCursor |
|
private |
◆ m_bOnlyView
| bool CParameterBase::m_bOnlyView |
|
private |
◆ m_bShowServerName
| bool CParameterBase::m_bShowServerName |
|
private |
◆ m_bSupportsDesktopResize
| bool CParameterBase::m_bSupportsDesktopResize |
|
private |
◆ m_dbZoomFactor
| double CParameterBase::m_dbZoomFactor |
|
private |
◆ m_Net
◆ m_Proxy
◆ m_Record
◆ m_szServerName
| QString CParameterBase::m_szServerName |
|
private |
◆ AdaptWindows
◆ LocalCursor
| bool CParameterBase::LocalCursor |
|
readwrite |
◆ Name
| QString CParameterBase::Name |
|
readwrite |
◆ OnlyView
| bool CParameterBase::OnlyView |
|
readwrite |
◆ ServerName
| QString CParameterBase::ServerName |
|
readwrite |
◆ ShowServerName
| bool CParameterBase::ShowServerName |
|
readwrite |
◆ ZoomFactor
| double CParameterBase::ZoomFactor |
|
readwrite |
该类的文档由以下文件生成:
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Src/ParameterCompone/ParameterBase.h
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Src/ParameterCompone/ParameterBase.cpp