Older/WebApplication/VisitorRecordTableModel.h
amass 51bfddd40f
All checks were successful
Deploy / Build (push) Successful in 8m1s
add checkbox for view.
2024-11-28 23:39:15 +08:00

16 lines
914 B
C++

#ifndef __VISITORRECORDTABLEMODEL_H__
#define __VISITORRECORDTABLEMODEL_H__
#include <Wt/WAbstractTableModel.h>
class VisitorRecordTableModel : public Wt::WAbstractTableModel {
public:
Wt::cpp17::any data(const Wt::WModelIndex &index, Wt::ItemDataRole role = Wt::ItemDataRole::Display) const final;
int columnCount(const Wt::WModelIndex &parent = Wt::WModelIndex()) const final;
int rowCount(const Wt::WModelIndex &parent = Wt::WModelIndex()) const final;
Wt::WFlags<Wt::ItemFlag> flags(const Wt::WModelIndex &index) const final;
Wt::WFlags<Wt::HeaderFlag> headerFlags(int section, Wt::Orientation orientation = Wt::Orientation::Horizontal) const final;
Wt::cpp17::any headerData(int section, Wt::Orientation orientation = Wt::Orientation::Horizontal,
Wt::ItemDataRole role = Wt::ItemDataRole::Display) const final;
};
#endif // __VISITORRECORDTABLEMODEL_H__