diff options
| author | Anton <anton@picapica.im> | 2026-08-12 00:18:12 +0400 |
|---|---|---|
| committer | Anton <anton@picapica.im> | 2026-08-12 00:18:12 +0400 |
| commit | 0763c7de460da23923e62f0d8033bc6b8c2888a9 (patch) | |
| tree | 5b3825708e3c05d91fd2ef40f885e6d718e6e274 /pica-client/history.h | |
| parent | 5ae6a1ff696f70b8eb1eac042a2cc278d4e7ceed (diff) | |
| download | pica-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.h | 3 |
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); |
