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

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