2018-03-25 Fred Gleason <fredg@paravelsystems.com>

* Added support for notifications to rdclilogedit(1).
This commit is contained in:
Fred Gleason
2018-03-25 16:07:36 -04:00
parent 5d0e1786a2
commit e915b2f3a8
4 changed files with 21 additions and 1 deletions

View File

@@ -167,6 +167,17 @@ void MainObject::PrintPrompt() const
}
void MainObject::SendNotification(RDNotification::Action action,
const QString &logname)
{
RDNotification *notify=new RDNotification(RDNotification::LogType,
action,QVariant(logname));
rda->ripc()->sendNotification(*notify);
qApp->processEvents();
delete notify;
}
int main(int argc,char *argv[])
{
QApplication a(argc,argv,false);