|
|
|
|
@ -8,6 +8,7 @@
|
|
|
|
|
|
|
|
|
|
import javax.swing.*;
|
|
|
|
|
|
|
|
|
|
import net.java.sip.communicator.impl.gui.main.*;
|
|
|
|
|
import net.java.sip.communicator.service.protocol.*;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@ -24,8 +25,10 @@
|
|
|
|
|
public class AuthorizationHandlerImpl
|
|
|
|
|
implements AuthorizationHandler {
|
|
|
|
|
|
|
|
|
|
public AuthorizationHandlerImpl() {
|
|
|
|
|
|
|
|
|
|
private MainFrame mainFrame;
|
|
|
|
|
|
|
|
|
|
public AuthorizationHandlerImpl(MainFrame mainFrame) {
|
|
|
|
|
this.mainFrame = mainFrame;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@ -40,7 +43,7 @@ public AuthorizationResponse processAuthorisationRequest(
|
|
|
|
|
AuthorizationResponse response = null;
|
|
|
|
|
|
|
|
|
|
AuthorizationRequestedDialog dialog
|
|
|
|
|
= new AuthorizationRequestedDialog(sourceContact, req);
|
|
|
|
|
= new AuthorizationRequestedDialog(mainFrame, sourceContact, req);
|
|
|
|
|
|
|
|
|
|
int result = dialog.showDialog();
|
|
|
|
|
|
|
|
|
|
@ -71,7 +74,7 @@ public AuthorizationRequest createAuthorizationRequest(Contact contact) {
|
|
|
|
|
AuthorizationRequest request = new AuthorizationRequest();
|
|
|
|
|
|
|
|
|
|
RequestAuthorizationDialog dialog
|
|
|
|
|
= new RequestAuthorizationDialog(contact, request);
|
|
|
|
|
= new RequestAuthorizationDialog(mainFrame, contact, request);
|
|
|
|
|
|
|
|
|
|
int returnCode = dialog.showDialog();
|
|
|
|
|
|
|
|
|
|
@ -95,7 +98,7 @@ public void processAuthorizationResponse(AuthorizationResponse response,
|
|
|
|
|
Contact sourceContact)
|
|
|
|
|
{
|
|
|
|
|
AuthorizationResponseDialog dialog
|
|
|
|
|
= new AuthorizationResponseDialog(sourceContact, response);
|
|
|
|
|
= new AuthorizationResponseDialog(mainFrame, sourceContact, response);
|
|
|
|
|
|
|
|
|
|
dialog.setVisible(true);
|
|
|
|
|
}
|
|
|
|
|
|