summaryrefslogtreecommitdiffstats
path: root/krecipes/src/backends/SQLite/libqsqlite/krecqsqliteresult.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'krecipes/src/backends/SQLite/libqsqlite/krecqsqliteresult.cpp')
-rw-r--r--krecipes/src/backends/SQLite/libqsqlite/krecqsqliteresult.cpp74
1 files changed, 37 insertions, 37 deletions
diff --git a/krecipes/src/backends/SQLite/libqsqlite/krecqsqliteresult.cpp b/krecipes/src/backends/SQLite/libqsqlite/krecqsqliteresult.cpp
index 4bebfed..9a4f682 100644
--- a/krecipes/src/backends/SQLite/libqsqlite/krecqsqliteresult.cpp
+++ b/krecipes/src/backends/SQLite/libqsqlite/krecqsqliteresult.cpp
@@ -20,36 +20,36 @@
#include "krecqsqliteresult.h"
-QSQLiteResultRow::QSQLiteResultRow( const TableString& string, const TableInt& Int )
+TQSQLiteResultRow::TQSQLiteResultRow( const TableString& string, const TableInt& Int )
: m_string( string ), m_int( Int )
{}
-QSQLiteResultRow::~QSQLiteResultRow()
+TQSQLiteResultRow::~TQSQLiteResultRow()
{}
-QSQLiteResultRow::QSQLiteResultRow( const QSQLiteResultRow& item )
+TQSQLiteResultRow::TQSQLiteResultRow( const TQSQLiteResultRow& item )
{
*this = item;
}
-QSQLiteResultRow &QSQLiteResultRow::operator=( const QSQLiteResultRow& other )
+TQSQLiteResultRow &TQSQLiteResultRow::operator=( const TQSQLiteResultRow& other )
{
m_string = other.m_string;
m_int = other.m_int;
return *this;
}
-QSQLiteResultRow::TableString QSQLiteResultRow::tableString() const
+TQSQLiteResultRow::TableString TQSQLiteResultRow::tableString() const
{
return m_string;
}
-QSQLiteResultRow::TableInt QSQLiteResultRow::tableInt() const
+TQSQLiteResultRow::TableInt TQSQLiteResultRow::tableInt() const
{
return m_int;
}
-QCString QSQLiteResultRow::data( const QString& columnName, bool *ok )
+TQCString TQSQLiteResultRow::data( const TQString& columnName, bool *ok )
{
TableString::Iterator it = m_string.find( columnName );
@@ -62,12 +62,12 @@ QCString QSQLiteResultRow::data( const QString& columnName, bool *ok )
else {
if ( ok )
* ok = false;
- return QCString(0);
+ return TQCString(0);
}
}
-QCString QSQLiteResultRow::data( int column, bool *ok )
+TQCString TQSQLiteResultRow::data( int column, bool *ok )
{
TableInt::Iterator it = m_int.find( column );
@@ -80,102 +80,102 @@ QCString QSQLiteResultRow::data( int column, bool *ok )
else {
if ( ok )
* ok = false;
- return QCString(0);
+ return TQCString(0);
}
}
/*
* DateFormat is 'YYYY-MM-DD'
*/
-QDate QSQLiteResultRow::dataToDate( const QString& column, bool *ok )
+TQDate TQSQLiteResultRow::dataToDate( const TQString& column, bool *ok )
{
- QDate date = QDate::currentDate();
- QString str = data( column, ok );
+ TQDate date = TQDate::currentDate();
+ TQString str = data( column, ok );
if ( !str.isEmpty() ) {
; // convert
}
return date;
}
-QDate QSQLiteResultRow::dataToDate( int column, bool *ok )
+TQDate TQSQLiteResultRow::dataToDate( int column, bool *ok )
{
- QDate date = QDate::currentDate();
- QString str = data( column, ok );
+ TQDate date = TQDate::currentDate();
+ TQString str = data( column, ok );
if ( !str.isEmpty() ) {
; // convert
}
return date;
}
-QDateTime QSQLiteResultRow::dataToDateTime( const QString& column )
+TQDateTime TQSQLiteResultRow::dataToDateTime( const TQString& column )
{
- QDateTime time = QDateTime::currentDateTime();
+ TQDateTime time = TQDateTime::currentDateTime();
return time;
}
-QDateTime QSQLiteResultRow::dataToDateTime( int column )
+TQDateTime TQSQLiteResultRow::dataToDateTime( int column )
{
- QDateTime time = QDateTime::currentDateTime();
+ TQDateTime time = TQDateTime::currentDateTime();
return time;
}
-QSQLiteResult::QSQLiteResult( enum Status status,
- const QSQLiteResult::Columns& list,
- const QString &error )
+TQSQLiteResult::TQSQLiteResult( enum Status status,
+ const TQSQLiteResult::Columns& list,
+ const TQString &error )
: m_status( status ), m_list( list ), m_error( error )
{}
-QSQLiteResult::~QSQLiteResult()
+TQSQLiteResult::~TQSQLiteResult()
{}
-QSQLiteResult::Status QSQLiteResult::getStatus() const
+TQSQLiteResult::Status TQSQLiteResult::getStatus() const
{
return m_status;
}
-void QSQLiteResult::setStatus( QSQLiteResult::Status status )
+void TQSQLiteResult::setStatus( TQSQLiteResult::Status status )
{
m_status = status;
}
-QSQLiteResult::Columns QSQLiteResult::getResults() const
+TQSQLiteResult::Columns TQSQLiteResult::getResults() const
{
return m_list;
}
-void QSQLiteResult::setResults( const QSQLiteResult::Columns& result )
+void TQSQLiteResult::setResults( const TQSQLiteResult::Columns& result )
{
m_list = result;
}
-void QSQLiteResult::addRow( QSQLiteResultRow row )
+void TQSQLiteResult::addRow( TQSQLiteResultRow row )
{
m_list.append( row );
}
-QString QSQLiteResult::getError() const
+TQString TQSQLiteResult::getError() const
{
return m_error;
}
-void QSQLiteResult::setError( const QString &error )
+void TQSQLiteResult::setError( const TQString &error )
{
m_error = error;
}
-QSQLiteResultRow QSQLiteResult::first()
+TQSQLiteResultRow TQSQLiteResult::first()
{
it = m_list.begin();
return ( *it );
}
-QSQLiteResultRow QSQLiteResult::next()
+TQSQLiteResultRow TQSQLiteResult::next()
{
++it;
return ( *it );
}
-bool QSQLiteResult::atEnd()
+bool TQSQLiteResult::atEnd()
{
if ( it == m_list.end() ) {
return true;
@@ -184,14 +184,14 @@ bool QSQLiteResult::atEnd()
return false;
}
-QSQLiteResult::Columns::ConstIterator QSQLiteResult::iterator() const
+TQSQLiteResult::Columns::ConstIterator TQSQLiteResult::iterator() const
{
- QSQLiteResult::Columns::ConstIterator it;
+ TQSQLiteResult::Columns::ConstIterator it;
it = m_list.begin();
return it;
}
-int QSQLiteResult::size() const
+int TQSQLiteResult::size() const
{
return ( m_list.size() );
}