[escher] make an independent class alternate empty view to handle

empty store and add a delegate to the header view controller class

Change-Id: I7c4e8342876e9273270772d4bad0db9424276a98
This commit is contained in:
Émilie Feral
2016-11-17 11:06:42 +01:00
parent 0acd372a74
commit b2da9687f1
17 changed files with 292 additions and 160 deletions

View File

@@ -0,0 +1,20 @@
#include <escher/header_view_delegate.h>
#include <assert.h>
HeaderViewDelegate::HeaderViewDelegate(HeaderViewController * headerViewController) :
m_headerViewController(headerViewController)
{
}
int HeaderViewDelegate::numberOfButtons() const {
return 0;
}
Button * HeaderViewDelegate::buttonAtIndex(int index) {
assert(false);
return nullptr;
}
HeaderViewController * HeaderViewDelegate::headerViewController() {
return m_headerViewController;
}