Spm::Core::PackageManager Class Reference

#include <packageManager.h>

List of all members.

Public Member Functions

 ~PackageManager ()
ElementgetElement (const miniXml::ustring &elementName)
const std::list< Element * > & getElements ()
CategorygetCategory (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.
Installationinstall (const miniXml::ustring &uri, const Util::PropertyList &pList=Util::PropertyList())
 Install a package.
Uninstallationuninstall (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


Constructor & Destructor Documentation

Spm::Core::PackageManager::~PackageManager (  ) 


Member Function Documentation

static boost::shared_ptr<PackageManager>& Spm::Core::PackageManager::create ( const miniXml::ustring &  userName  )  [static]

Get a PackageManager object.

Parameters:
userName The user name of the wanted PackageManager
Returns:
A smart pointer (boost::shared_ptr) to a PackageManager object

Element* Spm::Core::PackageManager::getElement ( const miniXml::ustring &  elementName  ) 

Parameters:
elementName The name of the wanted Element
Returns:
The wanted Element

const std::list<Element *>& Spm::Core::PackageManager::getElements (  ) 

Returns:
The list of Element

Category* Spm::Core::PackageManager::getCategory ( const miniXml::ustring &  categoryName  ) 

Parameters:
categoryName The name of the wanted Category
Returns:
The wanted Category

const std::list<Category *>& Spm::Core::PackageManager::getCategorys (  ) 

Returns:
The list of Category

void Spm::Core::PackageManager::removeSet ( const miniXml::ustring &  name  ) 

Remove a Set.

Parameters:
name The name of the Set to remove

void Spm::Core::PackageManager::add ( Element package  ) 

Add an Element.

Parameters:
package The Element to add

void Spm::Core::PackageManager::add ( Category category  ) 

Add a Category.

Parameters:
category The Category to add

void Spm::Core::PackageManager::removeCategory ( const miniXml::ustring &  name  ) 

Remove a Category.

Parameters:
name The name of Category to remove

Installation* Spm::Core::PackageManager::install ( const miniXml::ustring &  uri,
const Util::PropertyList pList = Util::PropertyList() 
)

Install a package.

Parameters:
uri The URI of the package to install
Returns:
An installer handling the URI

Uninstallation* Spm::Core::PackageManager::uninstall ( const miniXml::ustring &  elementName,
const miniXml::ustring &  branchName = "",
bool  noDependencyCheck = false 
)

Uninstall an Element.

Parameters:
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
Returns:
An Uninstallation object.

std::list<InstalledVersion *> Spm::Core::PackageManager::getElementOfFile ( const miniXml::ustring &  file  ) 

Get the list of Versionned object of an installed file.

Parameters:
file The file to look for
Returns:
The list of Versionned object of the file

const miniXml::ustring& Spm::Core::PackageManager::user (  )  [inline]

const miniXml::ustring& Spm::Core::PackageManager::user (  )  const [inline]


Friends And Related Function Documentation

friend class ElementStore [friend]

friend class CategoryStore [friend]


Member Data Documentation

boost::signal<void (Element *)> Spm::Core::PackageManager::signalNewElement)()

Returns:
a signal emitted when a new Element is add to this PackageManager

boost::signal<void (Category *)> Spm::Core::PackageManager::signalNewCategory)()

Returns:
a signal emitted when a new Category is add to this PackageManager

boost::signal<void (Plugin::InstallerInterface *)> Spm::Core::PackageManager::signalNewInstaller)()

Returns:
a signal emitted when a new Installer is created


The documentation for this class was generated from the following file:
Generated on Sat Mar 21 17:00:14 2009 for libSpm by  doxygen 1.5.2