FACT++  1.0
void FactGui::handleRemoveAllServices ( const string &  server)
inlineprivate

Definition at line 375 of file FactGui.h.

Referenced by RemoveAllServices().

376  {
377  handleStateChanged(Time(), server, State(-2, "Offline", "No connection via DIM."));
378 
379  QStandardItemModel *m = 0;
380  if ((m=dynamic_cast<QStandardItemModel*>(fDimCmdServers->model())))
381  {
382  QList<QStandardItem*> l = m->findItems(server.c_str());
383  if (l.size()==1)
384  m->removeRow(l[0]->index().row());
385  }
386 
387  if ((m = dynamic_cast<QStandardItemModel*>(fDimSvcServers->model())))
388  {
389  QList<QStandardItem*> l = m->findItems(server.c_str());
390  if (l.size()==1)
391  m->removeRow(l[0]->index().row());
392  }
393  }
void handleStateChanged(const Time &time, const string &server, const State &s)
Definition: FactGui.h:2513
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30

+ Here is the caller graph for this function: