author | zecke <zecke> | 2002-10-07 10:56:58 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-07 10:56:58 (UTC) |
commit | 198ccce69447b515876e68cf7067e70da88cfb70 (patch) (side-by-side diff) | |
tree | a6ffa0df02450ca54a778864a2f90b81091ee9ff /libopie/pim/otodoaccesssql.h | |
parent | 399828740380aa59273cce8ddd9cc05588e2aeac (diff) | |
download | opie-198ccce69447b515876e68cf7067e70da88cfb70.zip opie-198ccce69447b515876e68cf7067e70da88cfb70.tar.gz opie-198ccce69447b515876e68cf7067e70da88cfb70.tar.bz2 |
Sorted works enough in the SQL backend let's commit it
Diffstat (limited to 'libopie/pim/otodoaccesssql.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/pim/otodoaccesssql.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libopie/pim/otodoaccesssql.h b/libopie/pim/otodoaccesssql.h index 966628d..6c5f50a 100644 --- a/libopie/pim/otodoaccesssql.h +++ b/libopie/pim/otodoaccesssql.h @@ -1,46 +1,46 @@ #ifndef OPIE_PIM_ACCESS_SQL_H #define OPIE_PIM_ACCESS_SQL_H #include <qasciidict.h> #include "otodoaccessbackend.h" class OSQLDriver; class OSQLResult; class OTodoAccessBackendSQL : public OTodoAccessBackend { public: OTodoAccessBackendSQL( const QString& file ); ~OTodoAccessBackendSQL(); bool load(); bool reload(); bool save(); QArray<int> allRecords()const; QArray<int> queryByExample( const OTodo& t, int sort ); OTodo find(int uid)const; void clear(); bool add( const OTodo& t ); bool remove( int uid ); bool replace( const OTodo& t ); QArray<int> overDue(); QArray<int> effectiveToDos( const QDate& start, const QDate& end, bool includeNoDates ); QArray<int> sorted(bool asc, int sortOrder, int sortFilter, int cat ); private: void update(); void fillDict(); - bool date( QDate& date, const QString& )const; - OTodo todo( const OSQLResult& )const; - QArray<int> uids( const OSQLResult& )const; + inline bool date( QDate& date, const QString& )const; + inline OTodo todo( const OSQLResult& )const; + inline QArray<int> uids( const OSQLResult& )const; OTodo todo( int uid )const; QAsciiDict<int> m_dict; OSQLDriver* m_driver; QArray<int> m_uids; }; #endif |