diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-19 20:10:05 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-19 20:10:05 (GMT) |
| commit | c5e8b345219cd7d8ca4b0aa638f59a1fed2cd83b (patch) | |
| tree | 0d324f7b8d5bf6978f4543af415248b474676b97 /src/search/SearchModel.cpp | |
| parent | 6d3b447f8e32fdaccdb3727af4d72d341e191e94 (diff) | |
| download | powder-c5e8b345219cd7d8ca4b0aa638f59a1fed2cd83b.zip powder-c5e8b345219cd7d8ca4b0aa638f59a1fed2cd83b.tar.gz | |
Add "cajun" for JSON reading and writing, Save searching in client and some more stuff for searcg
Diffstat (limited to 'src/search/SearchModel.cpp')
| -rw-r--r-- | src/search/SearchModel.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/search/SearchModel.cpp b/src/search/SearchModel.cpp index 494d490..16a99d4 100644 --- a/src/search/SearchModel.cpp +++ b/src/search/SearchModel.cpp @@ -1,18 +1,26 @@ #include "SearchModel.h" #include "Save.h" +#include "client/Client.h" + SearchModel::SearchModel() { } void SearchModel::UpdateSaveList() { + lastError = ""; saveList.clear(); notifySaveListChanged(); - for(int i = 0; i < 16; i++) + saveList = Client::Ref().SearchSaves(0, 12, "", ""); + if(!saveList.size()) { - saveList.push_back(Save(2198, 2333, 315, "dima-gord", "Destroyable city 5 (wth metro)")); + lastError = Client::Ref().GetLastError(); } + /*for(int i = 0; i < 16; i++) + { + saveList.push_back(Save(2198, 2333, 315, "dima-gord", "Destroyable city 5 (wth metro)")); + }*/ notifySaveListChanged(); } |
