[apps/home] Access to SelectableTableViewDataSource directly from App

This commit is contained in:
Ruben Dashyan
2019-06-27 14:01:18 +02:00
committed by EmilieNumworks
parent 0702212cfe
commit bcf2fda882
3 changed files with 19 additions and 8 deletions

View File

@@ -26,6 +26,7 @@ public:
void tableViewDidChangeSelection(SelectableTableView * t, int previousSelectedCellX, int previousSelectedCellY, bool withinTemporarySelection) override;
private:
int numberOfIcons();
SelectableTableViewDataSource * selectionDataSource() const;
class ContentView : public View {
public:
ContentView(Controller * controller, SelectableTableViewDataSource * selectionDataSource);
@@ -47,7 +48,6 @@ private:
static constexpr int k_cellWidth = 104;
ContentView m_view;
AppCell m_cells[k_maxNumberOfCells];
SelectableTableViewDataSource * m_selectionDataSource;
};
}