#ifndef _LLIUREX_APT_COMMANDS_ #define _LLIUREX_APT_COMMANDS_ #include "Sources.hpp" #include #include #define CONF_PATH "/usr/share/lliurex-apt/sources/conf.d/" #define SOURCES_LIST "/etc/apt/sources.list" namespace net { namespace lliurex { namespace apt { namespace command { class Match { public: Sources * sources; FindLineStatus status; Match(Sources * source,FindLineStatus status); }; /*! Inits gio and glib */ void Init(); /*! Loads setup */ std::vector LoadConf(); /*! Prints sources.list to stdout */ void Show(); /*! List installed setups */ void List(std::vector & conf); /*! Analyzes a given input source and a list of available setups, and returns a vector of matches */ std::vector Check(Sources & src,std::vector & conf); /*! Create a source using an input and a set of targets */ Sources Set(Sources & isrc,std::vector & conf, std::vector & targets,bool reset=false); /*! Adds a source line to a source */ Sources Add(Sources & isrc,std::string line); } } } } #endif