diff options
Diffstat (limited to 'src/stamps/StampsModel.h')
| -rw-r--r-- | src/stamps/StampsModel.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/stamps/StampsModel.h b/src/stamps/StampsModel.h deleted file mode 100644 index 48d3c38..0000000 --- a/src/stamps/StampsModel.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * StampsModel.h - * - * Created on: Mar 29, 2012 - * Author: Simon - */ - -#ifndef STAMPSMODEL_H_ -#define STAMPSMODEL_H_ - -#include <vector> -#include <string> -#include <cmath> -#include "search/Save.h" - -class StampsView; -class StampsModel { - vector<std::string> selected; - Save * stamp; - std::vector<std::string> stampIDs; - std::vector<Save*> stampsList; - std::vector<StampsView*> observers; - int currentPage; - void notifyStampsListChanged(); - void notifyPageChanged(); - void notifySelectedChanged(); -public: - StampsModel(); - int GetPageCount() { return max(1, (int)(ceil(stampIDs.size()/16))); } - int GetPageNum() { return currentPage; } - void AddObserver(StampsView * observer); - std::vector<Save *> GetStampsList(); - void UpdateStampsList(int pageNumber); - Save * GetStamp(); - void SetStamp(Save * newStamp); - vector<std::string> GetSelected() { return selected; } - void ClearSelected() { selected.clear(); notifySelectedChanged(); } - void SelectStamp(std::string stampID); - void DeselectStamp(std::string stampID); - virtual ~StampsModel(); -}; - -#endif /* STAMPSMODEL_H_ */ |
