/* * 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; import java.util.*; import net.java.sip.communicator.service.protocol.event.*; /** * This operation set provides interface for user search service. * * @author Hristo Terezov */ public interface OperationSetUserSearch extends OperationSet { /** * Creates the search manager. */ public void createSearchManager(); /** * Removes search manager. */ public void removeSearchManager(); /** * Performs user search for the searched string and returns the contact * addresses of the found contacts. * * @param searchedString the text we want to query the server. * @return the list of found contact addresses. */ public List search(String searchedString); /** * Returns true if the user search service is enabled. * * @return true if the user search service is enabled. */ public boolean isEnabled(); /** * Adds UserSearchProviderListener instance to the list of * listeners. * * @param l the listener to be added */ public void addUserSearchProviderListener(UserSearchProviderListener l); /** * Removes UserSearchProviderListener instance from the list of * listeners. * * @param l the listener to be removed */ public void removeUserSearchProviderListener(UserSearchProviderListener l); }