23 using 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");
63 DBG <<
"Plugin Service: " << service_info << endl;
64 callback(service_info);
static void loadServices(const Pathname &path, const PluginServices::ProcessService &callback)
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.
void setAutorefresh(bool autorefresh)
enable or disable autorefresh
PluginServices(const Pathname &path, const ProcessService &callback)
const char * c_str() const
String representation.
void setAlias(const std::string &alias)
set the repository alias
String related utilities and Regular expression matching.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
std::string form(const char *format,...) __attribute__((format(printf
Printf style construction of std::string.
void setType(const repo::ServiceType &type)
Set service type.
static const ServiceType PLUGIN
Plugin services are scripts installed on your system that provide the package manager with repositori...
void setUrl(const Url &url)
Set the service url (raw value)
int readdir(std::list< std::string > &retlist_r, const Pathname &path_r, bool dots_r)
Return content of directory via retlist.
Base class for Exception.
Wrapper class for ::stat/::lstat.
Easy-to use interface to the ZYPP dependency resolver.
function< bool(const ServiceInfo &)> ProcessService
Callback definition.
friend std::ostream & operator<<(std::ostream &str, const PluginServices &obj)