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