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