2020-08-08 Fred Gleason <fredg@paravelsystems.com>

* Implemented multicast notifications for RSS feed items.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2020-08-08 17:38:16 -04:00
parent 9a428ad855
commit b4cd2117ec
7 changed files with 113 additions and 3 deletions

View File

@@ -84,6 +84,12 @@ MainObject::MainObject(QObject *parent)
}
}
//
// Connect to ripcd(8)
//
rda->ripc()->
connectHost("localhost",RIPCD_TCP_PORT,rda->config()->password());
//
// Scan Timer
//
@@ -157,6 +163,11 @@ void MainObject::ProcessFeed(const QString &key_name)
q->value(0).toUInt(),cast->itemTitle().toUtf8().constData(),
feed->keyName().toUtf8().constData());
delete cast;
RDNotification *notify=new RDNotification(RDNotification::FeedItemType,
RDNotification::DeleteAction,
q->value(0).toUInt());
rda->ripc()->sendNotification(*notify);
delete notify;
}
if(feed->postXml(&err_msg)) {
rda->syslog(LOG_DEBUG,