PoitemTableModel Class Reference

#include <poitemTableModel.h>

List of all members.

Public Attributes

int _vendid
bool _vendrestrictpurch

Public Member Functions

 PoitemTableModel (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 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 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

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

Member Function Documentation

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

Reimplemented from QAbstractItemModel.

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

Reimplemented from QSqlTableModel.

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

Reimplemented from QAbstractItemModel.

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

Reimplemented from QSqlTableModel.

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

Reimplemented from QSqlTableModel.

void PoitemTableModel::setCurrId ( const int  pId = -1  )  [virtual, slot]
void PoitemTableModel::setHeadId ( const int  pId = -1  )  [virtual, slot]
void PoitemTableModel::setItemId ( const int  pId = -1  )  [virtual, slot]
void PoitemTableModel::setTransDate ( const QDate  pDate  )  [virtual, slot]
bool PoitemTableModel::submitAll (  )  [virtual, slot]

Reimplemented from QSqlTableModel.

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

Reimplemented from QSqlTableModel.

bool PoitemTableModel::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:16 2010 xTuple ERP Programmer Reference, Version 3.5.0 doxygen 1.6.1