14#include <zypp-core/base/InputStream> 
   15#include <zypp-core/base/UserRequestException> 
   23using std::stringstream;
 
   43      std::list<Pathname> entries;
 
   53        for_(it, entries.begin(), entries.end() )
 
   56          service_info.
setAlias((*it).basename());
 
   58          url.setPathName((*it).asString());
 
   59          url.setScheme(
"file");
 
   61          service_info.
setType(ServiceType::PLUGIN);
 
   63          DBG << 
"Plugin Service: " << service_info << endl;
 
 
Base class for Exception.
void setType(const repo::ServiceType &type)
Set service type.
void setUrl(const Url &url)
Set the service url (raw value)
Wrapper class for stat/lstat.
const char * c_str() const
String representation.
static void loadServices(const Pathname &path, const PluginServices::ProcessService &callback)
friend std::ostream & operator<<(std::ostream &str, const PluginServices &obj)
PluginServices(const Pathname &path, const ProcessService &callback)
function< bool(const ServiceInfo &)> ProcessService
Callback definition.
void setAutorefresh(bool autorefresh)
enable or disable autorefresh
void setAlias(const std::string &alias)
set the repository alias
String related utilities and Regular expression matching.
int readdir(std::list< std::string > &retlist_r, const Pathname &path_r, bool dots_r)
Return content of directory via retlist.
std::string form(const char *format,...) __attribute__((format(printf
Printf style construction of std::string.
Easy-to use interface to the ZYPP dependency resolver.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.