summaryrefslogtreecommitdiffstats
path: root/pica-client/history.h
diff options
context:
space:
mode:
authorAnton <anton@picapica.im>2026-08-12 00:18:12 +0400
committerAnton <anton@picapica.im>2026-08-12 00:18:12 +0400
commit0763c7de460da23923e62f0d8033bc6b8c2888a9 (patch)
tree5b3825708e3c05d91fd2ef40f885e6d718e6e274 /pica-client/history.h
parent5ae6a1ff696f70b8eb1eac042a2cc278d4e7ceed (diff)
downloadpica-pica-0763c7de460da23923e62f0d8033bc6b8c2888a9.tar.gz
pica-pica-0763c7de460da23923e62f0d8033bc6b8c2888a9.zip
pica-client: changes for required for multithreaded DB access
Diffstat (limited to 'pica-client/history.h')
-rw-r--r--pica-client/history.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pica-client/history.h b/pica-client/history.h
index c1c7615..53f8ff7 100644
--- a/pica-client/history.h
+++ b/pica-client/history.h
@@ -35,7 +35,8 @@ public:
QString message;
};
- History(QString storage, QByteArray my_id);
+ // See Nodes::Nodes() for what connectionName selects and why.
+ History(QString storage, QByteArray my_id, QString connectionName = QString());
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);