1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
-
- package controller.commands;
-
- import controller.CommandInterface;
- import gui.Hauptfenster;
- import java.util.logging.Logger;
- import logger.OhmLogger;
- import model.VoIP;
-
- /**
- *
- * @author Normal
- */
- public class CommandAnnehmen implements CommandInterface
- {
- private static final Logger lginvite = OhmLogger.getLogger();
- private VoIP model;
- private Hauptfenster view;
- public CommandAnnehmen(VoIP model, Hauptfenster view)
- {
- this.model = model;
- this.view = view;
- }
-
- @Override
- public void execute()
- {/*
- try
- {
- view.getTxtArea().append("Anruf von" + "xxxxxx" + " annehmen?\n");
- model.acceptcall(view.getTxtcallIP().getText(),view.getTxtServerIP().getText(), 5078);
- }
- catch (ParseException|InvalidArgumentException|SdpException|SipException ex)
- {
- view.getTxtArea().append("Anruf konnte nicht angenommen werden\n");
- lginvite.getLogger(CommandAnnehmen.class.getName()).log(Level.SEVERE, null, ex);
- }
- */
- }
- @Override
- public void undo()
- {
-
- }
-
- @Override
- public Boolean isundoable()
- {
- return false;
- }
- }
|