summaryrefslogtreecommitdiff
path: root/src/search/SearchModel.cpp
blob: 63188bdc6ad06a258ed84cb2c90867d40dbc1b15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "SearchModel.h"
#include "Save.h"

SearchModel::SearchModel()
{
}

void SearchModel::UpdateSaveList()
{
	saveList.clear();
	notifySaveListChanged();
	saveList.push_back(Save(1, 45, 5, "Simon", "Post logic gates"));
	notifySaveListChanged();
}

void SearchModel::notifySaveListChanged()
{
	for(int i = 0; i < observers.size(); i++)
	{
		SearchView* cObserver = observers[i];
		cObserver->NotifySaveListChanged(this);
	}
}