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.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.SIPmodel;
  12. /**
  13. *
  14. * @author Jan Muss noch komplett implementiert werden -> Bye bei laufendem
  15. * Gespräch -> Cancel bei laufender Anfrage, sollte beides recht schnell gehen
  16. * wenn ihr Lust habt.
  17. *
  18. */
  19. public class CommandBeenden implements CommandInterface
  20. {
  21. private static final Logger lginvite = OhmLogger.getLogger();
  22. private SIPmodel model;
  23. private Hauptfenster view;
  24. public CommandBeenden(SIPmodel model, Hauptfenster view)
  25. {
  26. this.model = model;
  27. this.view = view;
  28. }
  29. @Override
  30. public void execute()
  31. {
  32. view.getTxtArea().append("Anruf beenden\n");
  33. try
  34. {
  35. model.byecall(view.getTxtcallUser().getText());
  36. }
  37. catch (Exception e)
  38. {
  39. }
  40. }
  41. @Override
  42. public void undo()
  43. {
  44. }
  45. @Override
  46. public Boolean isundoable()
  47. {
  48. return false;
  49. }
  50. }