19 #ifndef _OBSERVERSDATAMAPPER_HPP_ 20 #define _OBSERVERSDATAMAPPER_HPP_ 25 class Ui_ObserversWidget;
34 ObserversDataMapper(Ui_ObserversWidget *aWidget, QMap<QString, QSqlTableModel *> tableModels, QObject *parent = 0);
38 void deleteSelectedObserver();
39 void firstNameChanged();
40 void insertNewObserver();
41 void lastNameChanged();
42 void observerSelected(
const QModelIndex &index);
45 QSqlRecord currentRecord();
46 void populateFormWithIndex(
const QModelIndex &index);
47 void setupConnections();
48 void teardownConnections();
51 int lastRowNumberSelected;
52 QSqlTableModel *tableModel;
53 Ui_ObserversWidget *widget;
57 #endif // _OBSERVERSDATAMAPPER_HPP_