#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
Public include file for BPS GUI library macros.
#define BPSGUI_EXPORT
Declare class an import from the shared library.
Definition: bpsgui_global.h:22
Public include file for BpsTableField.
BPS datastore class.
Definition: bpsdatastore.h:61
Abstract base class for table fields.
Definition: bpstablefield.h:24
Database table descriptor.
Definition: bpstable.h:19
void setOrder(const QString &aOrder)
Set the select order.
BpsTable(const BpsTable &aOther)
The copy constructor.
void setCanDelete(bool aEnable)
Change the delete permission.
void setCanAdd(bool aEnable)
Change the add permission.
Command
Table field control commands.
Definition: bpstable.h:26
@ EndListFields
End of list displayed fields, following fields loaded but not displayed.
Definition: bpstable.h:27
bool canDelete() const
True if the current user has permission to delete records from the table.
void setFilter(const QString &aFilter)
Set the select filter.
bool canMove() const
True if the current user has permission to move records in the table (change parent,...
BpsTable & operator<<(BpsTableField *aField)
Add a field to the end of the list.
int fieldIndex(const QString &aColumn) const
Get the index of a certain column name.
bool canAdd() const
True if the current user has permission to add records the table.
void setCanMove(bool aEnable)
Change the move permissission.
void setName(const QString &aName)
Set the table name.
BpsTable & operator<<(Command aCommand)
Apply a field control command.
void setCanEdit(bool aEnable)
Change the edit permission.
bool isCopyEnabled() const
Copying enabled.
BpsDatastore * datastore() const
BpsTableField * field(int aIndex) const
Get field by index.
void setCopyEnabled(bool aEnable)
Change the copy enabling.
BpsTable(BpsDatastore *aDatastore, const QString &aName, const QString &aOrder=QString(), const QString &aFilter=QString())
BpsTableField * field(const QString &aColumn) const
Get field by column name.
bool canEdit() const
True if the current user has permission to edit records in the table.