|
| enum class | SslCaMode { NoTLS
, DefaultCAs
, CustomCAs
, IgnoreCertificate
} |
| enum | ConnectionState {
Disconnected
, Connecting
, Connected
, ConnectError
,
ConnectedError
} |
| | State of the process connection. More...
|
| void | processConnected () |
| | Connection established.
|
| void | disconnected () |
| | Disconnected gracefully.
|
| void | error () |
| | Connection error.
|
| void | broadcastReceived (const QString &message, const QString &attr, std::uint64_t time_ns, const QString &user) |
| void | connectionStatusChanged () |
| void | sslCaModeChanged () |
| Q_INVOKABLE void | ping (QJSValue jsCallback, double timeout=0) |
| | Ping server.
|
| | Process (QObject *parent=nullptr) |
| | Constructor.
|
| | Process (QObject *parent=nullptr) |
| | Constructor.
|
| virtual | ~Process () |
| | Destructor.
|
| void | setApplicationName (const QString &) |
| | Sets the application name.
|
| QString | getApplicationName () const |
| Q_INVOKABLE void | connectToHost (const QString &, quint16=2345) |
| | Starts to connect to a process.
|
| Q_INVOKABLE void | disconnectFromHost () |
| | Disconnects from a process.
|
| | Q_ENUM (ConnectionState) |
| ConnectionState | getConnectionState () const |
| bool | isConnected () const |
| const QString & | getErrorString () const |
| QString | getPeerName () const |
| QUrl | getUrl () const |
| int | getPort () const |
| QString | getHost () const |
| Q_INVOKABLE void | sendBroadcast (const QString &, const QString &attr="text") |
| | Send a broadcast message.
|
| Q_INVOKABLE quint64 | getRxBytes () const |
| Q_INVOKABLE quint64 | getTxBytes () const |
| QVariant | nameQt () const |
| | Remote process name string.
|
| QVariant | versionQt () const |
| | Remote process version string.
|
| QFuture< PdCom::Variable > | find (const QString &) |
| | Find a Variable.
|
| QFuture< VariableList > | list (const QString &="") |
| | Wrapper function for Process::list.
|
| QFuture< void > | pingQt () |
| QFuture< std::vector< PdCom::ClientStatistics > > | getClientStatisticsQt () |
| template<class Class, class Function> |
| QFutureWatcher< PdCom::Variable > & | find (const QString &path, Class *obj, Function &&callback) |
| | Also find a Variable.
|
| template<class Class, class Function> |
| QFutureWatcher< VariableList > & | list (const QString &path, Class *obj, Function &&callback) |
| template<class Class, class Function> |
| QFutureWatcher< void > & | ping (Class *obj, Function &&callback) |
| template<class Class, class Function> |
| QFutureWatcher< std::vector< PdCom::ClientStatistics > > & | getClientStatistics (Class *obj, Function &&callback) |
| void | setCaMode (SslCaMode mode) |
| | Set Traffic Encryption mode.
|
| SslCaMode | getCaMode () const |
| | Get Traffic Encryption mode.
|
| void | setClientCertificate (const QSslCertificate &cert, const QSslKey &key) |
| | Provide a client certificate.
|
| void | setCustomCAs (QList< QSslCertificate > cas) |
| | Set list of trusted Certificate Authorities.
|
| PdCom::MessageManagerBase * | getMessageManager () const |
| void | setLoginManager (LoginManager *lm) |
| | Set the Login Manager.
|
| LoginManager * | getLoginManager () const |
| bool | connected |
| | The process is connected and ready.
|
| ConnectionState | connectionState |
| SslCaMode | sslCaMode |
| int | port |
| QString | host |
| QUrl | url |
| QString | applicationName |
| QtPdCom::LoginManager * | loginManager |
| QVariant | name |
| QVariant | version |