12 #ifndef ZYPP_PLUGINSCRIPT_H 13 #define ZYPP_PLUGINSCRIPT_H 19 #include <zypp/base/PtrTypes.h> 20 #include <zypp/Pathname.h> 197 #endif // ZYPP_PLUGINSCRIPT_H static void defaultTimeout(long newval_r)
Set global default timeout (sec.) (both: send and receive).
friend std::ostream & operator<<(std::ostream &str, const PluginScript &obj)
void timeout(long newval_r)
Set local default timeout (sec.) (both: send and receive).
Command frame for communication with PluginScript.
std::ostream & operator<<(std::ostream &str, const InputStream &obj)
std::vector< std::string > Arguments
Commandline arguments passed to a script on open.
PluginScript implementation.
String related utilities and Regular expression matching.
PluginScript()
Default ctor.
const Pathname & script() const
Return the script path if set.
static const pid_t NotConnected
pid_t(-1) constant indicating no connection.
PluginFrame receive() const
Receive a PluginFrame.
const Arguments & args() const
Return the script arguments if set.
long receiveTimeout() const
Local default timeout (sec.) when receiving data.
RW_pointer< Impl > _pimpl
Pointer to implementation.
void send(const PluginFrame &frame_r) const
Send a PluginFrame.
static long defaultSendTimeout()
Global default timeout (sec.) when sending data.
static long defaultReceiveTimeout()
Global default timeout (sec.) when receiving data.
pid_t getPid() const
Return a connected scripts pid or NotConnected.
long sendTimeout() const
Local default timeout (sec.) when sending data.
void open()
Setup connection and execute script.
const std::string & lastExecError() const
Remembers a scripts execError string after close until next open.
int close()
Close any open connection.
int lastReturn() const
Remembers a scripts return value after close until next open.
Interface to plugin scripts using a Stomp inspired communication protocol.
Easy-to use interface to the ZYPP dependency resolver.
bool isOpen() const
Whether we are connected to a script.