29#include <sptk5/DateTime.h>
30#include <sptk5/db/Query.h>
31#include <sptk5/gui/CListView.h>
49 Query m_fullRefreshQuery;
54 Query m_fastRefreshQuery;
59 Query m_recordCountQuery;
69 bool m_fastRefreshEnabed;
79 uint32_t m_maxRecords;
84 bool m_recordsLimited;
96#ifdef __COMPATIBILITY_MODE__
105 CDBListView(
int x,
int y,
int w,
int h,
const char* label = 0);
178 return m_lastRefresh;
203 return m_recordsLimited;
List view widget with extended database support.
Definition: CDBListView.h:45
void setup(PoolDatabaseConnection *db, const String &sql, const String &keyField)
static CLayoutClient * creator(const xdoc::SNode &node)
Creates a widget based on the XML node information.
DateTime lastRefresh() const
Definition: CDBListView.h:176
void sql(const String &sql, const String &recordCountSql="", const String &fastRefreshSQL="")
void keyField(const String &fieldName)
uint32_t maxRecords() const
Definition: CDBListView.h:192
CDBListView(const char *label=nullptr, int layoutSize=20, CLayoutAlign layoutAlign=CLayoutAlign::TOP)
String keyField() const
Definition: CDBListView.h:154
bool recordsLimited() const
Definition: CDBListView.h:201
void refreshData(CRefreshKind refreshKind=CRefreshKind::LV_REFRESH_FULL)
void database(PoolDatabaseConnection *db)
QueryParameter & param(const char *paramName, CRefreshKind refreshKind=CRefreshKind::LV_REFRESH_FULL)
void maxRecords(uint32_t mr)
Definition: CDBListView.h:184
PoolDatabaseConnection * database() const
Definition: CLayoutClient.h:82
List view widget.
Definition: CListView.h:108
Definition: DateTime.h:86
Definition: PoolDatabaseConnection.h:231
Definition: QueryParameter.h:44
CLayoutAlign
Definition: CLayoutClient.h:44
CRefreshKind
The refersh kind.
Definition: CListView.h:54