Logo Search packages:      
Sourcecode: ardour version File versions  Download package

void ImageFrameSocketHandler::handle_remove_message ( const char *  msg  )  [private]

Handle remove item requests

Parameters:
msg the received message

Definition at line 871 of file imageframe_socket_handler.cc.

References get_message_part(), handle_remove_imageframe_time_axis(), handle_remove_imageframe_view(), handle_remove_marker_time_axis(), handle_remove_marker_view(), and send_return_failure().

Referenced by image_socket_callback().

{
      // handle the removal of an item message
      // determine the object type to remove based upon characters 2-3
      
      std::string oType = get_message_part(2,2,msg) ;

      if(oType == ardourvis::IMAGEFRAME_TIME_AXIS)
      {
            this->handle_remove_imageframe_time_axis(msg) ;
      }
      else if (oType == ardourvis::MARKER_TIME_AXIS)
      {
            this->handle_remove_marker_time_axis(msg) ;
      }
      else if (oType == ardourvis::IMAGEFRAME_ITEM)
      {
            this->handle_remove_imageframe_view(msg) ;
      }
      else if (oType == ardourvis::MARKER_ITEM)
      {
            this->handle_remove_marker_view(msg) ;
      }
      else
      {
            std::string errMsg = "Unknown Object type during Remove: " ; 
            errMsg.append(oType) ;
            send_return_failure(errMsg) ;
      }
}


Generated by  Doxygen 1.6.0   Back to index