玉兔远程控制 0.1.0-de
载入中...
搜索中...
未找到
信号 | Public 成员函数 | Public 属性 | Protected 成员函数 | 属性 | Private 成员函数 | Private 属性 | 所有成员列表
CParameterBase类 参考

连接基础参数接口。包括基本参数(网络参数等)。 所有插件的连接参数都应从此类派生。 更多...

#include <ParameterBase.h>

类 CParameterBase 继承关系图:
Inheritance graph
[图例]
CParameterBase 的协作图:
Collaboration graph
[图例]

信号

void sigShowServerNameChanged ()
 
void sigEnableInputMethod (bool bEnable)
 
void sigAdaptWindowsChanged (CFrmViewer::ADAPT_WINDOWS aw)
 
void sigZoomFactorChanged (double newZoomFactor)
 
- 信号 继承自 CParameterOperate
void sigSetGlobalParameters ()
 仅由此类使用
 
void sigNameChanged (const QString &name=QString())
 
- 信号 继承自 CParameter
void sigChanged ()
 当参数改变时,触发 通常如果需要,则相应的参数会对应一个改变事件。
 

Public 成员函数

 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 成员函数 继承自 CParameterOperate
 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)
 
- Public 成员函数 继承自 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 ()
 检查参数是否有效,以决定是否使用或者保存参数。 派生类一般只要重载 OnCheckValidity() ,用于检查参数。
 

Public 属性

CParameterNet m_Net
 
CParameterProxy m_Proxy
 
CParameterRecord m_Record
 

Protected 成员函数

virtual int OnLoad (QSettings &set) override
 
virtual int OnSave (QSettings &set) override
 
virtual void slotSetGlobalParameters () override
 设置 CParameterPlugin 后调用,用于初始化与 CParameterPlugin 有关的操作。
 
- Protected 成员函数 继承自 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 成员函数 继承自 CParameter
virtual bool OnCheckValidity ()
 检查参数是否有效
 
int SetModified (bool bModified=true)
 在设置参数时,如果有修改,则调用。
 
bool GetModified ()
 参数是否有修改
 

属性

QString Name
 
QString ServerName
 
bool ShowServerName
 
bool OnlyView
 
bool LocalCursor
 
CFrmViewer::ADAPT_WINDOWS AdaptWindows
 
double ZoomFactor
 
- 属性 继承自 CParameter
bool Modified
 

Private 成员函数

int Init ()
 

Private 属性

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
 

额外继承的成员函数

- Protected 槽 继承自 CParameterOperate

详细描述

连接基础参数接口。包括基本参数(网络参数等)。 所有插件的连接参数都应从此类派生。

使用连接基础参数

在文件 ParameterBase.h 第 44 行定义.

构造及析构函数说明

◆ CParameterBase()

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

在文件 ParameterBase.cpp 第 18 行定义.

成员函数说明

◆ GetAdaptWindows()

CFrmViewer::ADAPT_WINDOWS CParameterBase::GetAdaptWindows ( )

在文件 ParameterBase.cpp 第 183 行定义.

◆ GetClipboard()

const bool CParameterBase::GetClipboard ( ) const
virtual

在文件 ParameterBase.cpp 第 144 行定义.

◆ GetCursorPosition()

const bool CParameterBase::GetCursorPosition ( ) const

在文件 ParameterBase.cpp 第 131 行定义.

◆ GetEnableLocalInputMethod()

bool CParameterBase::GetEnableLocalInputMethod ( ) const

在文件 ParameterBase.cpp 第 231 行定义.

◆ GetLedState()

bool CParameterBase::GetLedState ( ) const

在文件 ParameterBase.cpp 第 170 行定义.

◆ GetLocalCursor()

const bool CParameterBase::GetLocalCursor ( ) const

在文件 ParameterBase.cpp 第 118 行定义.

◆ GetOnlyView()

bool CParameterBase::GetOnlyView ( ) const

在文件 ParameterBase.cpp 第 105 行定义.

◆ GetServerName()

const QString CParameterBase::GetServerName ( ) const

在文件 ParameterBase.cpp 第 78 行定义.

◆ GetShowServerName()

bool CParameterBase::GetShowServerName ( ) const

在文件 ParameterBase.cpp 第 91 行定义.

◆ GetSupportsDesktopResize()

bool CParameterBase::GetSupportsDesktopResize ( ) const

在文件 ParameterBase.cpp 第 157 行定义.

◆ GetZoomFactor()

double CParameterBase::GetZoomFactor ( ) const

在文件 ParameterBase.cpp 第 197 行定义.

◆ Init()

int CParameterBase::Init ( )
private

在文件 ParameterBase.cpp 第 28 行定义.

◆ OnLoad()

int CParameterBase::OnLoad ( QSettings &  set)
overrideprotectedvirtual

重载 CParameterOperate .

在文件 ParameterBase.cpp 第 42 行定义.

◆ OnSave()

int CParameterBase::OnSave ( QSettings &  set)
overrideprotectedvirtual

重载 CParameterOperate .

在文件 ParameterBase.cpp 第 62 行定义.

◆ SetAdaptWindows()

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

在文件 ParameterBase.cpp 第 188 行定义.

◆ SetClipboard()

void CParameterBase::SetClipboard ( bool  c)
virtual

在文件 ParameterBase.cpp 第 149 行定义.

◆ SetCursorPosition()

void CParameterBase::SetCursorPosition ( bool  pos)

在文件 ParameterBase.cpp 第 136 行定义.

◆ SetEnableLocalInputMethod()

void CParameterBase::SetEnableLocalInputMethod ( bool  enable)

在文件 ParameterBase.cpp 第 236 行定义.

◆ SetLedState()

void CParameterBase::SetLedState ( bool  state)

在文件 ParameterBase.cpp 第 175 行定义.

◆ SetLocalCursor()

void CParameterBase::SetLocalCursor ( bool  cursor)

在文件 ParameterBase.cpp 第 123 行定义.

◆ SetOnlyView()

void CParameterBase::SetOnlyView ( bool  only)

在文件 ParameterBase.cpp 第 110 行定义.

◆ SetServerName()

void CParameterBase::SetServerName ( const QString &  szName)

在文件 ParameterBase.cpp 第 83 行定义.

◆ SetShowServerName()

void CParameterBase::SetShowServerName ( bool  NewShowServerName)

在文件 ParameterBase.cpp 第 96 行定义.

◆ SetSupportsDesktopResize()

void CParameterBase::SetSupportsDesktopResize ( bool  newSupportsDesktopResize)

在文件 ParameterBase.cpp 第 162 行定义.

◆ SetZoomFactor()

void CParameterBase::SetZoomFactor ( double  newZoomFactor)

在文件 ParameterBase.cpp 第 202 行定义.

◆ slotSetGlobalParameters()

void CParameterBase::slotSetGlobalParameters ( )
overrideprotectedvirtual

类成员变量说明

◆ m_AdaptWindows

CFrmViewer::ADAPT_WINDOWS CParameterBase::m_AdaptWindows
private

在文件 ParameterBase.h 第 114 行定义.

◆ m_bClipboard

bool CParameterBase::m_bClipboard
private

在文件 ParameterBase.h 第 102 行定义.

◆ m_bCursorPosition

bool CParameterBase::m_bCursorPosition
private

在文件 ParameterBase.h 第 101 行定义.

◆ m_bEnableLocalInputMethod

bool CParameterBase::m_bEnableLocalInputMethod
private

在文件 ParameterBase.h 第 105 行定义.

◆ m_bLedState

bool CParameterBase::m_bLedState
private

在文件 ParameterBase.h 第 104 行定义.

◆ m_bLocalCursor

bool CParameterBase::m_bLocalCursor
private

在文件 ParameterBase.h 第 100 行定义.

◆ m_bOnlyView

bool CParameterBase::m_bOnlyView
private

在文件 ParameterBase.h 第 99 行定义.

◆ m_bShowServerName

bool CParameterBase::m_bShowServerName
private

在文件 ParameterBase.h 第 98 行定义.

◆ m_bSupportsDesktopResize

bool CParameterBase::m_bSupportsDesktopResize
private

在文件 ParameterBase.h 第 103 行定义.

◆ m_dbZoomFactor

double CParameterBase::m_dbZoomFactor
private

在文件 ParameterBase.h 第 122 行定义.

◆ m_Net

CParameterNet CParameterBase::m_Net

在文件 ParameterBase.h 第 65 行定义.

◆ m_Proxy

CParameterProxy CParameterBase::m_Proxy

在文件 ParameterBase.h 第 66 行定义.

◆ m_Record

CParameterRecord CParameterBase::m_Record

在文件 ParameterBase.h 第 67 行定义.

◆ m_szServerName

QString CParameterBase::m_szServerName
private

在文件 ParameterBase.h 第 97 行定义.

属性说明

◆ AdaptWindows

CFrmViewer::ADAPT_WINDOWS CParameterBase::AdaptWindows
readwrite

在文件 ParameterBase.h 第 115 行定义.

◆ LocalCursor

bool CParameterBase::LocalCursor
readwrite

在文件 ParameterBase.h 第 52 行定义.

◆ Name

QString CParameterBase::Name
readwrite

在文件 ParameterBase.h 第 47 行定义.

◆ OnlyView

bool CParameterBase::OnlyView
readwrite

在文件 ParameterBase.h 第 51 行定义.

◆ ServerName

QString CParameterBase::ServerName
readwrite

在文件 ParameterBase.h 第 48 行定义.

◆ ShowServerName

bool CParameterBase::ShowServerName
readwrite

在文件 ParameterBase.h 第 49 行定义.

◆ ZoomFactor

double CParameterBase::ZoomFactor
readwrite

在文件 ParameterBase.h 第 123 行定义.


该类的文档由以下文件生成: