JS8Call-Improved master
Loading...
Searching...
No Matches
MsgNotifyDB Class Reference

Tracks stored message notification attempts, keyed by the inbox message id. More...

#include <MsgNotifyDB.h>

Public Member Functions

 MsgNotifyDB (const QString &path)
bool open ()
void close ()
bool isOpen () const
QString error () const
bool upsertSent (int msgId, const QString &callsign, const QDateTime &ts)
QDateTime getLastSent (int msgId)
bool deleteByMsgId (int msgId)

Detailed Description

Tracks stored message notification attempts, keyed by the inbox message id.

Stores the last time we proactively sent a directed "<CALL> RETRIEVE MSG <mid>" notification for a given stored message, in a dedicated SQLite database (msg_notify.db3). This lets pushNotificationHandler() throttle re-notification to no more than once every 8 hours per message, and persists across program restarts

The row for a message id is removed once the message is delivered (QUERY MSG retrieval) or deleted from the inbox, at which point notifications for it simply stop.


The documentation for this class was generated from the following files: