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

Public Types | |
| enum | KeyType { Invalid = 0, Int, String, Date, Time } |
Public Member Functions | |
| TVVariant () | |
| ~TVVariant () | |
| TVVariant (const TVVariant &) | |
| TVVariant (QDataStream &) | |
| TVVariant (const QString &) | |
| TVVariant (const int) | |
| TVVariant (const QDate &) | |
| TVVariant (const QTime &) | |
| TVVariant & | operator= (const TVVariant &) |
| bool | operator== (const TVVariant &) const |
| bool | operator!= (const TVVariant &) const |
| bool | operator< (const TVVariant &) const |
| bool | operator> (const TVVariant &) const |
| bool | closer (TVVariant, TVVariant) |
| bool | close (TVVariant) |
| KeyType | type () const |
| const QString | typeName () const |
| int | numTypes () const |
| const QString | typeName (KeyType) const |
| bool | canCast (KeyType) const |
| bool | isValid () const |
| void | clear () |
| const QString | toString () const |
| const QDate | toDate () const |
| const QTime | toTime () const |
| int | toInt () const |
| QString & | asString () |
| QDate & | asDate () |
| QTime & | asTime () |
| int & | asInt () |
| void | load (QDataStream &) |
| void | save (QDataStream &) const |
Static Public Member Functions | |
| static const QString | typeToName (KeyType typ) |
| static KeyType | nameToType (const QString &) |
Private Member Functions | |
| void | detach () |
Private Attributes | |
| TVVariantPrivate * | d |
Definition at line 53 of file common.h.
|
|
|
|
|
Definition at line 162 of file common.cpp. References d. |
|
|
Definition at line 167 of file common.cpp. References d, and QShared::deref(). |
|
|
Definition at line 173 of file common.cpp. References d. |
|
|
Definition at line 179 of file common.cpp. References d. |
|
|
Definition at line 185 of file common.cpp. References d, String, TVVariantPrivate::typ, and TVVariantPrivate::value. |
|
|
Definition at line 206 of file common.cpp. References d, Int, TVVariantPrivate::typ, and TVVariantPrivate::value. |
|
|
Definition at line 192 of file common.cpp. References d, Date, TVVariantPrivate::typ, and TVVariantPrivate::value. |
|
|
Definition at line 199 of file common.cpp. References d, Time, TVVariantPrivate::typ, and TVVariantPrivate::value. |
|
|
Referenced by DataElem::setField(). |
|
|
Definition at line 464 of file common.cpp. References d. Referenced by DataElem::setField(). |
|
|
Referenced by DataElem::setField(). |
|
|
Referenced by DataElem::setField(). |
|
|
valid cast is anything to String same to same Definition at line 479 of file common.cpp. References d, Date, FALSE, Int, String, Time, TRUE, and TVVariantPrivate::typ. |
|
|
Definition at line 240 of file common.cpp. References TVVariantPrivate::clear(), QShared::count, d, and QShared::deref(). |
|
|
True if n is close to this Definition at line 648 of file common.cpp. References Date, FALSE, Int, Invalid, QString::startsWith(), String, Time, toString(), TRUE, and type(). Referenced by DataElem::closer(). |
|
||||||||||||
|
True if n is closer to this than o Definition at line 559 of file common.cpp. References QString::compare(), d, Date, QDate::daysTo(), FALSE, Int, Invalid, QTime::msecsTo(), QString::startsWith(), String, Time, toDate(), toInt(), toString(), toTime(), TRUE, TVVariantPrivate::typ, and type(). Referenced by DataElem::closer(). |
|
|
Definition at line 226 of file common.cpp. References QShared::count, d, and QShared::deref(). |
|
|
Definition at line 137 of file common.h. References d, Invalid, and TVVariantPrivate::typ. Referenced by DataElem::closer(), and DataElem::setField(). |
|
|
Definition at line 284 of file common.cpp. References d, Date, Int, Invalid, oendl, ofatal, String, t, Time, TVVariantPrivate::typ, TVVariantPrivate::value, and Opie::MM::x. Referenced by operator>>(). |
|
|
Definition at line 270 of file common.cpp. References Date, Int, Invalid, qstrcmp(), String, and Time. Referenced by DBXmlHandler::startElement(). |
|
|
|
|
|
Definition at line 517 of file common.cpp. |
|
|
Definition at line 522 of file common.cpp. References d, Date, FALSE, Int, Invalid, String, Time, toDate(), toInt(), toString(), toTime(), and TVVariantPrivate::typ. |
|
|
Definition at line 213 of file common.cpp. References d, QShared::deref(), and QShared::ref(). |
|
|
Definition at line 499 of file common.cpp. References d, Date, FALSE, Int, Invalid, String, Time, toDate(), toInt(), toString(), toTime(), and TVVariantPrivate::typ. |
|
|
Definition at line 540 of file common.cpp. References d, Date, FALSE, Int, Invalid, String, Time, toDate(), toInt(), toString(), toTime(), and TVVariantPrivate::typ. |
|
|
Definition at line 327 of file common.cpp. References d, Date, Int, Invalid, String, Time, TVVariantPrivate::typ, type(), and TVVariantPrivate::value. Referenced by operator<<(). |
|
|
Definition at line 408 of file common.cpp. References d, Date, QDate::isValid(), parseNextNumber(), String, toString(), TVVariantPrivate::typ, and TVVariantPrivate::value. Referenced by closer(), operator<(), operator==(), operator>(), and TVEditView::setData(). |
|
|
Definition at line 395 of file common.cpp. References d, Int, parseNextNumber(), String, TVVariantPrivate::typ, and TVVariantPrivate::value. Referenced by closer(), operator<(), operator==(), operator>(), and TVEditView::setData(). |
|
|
Definition at line 376 of file common.cpp. References d, Date, Int, Invalid, QString::null, QString::number(), String, Time, TVVariantPrivate::typ, and TVVariantPrivate::value. Referenced by close(), closer(), DataElem::contains(), DataElem::endsWith(), operator<(), operator==(), operator>(), TVEditView::setData(), DataElem::startsWith(), toDate(), toTime(), and TVFilterView::updateTerm(). |
|
|
Definition at line 432 of file common.cpp. References d, QTime::isValid(), parseNextNumber(), String, Time, toString(), TVVariantPrivate::typ, and TVVariantPrivate::value. Referenced by closer(), operator<(), operator==(), operator>(), and TVEditView::setData(). |
|
|
Definition at line 132 of file common.h. References d, and TVVariantPrivate::typ. Referenced by close(), closer(), DataElem::contains(), DataElem::endsWith(), DataElem::equalTo(), DataElem::lessThan(), DataElem::moreThan(), save(), DataElem::startsWith(), and Key::type(). |
|
|
|
|
|
Definition at line 235 of file common.cpp. References d, TVVariantPrivate::typ, and typeToName(). |
|
|
Definition at line 252 of file common.cpp. References Date, Int, Invalid, String, and Time. Referenced by DBXml::saveSource(), TVKEListViewItem::text(), TVKeyEdit::TVKeyEdit(), and typeName(). |
|
|
Definition at line 111 of file common.h. Referenced by canCast(), clear(), closer(), detach(), isValid(), load(), operator<(), operator=(), operator==(), operator>(), save(), toDate(), toInt(), toString(), toTime(), TVVariant(), type(), typeName(), and ~TVVariant(). |
1.4.2