コード例 #1
0
  /** Updates the global status by picking the most connected protocol provider status. */
  private void updateGlobalStatus() {
    // Only if the GUI is active (bundle context will be null on shutdown)
    if (AndroidGUIActivator.bundleContext != null) {
      // Invalidate local status image
      localStatusRaw = null;
      // Invalidate global status
      globalStatus = null;
      globalStatusListeners.notifyEventListeners(getGlobalStatus());
    }

    updateJitsiIconNotification();
  }
コード例 #2
0
 /**
  * Removes global status listener.
  *
  * @param l the listener to remove.
  */
 public void removeGlobalStatusListener(EventListener<PresenceStatus> l) {
   globalStatusListeners.removeEventListener(l);
 }
コード例 #3
0
 /**
  * Adds global status listener.
  *
  * @param l the listener to be add.
  */
 public void addGlobalStatusListener(EventListener<PresenceStatus> l) {
   globalStatusListeners.addEventListener(l);
 }