mirror of https://github.com/sipwise/jitsi.git
Added multichat operation set definition and Gibberish protocol implementation. Related issues: Issue #241 , Issue #244, Issue #250
Defined an op set for explicit handling of authorizations.cusax-fix
parent
f591ba84e0
commit
1126c99a5f
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
|
||||
*
|
||||
* Distributable under LGPL license.
|
||||
* See terms of license at gnu.org.
|
||||
*/
|
||||
package net.java.sip.communicator.service.protocol;
|
||||
|
||||
/**
|
||||
* Contains methods that would allow service users to re-request authorizations
|
||||
* to add a contact to their contact list or, send them an authorization before
|
||||
* having been asked.
|
||||
*
|
||||
* @author Emil Ivov
|
||||
*/
|
||||
public interface OperationSetExtendedAuthorizations
|
||||
extends OperationSet
|
||||
{
|
||||
/**
|
||||
* Send a positive authorization to <tt>contact</tt> thus allowing them to
|
||||
* add us to their contact list without needing to first request an
|
||||
* authorization.
|
||||
* @param contact the <tt>Contact</tt> whom we're granting authorization
|
||||
* prior to receiving a request.
|
||||
* @throws OperationFailedException if we fail sending the authorization.
|
||||
*/
|
||||
public void explicitAuthorize(Contact contact)
|
||||
throws OperationFailedException;
|
||||
|
||||
/**
|
||||
* Send an authorization request, requesting <tt>contact</tt> to add them
|
||||
* to our contact list?
|
||||
*
|
||||
* @param request the <tt>AuthorizationRequest</tt> that we'd like the
|
||||
* protocol provider to send to <tt>contact</tt>.
|
||||
* @param contact the <tt>Contact</tt> who we'd be asking for an
|
||||
* authorization.
|
||||
* @throws OperationFailedException if we fail sending the authorization
|
||||
* request.
|
||||
*/
|
||||
public void reRequestAuthorization(AuthorizationRequest request,
|
||||
Contact contact)
|
||||
throws OperationFailedException;
|
||||
}
|
||||
Loading…
Reference in new issue