Diffstat (limited to 'libopie2/opiedb/osqlresult.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiedb/osqlresult.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie2/opiedb/osqlresult.cpp b/libopie2/opiedb/osqlresult.cpp index 268ac8e..a34ab2f 100644 --- a/libopie2/opiedb/osqlresult.cpp +++ b/libopie2/opiedb/osqlresult.cpp | |||
@@ -50,52 +50,54 @@ QString OSQLResultItem::data( int column, bool *ok ) const { | |||
50 | return QString::null; | 50 | return QString::null; |
51 | } | 51 | } |
52 | } | 52 | } |
53 | /* | 53 | /* |
54 | * DateFormat is 'YYYY-MM-DD' | 54 | * DateFormat is 'YYYY-MM-DD' |
55 | */ | 55 | */ |
56 | QDate OSQLResultItem::dataToDate( const QString& column, bool *ok ) { | 56 | QDate OSQLResultItem::dataToDate( const QString& column, bool *ok ) { |
57 | QDate date = QDate::currentDate(); | 57 | QDate date = QDate::currentDate(); |
58 | QString str = data( column, ok ); | 58 | QString str = data( column, ok ); |
59 | if (!str.isEmpty() ) { | 59 | if (!str.isEmpty() ) { |
60 | ;// convert | 60 | ;// convert |
61 | } | 61 | } |
62 | return date; | 62 | return date; |
63 | } | 63 | } |
64 | QDate OSQLResultItem::dataToDate( int column, bool *ok ) { | 64 | QDate OSQLResultItem::dataToDate( int column, bool *ok ) { |
65 | QDate date = QDate::currentDate(); | 65 | QDate date = QDate::currentDate(); |
66 | QString str = data( column, ok ); | 66 | QString str = data( column, ok ); |
67 | if (!str.isEmpty() ) { | 67 | if (!str.isEmpty() ) { |
68 | ;// convert | 68 | ;// convert |
69 | } | 69 | } |
70 | return date; | 70 | return date; |
71 | 71 | ||
72 | } | 72 | } |
73 | QDateTime OSQLResultItem::dataToDateTime( const QString& column, bool *ok ) { | 73 | QDateTime OSQLResultItem::dataToDateTime( const QString& column, bool *ok ) { |
74 | // #FIXME xxx | ||
74 | QDateTime time = QDateTime::currentDateTime(); | 75 | QDateTime time = QDateTime::currentDateTime(); |
75 | return time; | 76 | return time; |
76 | } | 77 | } |
77 | QDateTime OSQLResultItem::dataToDateTime( int column, bool *ok ) { | 78 | QDateTime OSQLResultItem::dataToDateTime( int column, bool *ok ) { |
79 | // #FIXME xxx | ||
78 | QDateTime time = QDateTime::currentDateTime(); | 80 | QDateTime time = QDateTime::currentDateTime(); |
79 | return time; | 81 | return time; |
80 | } | 82 | } |
81 | 83 | ||
82 | OSQLResult::OSQLResult( enum State state, | 84 | OSQLResult::OSQLResult( enum State state, |
83 | const OSQLResultItem::ValueList& list, | 85 | const OSQLResultItem::ValueList& list, |
84 | const OSQLError::ValueList& error ) | 86 | const OSQLError::ValueList& error ) |
85 | : m_state( state ), m_list( list ), m_error( error ) | 87 | : m_state( state ), m_list( list ), m_error( error ) |
86 | { | 88 | { |
87 | 89 | ||
88 | } | 90 | } |
89 | OSQLResult::~OSQLResult() { | 91 | OSQLResult::~OSQLResult() { |
90 | 92 | ||
91 | } | 93 | } |
92 | OSQLResult::State OSQLResult::state()const { | 94 | OSQLResult::State OSQLResult::state()const { |
93 | return m_state; | 95 | return m_state; |
94 | } | 96 | } |
95 | void OSQLResult::setState( OSQLResult::State state ) { | 97 | void OSQLResult::setState( OSQLResult::State state ) { |
96 | m_state = state; | 98 | m_state = state; |
97 | } | 99 | } |
98 | OSQLError::ValueList OSQLResult::errors()const { | 100 | OSQLError::ValueList OSQLResult::errors()const { |
99 | return m_error; | 101 | return m_error; |
100 | } | 102 | } |
101 | void OSQLResult::setErrors( const OSQLError::ValueList& err ) { | 103 | void OSQLResult::setErrors( const OSQLError::ValueList& err ) { |