diff options
author | Cătălin Badea <catalin.badea392@gmail.com> | 2012-08-19 20:11:14 (GMT) |
---|---|---|
committer | Cătălin Badea <catalin.badea392@gmail.com> | 2012-08-19 20:11:14 (GMT) |
commit | fcabcf3bbd6d389900baaf20b33d75eca36d3808 (patch) | |
tree | af627ebaac0292350061f8bdf472bebc8f2d0144 /Swiften/History/SQLiteHistoryStorage.h | |
parent | 7a46b1ddf4193c2f4ca789ef86b099f9d70842f9 (diff) | |
download | swift-contrib-fcabcf3bbd6d389900baaf20b33d75eca36d3808.zip swift-contrib-fcabcf3bbd6d389900baaf20b33d75eca36d3808.tar.bz2 |
Use async database access.
Diffstat (limited to 'Swiften/History/SQLiteHistoryStorage.h')
-rw-r--r-- | Swiften/History/SQLiteHistoryStorage.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Swiften/History/SQLiteHistoryStorage.h b/Swiften/History/SQLiteHistoryStorage.h index aae6db8..782334a 100644 --- a/Swiften/History/SQLiteHistoryStorage.h +++ b/Swiften/History/SQLiteHistoryStorage.h @@ -9,6 +9,7 @@ #include <boost/optional.hpp> #include <Swiften/History/HistoryStorage.h> +#include <boost/thread.hpp> struct sqlite3; @@ -26,6 +27,7 @@ namespace Swift { boost::posix_time::ptime getLastTimeStampFromMUC(const JID& selfJID, const JID& mucJID) const; private: + void run(); boost::gregorian::date getNextDateWithLogs(const JID& selfJID, const JID& contactJID, HistoryMessage::Type type, const boost::gregorian::date& date, bool reverseOrder) const; int getIDForJID(const JID&); int addJID(const JID&); @@ -34,5 +36,6 @@ namespace Swift { boost::optional<int> getIDFromJID(const JID& jid) const; sqlite3* db_; + boost::thread* thread_; }; } |