Ejemplo n.º 1
0
void commonController::lineChange( commonLineControl *line )
{
   /*
      RPCPubSub::publish( "LineControl", line->lineName, line->getState()?"set":"unset" );  // we also want time of change and time in state?
   */
   commonLineControl * pttout = findLine( "PTTOut", false );
   commonLineControl *pttin = findLine( "PTTIn", true );
   commonLineControl *l1 = findLine( "L1", true );
   commonLineControl *l2 = findLine( "L2", true );
   if ( pttout && pttin && l1 && l2 )
   {
      setLines( pttout->getState(), pttin->getState(), l1->getState(), l2->getState() );
   }
   LineSet *ls = LineSet::GetLineSet();
   ls->publish( line->lineName, line->getState() );
}