24 #include <QApplication>
31 using namespace YACS::HMI;
32 using namespace YACS::ENGINE;
34 YACSEvent::YACSEvent(std::pair<int,std::string> aYACSEvent)
43 DEBTRACE(
"GuiObserver_i::GuiObserver_i");
53 DEBTRACE(
"GuiObserver_i::~GuiObserver_i");
58 DEBTRACE(
"GuiObserver_i::notifyObserver " << numid <<
" " << event);
59 pair<int,string> myEvent(numid, event);
61 QApplication::postEvent(
_impl, evt);
66 DEBTRACE(
"GuiObserver_i::setConversion");
68 YACS_ORB::stringArray_var engineNames;
69 YACS_ORB::longArray_var engineIds;
71 _engineProc->getIds(engineIds.out(), engineNames.out());
72 int iLength = engineIds->length();
73 int nLength = engineNames->length();
74 if (nLength < iLength) iLength = nLength;
75 for(
int i=0;
i<iLength;
i++)
78 aName = engineNames[
i];
79 int iEng = engineIds[
i];
80 DEBTRACE(
"--- " << aName <<
" " << iEng);
81 if (aName !=
"_root_")
105 DEBTRACE(
"GuiObserver_i::SetRemoteProc");
106 _engineProc = YACS_ORB::ProcExec::_duplicate(engineProc);