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

* Added support for cart notifications to the RDXport service.
	* Added support for notifications to rdimport(1).
This commit is contained in:
Fred Gleason
2018-03-21 15:54:50 -04:00
parent e3fb53d0cf
commit 471c6498fd
13 changed files with 96 additions and 3 deletions

View File

@@ -154,6 +154,8 @@ void Xport::Import()
XmlExit("Unable to create cart ["+err_msg+"]",500,"import.cpp",
LINE_NUMBER);
}
SendNotification(RDNotification::CartType,RDNotification::AddAction,
QVariant(cartnum));
cutnum=1;
cut=new RDCut(cartnum,cutnum,true);
delete group;
@@ -267,6 +269,8 @@ void Xport::Import()
printf(" <CartNumber>%d</CartNumber>\r\n",cartnum);
printf(" <CutNumber>%d</CutNumber>\r\n",cutnum);
printf("</RDWebResult>\r\n");
SendNotification(RDNotification::CartType,RDNotification::ModifyAction,
QVariant(cartnum));
unlink(filename);
rmdir(xport_post->tempDir());
exit(0);