#include <packageManager.h>
Public Member Functions | |
~PackageManager () | |
Element * | getElement (const miniXml::ustring &elementName) |
const std::list< Element * > & | getElements () |
Category * | getCategory (const miniXml::ustring &categoryName) |
const std::list< Category * > & | getCategorys () |
void | removeSet (const miniXml::ustring &name) |
Remove a Set. | |
void | add (Element *package) |
Add an Element. | |
void | add (Category *category) |
Add a Category. | |
void | removeCategory (const miniXml::ustring &name) |
Remove a Category. | |
Installation * | install (const miniXml::ustring &uri, const Util::PropertyList &pList=Util::PropertyList()) |
Install a package. | |
Uninstallation * | uninstall (const miniXml::ustring &elementName, const miniXml::ustring &branchName="", bool noDependencyCheck=false) |
Uninstall an Element. | |
std::list< InstalledVersion * > | getElementOfFile (const miniXml::ustring &file) |
Get the list of Versionned object of an installed file. | |
const miniXml::ustring & | user () |
const miniXml::ustring & | user () const |
Static Public Member Functions | |
static boost::shared_ptr< PackageManager > & | create (const miniXml::ustring &userName) |
Get a PackageManager object. | |
Public Attributes | |
boost::signal< void(Element *)> | signalNewElement )() |
boost::signal< void(Category *)> | signalNewCategory )() |
boost::signal< void(Plugin::InstallerInterface *)> | signalNewInstaller )() |
Friends | |
class | ElementStore |
class | CategoryStore |
Spm::Core::PackageManager::~PackageManager | ( | ) |
static boost::shared_ptr<PackageManager>& Spm::Core::PackageManager::create | ( | const miniXml::ustring & | userName | ) | [static] |
Get a PackageManager object.
userName | The user name of the wanted PackageManager |
Element* Spm::Core::PackageManager::getElement | ( | const miniXml::ustring & | elementName | ) |
Category* Spm::Core::PackageManager::getCategory | ( | const miniXml::ustring & | categoryName | ) |
const std::list<Category *>& Spm::Core::PackageManager::getCategorys | ( | ) |
void Spm::Core::PackageManager::removeSet | ( | const miniXml::ustring & | name | ) |
void Spm::Core::PackageManager::add | ( | Element * | package | ) |
void Spm::Core::PackageManager::add | ( | Category * | category | ) |
void Spm::Core::PackageManager::removeCategory | ( | const miniXml::ustring & | name | ) |
Installation* Spm::Core::PackageManager::install | ( | const miniXml::ustring & | uri, | |
const Util::PropertyList & | pList = Util::PropertyList() | |||
) |
Install a package.
uri | The URI of the package to install |
Uninstallation* Spm::Core::PackageManager::uninstall | ( | const miniXml::ustring & | elementName, | |
const miniXml::ustring & | branchName = "" , |
|||
bool | noDependencyCheck = false | |||
) |
Uninstall an Element.
elementName | The name of element to uninstall | |
branchName | The name of the branch to uninstall (if blank, all Branch of the Element will be uninstalled) | |
noDependencyCheck | Skip Dependency check if true |
std::list<InstalledVersion *> Spm::Core::PackageManager::getElementOfFile | ( | const miniXml::ustring & | file | ) |
Get the list of Versionned object of an installed file.
file | The file to look for |
const miniXml::ustring& Spm::Core::PackageManager::user | ( | ) | [inline] |
const miniXml::ustring& Spm::Core::PackageManager::user | ( | ) | const [inline] |
friend class ElementStore [friend] |
friend class CategoryStore [friend] |
boost::signal<void (Element *)> Spm::Core::PackageManager::signalNewElement)() |
boost::signal<void (Category *)> Spm::Core::PackageManager::signalNewCategory)() |
boost::signal<void (Plugin::InstallerInterface *)> Spm::Core::PackageManager::signalNewInstaller)() |