defaultguimanager.java

来自「开源项目openfire的完整源程序」· Java 代码 · 共 87 行

JAVA
87
字号
/**
 * $Revision: $
 * $Date: $
 *
 * Copyright (C) 2007 Jive Software. All rights reserved.
 *
 * This software is published under the terms of the GNU Lesser Public License (LGPL),
 * a copy of which is included in this distribution.
 */

package net.java.sipmack.softphone.gui;

import net.java.sipmack.sip.InterlocutorUI;

import java.util.List;

public interface DefaultGuiManager {

    /**
     * Dial a number.
     *
     * @param number Number to be called
     */
    public void dial(String number);

    /**
     * Hold the current call. In fact it holds all medias depending of the
     * server.
     */
    public void holdAll();

    /**
     * Hold current call of associated interlocutor. In fact it holds all medias depending of the
     * server.
     *
     * @param interlocutor interlocutor that will be holded
     */
    public void hold(InterlocutorUI interlocutor);

    /**
     * Answer the current ringing call
     */
    public boolean answer();

    /**
     * Hangup all current call
     */
    public boolean hangupAll();

    /**
     * Hangup the call associated with the informed InterlocutorUI
     *
     * @param interlocutorUI
     * @return
     */
    public boolean hangup(InterlocutorUI interlocutorUI);

    /**
     *  Send a DTMF Tone to all current calls
     *
     * @param digit DTMF digit to be sent
     */
    public void sendDTMF(String digit);

    /**
     * Mute all current calls.
     */
    public void muteAll(boolean mic);

    /**
     * Mute the current call associated with the informed interlocutor.
     *
     * @param interlocutor
     * @param mic
     */
    public void mute(InterlocutorUI interlocutor, boolean mic);

    /**
     * Get all current interlocutors.
     *
     * @return
     */
    public List<InterlocutorUI> getInterlocutors();


}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?