Basic network parameters.  
 More...
#include <ParameterNet.h>
 | 
| 
void  | sigHostChanged (const QString &szHost) | 
|   | 
| void  | sigSetGlobalParameters () | 
|   | Only used by this class.  
  | 
|   | 
| 
void  | sigNameChanged (const QString &name=QString()) | 
|   | 
| 
void  | sigChanged () | 
|   | emit when the parameter changes Usually if required, the corresponding parameter corresponds to a change event. 
  | 
|   | 
 | 
|   | CParameterNet (CParameterOperate *parent, const QString &szPrefix=QString()) | 
|   | [Constructor]  
  | 
|   | 
| virtual const QString  | GetHost () const | 
|   | 
| virtual void  | SetHost (const QString &szHost) | 
|   | 
| virtual const quint16  | GetPort () const | 
|   | 
| virtual void  | SetPort (quint16 port) | 
|   | 
| int  | SetPrompt (const QString szPrompt) | 
|   | 
| QString  | GetPrompt () | 
|   | 
| 
  | 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 () | 
|   | Check whether the parameter is valid to decide whether to use or save the parameter.  
  | 
|   | 
 | 
| virtual int  | OnLoad (QSettings &set) override | 
|   | [Instance user]  
  | 
|   | 
| virtual int  | OnSave (QSettings &set) override | 
|   | 
| QByteArray  | PasswordSum (const std::string &password, const std::string &key) | 
|   | 
| 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.  
  | 
|   | 
Basic network parameters. 
It only valid in plugin. It's UI is CParameterNetUI 
- Note
 
- The interface only is implemented and used by plugin.
 
- See also
 - CParameterOperate CParameterNetUI 
 
Definition at line 25 of file ParameterNet.h.
 
◆ CParameterNet()
  
  
      
        
          | CParameterNet::CParameterNet  | 
          ( | 
          CParameterOperate *  | 
          parent,  | 
         
        
           | 
           | 
          const QString &  | 
          szPrefix = QString()  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
explicit   | 
  
 
 
◆ GetHost()
  
  
      
        
          | const QString CParameterNet::GetHost  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
 
◆ GetPort()
  
  
      
        
          | const quint16 CParameterNet::GetPort  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
 
◆ GetPrompt()
      
        
          | QString CParameterNet::GetPrompt  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ OnLoad()
  
  
      
        
          | int CParameterNet::OnLoad  | 
          ( | 
          QSettings &  | 
          set | ) | 
           | 
         
       
   | 
  
overrideprotectedvirtual   | 
  
 
 
◆ OnSave()
  
  
      
        
          | int CParameterNet::OnSave  | 
          ( | 
          QSettings &  | 
          set | ) | 
           | 
         
       
   | 
  
overrideprotectedvirtual   | 
  
 
 
◆ SetHost()
  
  
      
        
          | void CParameterNet::SetHost  | 
          ( | 
          const QString &  | 
          szHost | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ SetPort()
  
  
      
        
          | void CParameterNet::SetPort  | 
          ( | 
          quint16  | 
          port | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ SetPrompt()
      
        
          | int CParameterNet::SetPrompt  | 
          ( | 
          const QString  | 
          szPrompt | ) | 
           | 
        
      
 
 
◆ m_nPort
  
  
      
        
          | quint16 CParameterNet::m_nPort | 
         
       
   | 
  
private   | 
  
 
 
◆ m_szHost
  
  
      
        
          | QString CParameterNet::m_szHost | 
         
       
   | 
  
private   | 
  
 
 
◆ m_szPrompt
  
  
      
        
          | QString CParameterNet::m_szPrompt | 
         
       
   | 
  
private   | 
  
 
 
◆ m_User
The documentation for this class was generated from the following files:
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Src/ParameterCompone/ParameterNet.h
 
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Src/ParameterCompone/ParameterNet.cpp