ToitemTableModel Class Reference

#include <toitemTableModel.h>

List of all members.

Public Member Functions

 ToitemTableModel (QObject *parent=0, QSqlDatabase=QSqlDatabase())
virtual int currId () const
virtual Qt::ItemFlags flags (const QModelIndex &) const
virtual int headId () const
virtual bool isDirty () const
virtual int itemId () const
virtual bool removeRow (int, const QModelIndex &=QModelIndex())
virtual QDate shipDate () const
virtual int srcWhsId () const
virtual QDate transDate () const

Public Slots

virtual bool select ()
virtual void setCurrId (const int pId=-1)
virtual void setHeadId (const int pId=-1)
virtual void setItemId (const int pId=-1)
virtual void setShipDate (const QDate)
virtual void setSrcWhsId (const int pId=-1)
virtual void setTransDate (const QDate)
virtual bool submitAll ()

Protected Attributes

QString _selectStatement

Protected Member Functions

virtual bool insertRowIntoTable (const QSqlRecord &)
virtual QString selectStatement () const
virtual bool updateRowInTable (int, const QSqlRecord &)
virtual bool validRow (QSqlRecord &)

Protected Slots

virtual void markDirty (QModelIndex, QModelIndex)

Constructor & Destructor Documentation

ToitemTableModel::ToitemTableModel ( QObject parent = 0,
QSqlDatabase  db = QSqlDatabase() 
)

Member Function Documentation

virtual int ToitemTableModel::currId (  )  const [inline, virtual]
Qt::ItemFlags ToitemTableModel::flags ( const QModelIndex index  )  const [virtual]

Reimplemented from QAbstractItemModel.

virtual int ToitemTableModel::headId (  )  const [inline, virtual]
bool ToitemTableModel::insertRowIntoTable ( const QSqlRecord record  )  [protected, virtual]

Reimplemented from QSqlTableModel.

bool ToitemTableModel::isDirty (  )  const [virtual]
virtual int ToitemTableModel::itemId (  )  const [inline, virtual]
void ToitemTableModel::markDirty ( QModelIndex  ,
QModelIndex   
) [protected, virtual, slot]
bool ToitemTableModel::removeRow ( int  row,
const QModelIndex parent = QModelIndex() 
) [virtual]

Reimplemented from QAbstractItemModel.

bool ToitemTableModel::select (  )  [virtual, slot]

Reimplemented from QSqlTableModel.

QString ToitemTableModel::selectStatement (  )  const [protected, virtual]

Reimplemented from QSqlTableModel.

void ToitemTableModel::setCurrId ( const int  pId = -1  )  [virtual, slot]
void ToitemTableModel::setHeadId ( const int  pId = -1  )  [virtual, slot]
void ToitemTableModel::setItemId ( const int  pId = -1  )  [virtual, slot]
void ToitemTableModel::setShipDate ( const QDate  pDate  )  [virtual, slot]
void ToitemTableModel::setSrcWhsId ( const int  pId = -1  )  [virtual, slot]
void ToitemTableModel::setTransDate ( const QDate  pDate  )  [virtual, slot]
virtual QDate ToitemTableModel::shipDate (  )  const [inline, virtual]
virtual int ToitemTableModel::srcWhsId (  )  const [inline, virtual]
bool ToitemTableModel::submitAll (  )  [virtual, slot]

Reimplemented from QSqlTableModel.

virtual QDate ToitemTableModel::transDate (  )  const [inline, virtual]
bool ToitemTableModel::updateRowInTable ( int  row,
const QSqlRecord record 
) [protected, virtual]

Reimplemented from QSqlTableModel.

bool ToitemTableModel::validRow ( QSqlRecord record  )  [protected, virtual]

Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Tue Apr 20 12:03:29 2010 xTuple ERP Programmer Reference, Version 3.5.0 doxygen 1.6.1