diff options
| author | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-20 12:22:40 (GMT) | 
|---|---|---|
| committer | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-20 12:22:40 (GMT) | 
| commit | 9ccedec3844df80241c65dc6fb24d97efc2f41fc (patch) | |
| tree | b7dd0ffacb6817a383c8d86e42eb0917dd5bd240 /Swift/Controllers/HistoryController.cpp | |
| parent | 32672b49d8ec454a3ffc94031bb973c6cfa7f862 (diff) | |
| download | swift-contrib-9ccedec3844df80241c65dc6fb24d97efc2f41fc.zip swift-contrib-9ccedec3844df80241c65dc6fb24d97efc2f41fc.tar.bz2  | |
continous scroll between dates.
Diffstat (limited to 'Swift/Controllers/HistoryController.cpp')
| -rw-r--r-- | Swift/Controllers/HistoryController.cpp | 12 | 
1 files changed, 10 insertions, 2 deletions
diff --git a/Swift/Controllers/HistoryController.cpp b/Swift/Controllers/HistoryController.cpp index 51891f6..deda25b 100644 --- a/Swift/Controllers/HistoryController.cpp +++ b/Swift/Controllers/HistoryController.cpp @@ -25,8 +25,16 @@ void HistoryController::addMessage(const std::string& message, const JID& fromJI  	onNewMessage(historyMessage);  } -std::vector<HistoryMessage> HistoryController::getMessages(const JID& selfJID, const JID& contactJID, HistoryMessage::Type type, const boost::gregorian::date& date) const { -	return localHistory_->getMessages(selfJID, contactJID, type, date); +std::vector<HistoryMessage> HistoryController::getMessagesFromDate(const JID& selfJID, const JID& contactJID, HistoryMessage::Type type, const boost::gregorian::date& date) const { +	return localHistory_->getMessagesFromDate(selfJID, contactJID, type, date); +} + +std::vector<HistoryMessage> HistoryController::getMessagesFromPreviousDate(const JID& selfJID, const JID& contactJID, HistoryMessage::Type type, const boost::gregorian::date& date) const { +	return localHistory_->getMessagesFromPreviousDate(selfJID, contactJID, type, date); +} + +std::vector<HistoryMessage> HistoryController::getMessagesFromNextDate(const JID& selfJID, const JID& contactJID, HistoryMessage::Type type, const boost::gregorian::date& date) const { +	return localHistory_->getMessagesFromNextDate(selfJID, contactJID, type, date);  }  ContactsMap HistoryController::getContacts(const JID& selfJID, HistoryMessage::Type type, const std::string& keyword) const {  | 
 Swift