You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CommandAnnehmen.java 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package controller.commands;
  7. import controller.CommandInterface;
  8. import gui.Hauptfenster;
  9. import java.util.logging.Logger;
  10. import logger.OhmLogger;
  11. import model.VoIP;
  12. /**
  13. *
  14. * @author Normal
  15. */
  16. public class CommandAnnehmen implements CommandInterface
  17. {
  18. private static final Logger lginvite = OhmLogger.getLogger();
  19. private VoIP model;
  20. private Hauptfenster view;
  21. public CommandAnnehmen(VoIP model, Hauptfenster view)
  22. {
  23. this.model = model;
  24. this.view = view;
  25. }
  26. @Override
  27. public void execute()
  28. {/*
  29. try
  30. {
  31. view.getTxtArea().append("Anruf von" + "xxxxxx" + " annehmen?\n");
  32. model.acceptcall(view.getTxtcallIP().getText(),view.getTxtServerIP().getText(), 5078);
  33. }
  34. catch (ParseException|InvalidArgumentException|SdpException|SipException ex)
  35. {
  36. view.getTxtArea().append("Anruf konnte nicht angenommen werden\n");
  37. lginvite.getLogger(CommandAnnehmen.class.getName()).log(Level.SEVERE, null, ex);
  38. }
  39. */
  40. }
  41. @Override
  42. public void undo()
  43. {
  44. }
  45. @Override
  46. public Boolean isundoable()
  47. {
  48. return false;
  49. }
  50. }