#include </home/clem/local/src/opie/noncore/apps/tableviewer/db/common.h>
Collaboration diagram for DataElem:

This class holds the data of a row in a table.
Definition at line 219 of file common.h.
|
|
Constructs a DataElem. This function needs a container because the size, types of keys and primary key are all defined by the containing database Definition at line 1046 of file common.cpp. References contained, DBStore::getNumFields(), QPtrCollection::setAutoDelete(), size, TRUE, and values. |
|
|
Destroys a DataElem and frees memory used by the DataElem Definition at line 1057 of file common.cpp. |
|
||||||||||||||||||||
|
Determins which of the first to parameters are closer to the third, target parameter.
Definition at line 1454 of file common.cpp. References TVVariant::close(), TVVariant::closer(), FALSE, getField(), TVVariant::isValid(), oendl, owarn, and type. Referenced by TVListView::findItem(). |
|
||||||||||||||||
|
|
|
||||||||||||
|
Definition at line 1363 of file common.cpp. References QString::contains(), TVVariant::Date, FALSE, getField(), hasValidValue(), TVVariant::Int, oendl, owarn, TVVariant::String, TVVariant::Time, TVVariant::toString(), TRUE, TVVariant::type(), and type. Referenced by TVFilterView::passesFilter(). |
|
||||||||||||
|
Definition at line 1416 of file common.cpp. References TVVariant::Date, FALSE, getField(), hasValidValue(), TVVariant::Int, oendl, owarn, QString::startsWith(), TVVariant::String, TVVariant::Time, TVVariant::toString(), TVVariant::type(), and type. Referenced by TVFilterView::passesFilter(). |
|
||||||||||||
|
Definition at line 1353 of file common.cpp. References FALSE, getField(), hasValidValue(), TVVariant::type(), and type. Referenced by TVFilterView::passesFilter(). |
|
|
returns a pointer to the data stored in field name qs for this data element, (value may not be valid) Definition at line 1168 of file common.cpp. References contained, getField(), DBStore::getKeyIndex(), and i. |
|
|
returns a pointer to the data stored in field index i for this data element, (value may not be valid) Definition at line 1157 of file common.cpp. References QIntDict< type >::find(), hasValidValue(), and values. Referenced by closer(), contains(), endsWith(), equalTo(), getField(), lessThan(), moreThan(), operator<<(), DBXml::saveSource(), TVEditView::setData(), startsWith(), toQString(), and toSortableQString(). |
|
|
returns the type of the field specified by name qs Definition at line 1147 of file common.cpp. References contained, DBStore::getKeyIndex(), DBStore::getKeyType(), and i. |
|
|
returns the type of the field specified by index i Definition at line 1141 of file common.cpp. References contained, and DBStore::getKeyType(). Referenced by TVEditView::openEditItemDialog(). |
|
|
Definition at line 1106 of file common.cpp. References contained, and DBStore::getKeys(). Referenced by operator<<(). |
|
|
Returns the number of possible (not valid) fields in the data element Definition at line 1101 of file common.cpp. References contained, and DBStore::getNumFields(). Referenced by operator<<(), and operator>>(). |
|
|
This function determines whether field name qs of the element has been set yet.
Definition at line 1134 of file common.cpp. References contained, DBStore::getKeyIndex(), hasValidValue(), and i. |
|
|
This function determines whether field index i of the element has been set yet.
Definition at line 1118 of file common.cpp. References contained, FALSE, QIntDict< type >::find(), DBStore::getKeys(), and values. Referenced by contains(), endsWith(), equalTo(), getField(), hasValidValue(), lessThan(), moreThan(), DBXml::saveSource(), DBCsv::saveSource(), TVEditView::setData(), TVBrowseView::setDisplayText(), startsWith(), toQString(), and toSortableQString(). |
|
||||||||||||
|
Definition at line 1333 of file common.cpp. References FALSE, getField(), hasValidValue(), TVVariant::type(), and type. Referenced by TVFilterView::passesFilter(). |
|
||||||||||||
|
Definition at line 1343 of file common.cpp. References FALSE, getField(), hasValidValue(), TVVariant::type(), and type. Referenced by TVFilterView::passesFilter(). |
|
||||||||||||
|
Sets the value of the elements field name qs to the value at the pointer value.
Definition at line 1250 of file common.cpp. References contained, DBStore::getKeyIndex(), i, and setField(). |
|
||||||||||||
|
Sets the value of the elements field name qs to the value represented in the QString q.
Definition at line 1236 of file common.cpp. References contained, DBStore::getKeyIndex(), i, and setField(). |
|
||||||||||||
|
Sets the value of the elements field index i to the value at the pointer value.
Definition at line 1221 of file common.cpp. References TVVariant::isValid(), QIntDict< type >::remove(), QIntDict< type >::replace(), and values. |
|
||||||||||||
|
Sets the value of the elements field index i to the value represented in the QString q.
Definition at line 1181 of file common.cpp. References TVVariant::asDate(), TVVariant::asInt(), TVVariant::asString(), TVVariant::asTime(), contained, TVVariant::Date, DBStore::getKeyType(), TVVariant::Int, oendl, owarn, TVVariant::String, t, and TVVariant::Time. Referenced by DBXmlHandler::characters(), TVEditView::openEditItemDialog(), DBCsv::openSource(), operator>>(), and setField(). |
|
||||||||||||
|
Definition at line 1390 of file common.cpp. References TVVariant::Date, FALSE, getField(), hasValidValue(), TVVariant::Int, oendl, owarn, QString::startsWith(), TVVariant::String, TVVariant::Time, TVVariant::toString(), TVVariant::type(), and type. Referenced by TVFilterView::passesFilter(). |
|
|
formats individual fields to strings so can be displayed Definition at line 1290 of file common.cpp. References getField(), and hasValidValue(). |
|
|
Converts the data element to a Rich Text QString Definition at line 1269 of file common.cpp. References contained, QIntDictIterator< type >::current(), QIntDictIterator< type >::currentKey(), getField(), DBStore::getKeyName(), hasValidValue(), i, and values. Referenced by DBXml::saveSource(), DBCsv::saveSource(), TVBrowseView::setDisplayText(), and TVListViewItem::text(). |
|
|
formats individual fields to strings so can be sorted by QListView Definition at line 1298 of file common.cpp. References contained, TVVariant::Date, QDate::daysTo(), getField(), DBStore::getKeyType(), hasValidValue(), TVVariant::Int, QTime::msecsTo(), QString::sprintf(), TVVariant::String, and TVVariant::Time. Referenced by TVListViewItem::key(). |
|
|
Definition at line 1260 of file common.cpp. References contained, DBStore::getKeyIndex(), i, and unsetField(). |
|
|
Definition at line 1256 of file common.cpp. References QIntDict< type >::remove(), and values. Referenced by TVEditView::openEditItemDialog(), and unsetField(). |
|
|
Definition at line 262 of file common.h. Referenced by DataElem(), getField(), getFieldType(), getKeys(), getNumFields(), hasValidValue(), setField(), toQString(), toSortableQString(), and unsetField(). |
|
|
Definition at line 261 of file common.h. Referenced by DataElem(), getField(), hasValidValue(), setField(), toQString(), and unsetField(). |
1.4.2