summaryrefslogtreecommitdiffstats
path: root/pica-client/history.h
diff options
context:
space:
mode:
authorAnton <anton@picapica>2019-04-27 20:59:48 +0400
committerAnton <anton@picapica>2019-04-27 20:59:48 +0400
commit850b332e7e591064bd8b3245554a05752240408e (patch)
treebb40b9caaa6f7a168896e9c34b88c59031399a1e /pica-client/history.h
parent194a8e3dede66de73323d539e9fdd4136ac111ed (diff)
downloadpica-pica-850b332e7e591064bd8b3245554a05752240408e.tar.gz
pica-pica-850b332e7e591064bd8b3245554a05752240408e.zip
pica-client: search in message history
Diffstat (limited to 'pica-client/history.h')
-rw-r--r--pica-client/history.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pica-client/history.h b/pica-client/history.h
index 1896a65..6281828 100644
--- a/pica-client/history.h
+++ b/pica-client/history.h
@@ -40,6 +40,7 @@ public:
void Add(QByteArray peer_id, QString message, bool is_me);//is_me - true - message from me to peer, false - from peer to me
void SetDelivered(QByteArray peer_id); //mark first undelivered message from me to peer as delivered
QList<HistoryRecord> GetMessages(QByteArray peer_id, quint32 start_timestamp, quint32 end_timestamp);
+ QList<HistoryRecord> GetMessages(QByteArray peer_id, QString keyword);
QMap<QByteArray, QList<QString> > GetUndeliveredMessages();
bool isOK();
QString GetLastError();