aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/protocol/TransferAuthority.java
blob: 6056c274b39b2a6e8a79d9fdf8f65c98ac236534 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * Jitsi, 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;

/**
 * Interacts with user for received transfer request for unknown calls.
 *
 * @author Damian Minkov
 */
public interface TransferAuthority
{
    /**
     * Checks with user for unknown transfer. Returns <tt>true</tt> if user
     * accepts and we must process the transfer, <tt>false</tt> otherwise.
     *
     * @param fromContact the contact initiating the transfer.
     * @param transferTo the address we will be transferred to.
     * @return <tt>true</tt> if transfer is allowed to process, <tt>false</tt>
     * otherwise.
     */
    public boolean processTransfer(Contact fromContact, String transferTo);

    /**
     * Checks with user for unknown transfer. Returns <tt>true</tt> if user
     * accepts and we must process the transfer, <tt>false</tt> otherwise.
     *
     * @param fromAddress the address initiating the transfer.
     * @param transferTo the address we will be transferred to.
     * @return <tt>true</tt> if transfer is allowed to process, <tt>false</tt>
     * otherwise.
     */
    public boolean processTransfer(String fromAddress, String transferTo);
}