379 QStandardItemModel *m = 0;
380 if ((m=dynamic_cast<QStandardItemModel*>(fDimCmdServers->model())))
382 QList<QStandardItem*> l = m->findItems(server.c_str());
384 m->removeRow(l[0]->index().row());
387 if ((m = dynamic_cast<QStandardItemModel*>(fDimSvcServers->model())))
389 QList<QStandardItem*> l = m->findItems(server.c_str());
391 m->removeRow(l[0]->index().row());
void handleStateChanged(const Time &time, const string &server, const State &s)
Adds some functionality to boost::posix_time::ptime for our needs.