Model: Add Clear() method to empty out existing depot info.
This commit is contained in:
parent
f7c99dcc33
commit
2c287f5bae
@ -287,6 +287,13 @@ Model::AddDepot(const DepotInfo& depot)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Model::Clear()
|
||||
{
|
||||
fDepots.Clear();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Model::SetPackageState(const PackageInfoRef& package, PackageState state)
|
||||
{
|
||||
|
@ -35,6 +35,8 @@ public:
|
||||
const DepotList& Depots() const
|
||||
{ return fDepots; }
|
||||
|
||||
void Clear();
|
||||
|
||||
// Access to global categories
|
||||
const CategoryRef& CategoryAudio() const
|
||||
{ return fCategoryAudio; }
|
||||
|
Loading…
Reference in New Issue
Block a user