Ejemplo n.º 1
0
  /**
   * Removes the account corresponding to the given protocol provider from the call via selector
   * box.
   *
   * @param pps the protocol provider service to remove
   */
  public void removeCallAccount(ProtocolProviderService pps) {
    this.accountSelectorBox.removeAccount(pps);

    if (accountSelectorBox.getAccountsNumber() < 2) {
      this.comboPanel.remove(callViaPanel);
    }
  }
Ejemplo n.º 2
0
 /**
  * Updates the call via account status.
  *
  * @param pps the protocol provider service for the account
  */
 public void updateCallAccountStatus(ProtocolProviderService pps) {
   accountSelectorBox.updateAccountStatus(pps);
 }
Ejemplo n.º 3
0
 /**
  * Returns TRUE if the account corresponding to the given protocol provider is already contained
  * in the call via selector box, otherwise returns FALSE.
  *
  * @param pps the protocol provider service for the account
  * @return TRUE if the account corresponding to the given protocol provider is already contained
  *     in the call via selector box, otherwise returns FALSE
  */
 public boolean containsCallAccount(ProtocolProviderService pps) {
   return accountSelectorBox.containsAccount(pps);
 }
Ejemplo n.º 4
0
 /**
  * Adds the given call account to the list of call via accounts.
  *
  * @param pps the protocol provider service corresponding to the account
  */
 public void addCallAccount(ProtocolProviderService pps) {
   if (accountSelectorBox.getAccountsNumber() > 0) {
     this.comboPanel.add(callViaPanel, BorderLayout.SOUTH);
   }
   accountSelectorBox.addAccount(pps);
 }