Model: Add Clear() method to empty out existing depot info.

This commit is contained in:
Rene Gollent 2013-09-18 18:17:30 +02:00
parent f7c99dcc33
commit 2c287f5bae
2 changed files with 9 additions and 0 deletions

View File

@ -287,6 +287,13 @@ Model::AddDepot(const DepotInfo& depot)
}
void
Model::Clear()
{
fDepots.Clear();
}
void
Model::SetPackageState(const PackageInfoRef& package, PackageState state)
{

View File

@ -35,6 +35,8 @@ public:
const DepotList& Depots() const
{ return fDepots; }
void Clear();
// Access to global categories
const CategoryRef& CategoryAudio() const
{ return fCategoryAudio; }