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.

CommandBeenden.java 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 CommandBeenden implements CommandInterface
  17. {
  18. private static final Logger lginvite = OhmLogger.getLogger();
  19. private VoIP model;
  20. private Hauptfenster view;
  21. public CommandBeenden(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 beenden\n");
  32. model.cancelcall();
  33. }
  34. catch (ParseException|InvalidArgumentException|SdpException|SipException ex)
  35. {
  36. view.getTxtArea().append("Einladung fehlgeschlagen\n");
  37. lginvite.getLogger(CommandBeenden.class.getName()).log(Level.SEVERE, null, ex);
  38. }*/
  39. }
  40. @Override
  41. public void undo()
  42. {
  43. }
  44. @Override
  45. public Boolean isundoable()
  46. {
  47. return false;
  48. }
  49. }