9#include <QtCore/QString>
14namespace Sonde::Bridge {
QString commandLineDescription()
One line on what sonde-bridge does.
Definition bridge.cpp:441
std::pair< QString, QString > commandLineArgument()
Its argument's name and description: the local server.
Definition bridge.cpp:446
int run(const QString &name, const RetryPolicy &policy)
Connects to the local server name and copies lines between it and stdin and stdout,...
Definition bridge.cpp:460
std::optional< int > holdSeconds(const QString &text)
The seconds in a –hold value: a number from 0 to kMaxHoldSeconds, or nothing.
Definition bridge.cpp:451
QList< OptionDoc > commandLineOptions()
sonde-bridge's options, in the order its help lists them.
Definition bridge.cpp:422
constexpr int kMaxHoldSeconds
The longest –hold allowed, in seconds.
Definition bridge.h:20
constexpr int kDefaultHoldSeconds
With –reconnect, how long a request sent while the application is away is held by default,...
Definition bridge.h:18
One of sonde-bridge's command-line options, as its parser and sonde's man page for it describe it (de...
Definition bridge.h:36
QString valueName
What its value is called, or empty for a flag: "seconds".
Definition bridge.h:38
QString description
What it does.
Definition bridge.h:39
QString name
The long name, without "--": "wait-timeout".
Definition bridge.h:37
How long to keep retrying a failed connection, and whether to survive a disconnection.
Definition bridge.h:25
int holdSeconds
With reconnect: how long to hold requests while.
Definition bridge.h:29
bool reconnect
Whether to reconnect after the server closes the connection.
Definition bridge.h:28
bool retry
Whether to retry at all.
Definition bridge.h:26
int seconds
Give up after this long; 0 means never.
Definition bridge.h:27