Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Opie::DB::OSQLResultItem Class Reference

#include </home/clem/local/src/opie/libopie2/opiedb/osqlresult.h>

Collaboration diagram for Opie::DB::OSQLResultItem:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QValueList< OSQLResultItemValueList
typedef QMap< QString, QStringTableString
typedef QMap< int, QStringTableInt

Public Member Functions

 OSQLResultItem (const TableString &=TableString(), const TableInt &=TableInt())
 OSQLResultItem (const OSQLResultItem &)
 ~OSQLResultItem ()
OSQLResultItemoperator= (const OSQLResultItem &)
TableString tableString () const
TableInt tableInt () const
QString data (const QString &columnName, bool *ok=0) const
QString data (int columnNumber, bool *ok=0) const
QDate dataToDate (const QString &columnName, bool *ok=0)
QDate dataToDate (int columnNumber, bool *ok=0)
QDateTime dataToDateTime (const QString &columName, bool *ok=0)
QDateTime dataToDateTime (int columnNumber, bool *ok=0)

Private Attributes

TableString m_string
TableInt m_int

Detailed Description

ResultItem represents one row of the resulting answer

Definition at line 17 of file osqlresult.h.


Member Typedef Documentation

typedef QMap<int, QString> Opie::DB::OSQLResultItem::TableInt
 

TableInt is used to establish a relation between a position of a column and the row value

Definition at line 30 of file osqlresult.h.

typedef QMap<QString, QString> Opie::DB::OSQLResultItem::TableString
 

TableString is used to establish the relations between the column name and the real item

Definition at line 24 of file osqlresult.h.

typedef QValueList<OSQLResultItem> Opie::DB::OSQLResultItem::ValueList
 

Definition at line 19 of file osqlresult.h.


Constructor & Destructor Documentation

OSQLResultItem::OSQLResultItem const TableString = TableString(),
const TableInt = TableInt()
 

Default c'tor. It has a TableString and a TableInt

Definition at line 6 of file osqlresult.cpp.

OSQLResultItem::OSQLResultItem const OSQLResultItem  ) 
 

Definition at line 14 of file osqlresult.cpp.

OSQLResultItem::~OSQLResultItem  ) 
 

Definition at line 12 of file osqlresult.cpp.


Member Function Documentation

QString OSQLResultItem::data int  columnNumber,
bool *  ok = 0
const
 

QString for column number

Definition at line 41 of file osqlresult.cpp.

References QMap< Key, T >::end(), QMap< Key, T >::find(), m_int, and QString::null.

QString OSQLResultItem::data const QString columnName,
bool *  ok = 0
const
 

retrieves the Data from columnName

Definition at line 28 of file osqlresult.cpp.

References QMap< Key, T >::end(), QMap< Key, T >::find(), m_string, and QString::null.

Referenced by dataToDate(), ODateBookAccessBackend_SQL::find(), Opie::ODateBookAccessBackend_SQL::find(), OContactAccessBackend_SQL::requestNonCustom(), and OTodoAccessBackendSQL::todo().

QDate OSQLResultItem::dataToDate int  columnNumber,
bool *  ok = 0
 

Date conversion from column-number

Definition at line 64 of file osqlresult.cpp.

References QDate::currentDate(), data(), QString::isEmpty(), and str.

QDate OSQLResultItem::dataToDate const QString columnName,
bool *  ok = 0
 

Date conversion from columnName

Definition at line 56 of file osqlresult.cpp.

References QDate::currentDate(), data(), QString::isEmpty(), and str.

QDateTime OSQLResultItem::dataToDateTime int  columnNumber,
bool *  ok = 0
 

Definition at line 78 of file osqlresult.cpp.

References QDateTime::currentDateTime().

QDateTime OSQLResultItem::dataToDateTime const QString columName,
bool *  ok = 0
 

Definition at line 73 of file osqlresult.cpp.

References QDateTime::currentDateTime().

OSQLResultItem & OSQLResultItem::operator= const OSQLResultItem  ) 
 

Definition at line 17 of file osqlresult.cpp.

References m_int, and m_string.

OSQLResultItem::TableInt OSQLResultItem::tableInt  )  const
 

returns the TableInt

Definition at line 25 of file osqlresult.cpp.

References m_int.

OSQLResultItem::TableString OSQLResultItem::tableString  )  const
 

returns the TableString

Definition at line 22 of file osqlresult.cpp.

References m_string.


Member Data Documentation

TableInt Opie::DB::OSQLResultItem::m_int [private]
 

Definition at line 75 of file osqlresult.h.

Referenced by data(), operator=(), and tableInt().

TableString Opie::DB::OSQLResultItem::m_string [private]
 

Definition at line 74 of file osqlresult.h.

Referenced by data(), operator=(), and tableString().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:01:20 2005 for OPIE by  doxygen 1.4.2