manage plugins and connecter
More...
#include <Client.h>
manage plugins and connecter
- See also
- CPluginClient CConnecter
Definition at line 48 of file Client.h.
◆ ~CClient()
◆ AppendPlugin()
◆ CreateConnecter()
CConnecter * CClient::CreateConnecter |
( |
const QString & |
id | ) |
|
|
virtual |
◆ DeleteConnecter()
◆ Details()
const QString CClient::Details |
( |
| ) |
const |
◆ EnumPlugins() [1/2]
int CClient::EnumPlugins |
( |
Handle * |
handle | ) |
|
|
virtual |
◆ EnumPlugins() [2/2]
virtual int CClient::EnumPlugins |
( |
std::function< int(const QString &id, CPluginClient *pPlug)> |
cb | ) |
|
|
virtual |
Enum plugins.
- Note
- It is need c++ standard 11
- Parameters
-
cb | Process plugins callback function |
id | plugin id |
pPlug | CPluginClient pointer |
◆ eventFilter()
bool CClient::eventFilter |
( |
QObject * |
watched, |
|
|
QEvent * |
event |
|
) |
| |
|
overridevirtual |
◆ FindPlugins()
int CClient::FindPlugins |
( |
QDir |
dir, |
|
|
QStringList |
filters |
|
) |
| |
|
private |
◆ GetSettingsWidgets()
QList< QWidget * > CClient::GetSettingsWidgets |
( |
QWidget * |
parent | ) |
|
|
virtual |
Get parameter settings widget.
- Returns
- Parameter widget. The QWidget owner is caller.
- Note
- The widget must be a derivative of CParameterUI. Eg: CFrmParameterClient
Usage:
void MainWindow::on_actionSettings_triggered()
{
if(CParameterDlgSettings::Accepted == RC_SHOW_WINDOW(&set))
{
m_Client.SaveSettings();
m_Parameter.Save();
}
}
Connect the signal(accepted) to the slot(slotAccept) in CParameterDlgSettings
foreach(auto p, wViewer)
{
ui->tabWidget->addTab(p, p->windowIcon(), p->windowTitle());
bool check = false;
check = connect(this, SIGNAL(accepted()), p, SLOT(slotAccept()));
if(!check)
{
qCritical(log) << "Class" << p->metaObject()->className()
<< "must has slot slotAccept(), please add it";
}
Q_ASSERT(check);
}
- See also
- CFrmParameterClient CParameterDlgSettings
Definition at line 361 of file Client.cpp.
◆ LoadConnecter()
CConnecter * CClient::LoadConnecter |
( |
const QString & |
szFile | ) |
|
|
virtual |
◆ LoadPlugins()
int CClient::LoadPlugins |
( |
| ) |
|
|
private |
◆ LoadSettings()
int CClient::LoadSettings |
( |
QString |
szFile = QString() | ) |
|
|
virtual |
Load Client parameters from file.
- Parameters
-
Definition at line 351 of file Client.cpp.
◆ SaveConnecter()
int CClient::SaveConnecter |
( |
QString |
szFile, |
|
|
CConnecter * |
pConnecter |
|
) |
| |
|
virtual |
Accept connecter parameters to file.
Definition at line 308 of file Client.cpp.
◆ SaveSettings()
int CClient::SaveSettings |
( |
QString |
szFile = QString() | ) |
|
|
virtual |
Save Client parameters to file.
- Parameters
-
Definition at line 356 of file Client.cpp.
◆ slotHookKeyboardChanged
void CClient::slotHookKeyboardChanged |
( |
| ) |
|
|
privateslot |
◆ m_FileVersion
qint8 CClient::m_FileVersion |
|
private |
◆ m_Hook
QSharedPointer<CHook> CClient::m_Hook |
|
private |
◆ m_Plugins
◆ m_pParameterClient
◆ m_szDetails
QString CClient::m_szDetails |
|
private |
◆ m_Translator
QSharedPointer<QTranslator> CClient::m_Translator |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Client/Client.h
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Client/Client.cpp