#include <searchhandler.h>
Public Member Functions | |
virtual | ~SearchHandler () |
virtual void | handleSearchFields (const JID &directory, int fields, const std::string &instructions)=0 |
virtual void | handleSearchFields (const JID &directory, DataForm *form)=0 |
virtual void | handleSearchResult (const JID &directory, const SearchResultList &resultList)=0 |
virtual void | handleSearchResult (const JID &directory, const DataForm *form)=0 |
virtual void | handleSearchError (const JID &directory, Stanza *stanza)=0 |
A class implementing this interface can receive the result of a Jabber Search.
Definition at line 62 of file searchhandler.h.
virtual ~SearchHandler | ( | ) | [inline, virtual] |
Virtual Destructor.
Definition at line 68 of file searchhandler.h.
virtual void handleSearchFields | ( | const JID & | directory, | |
int | fields, | |||
const std::string & | instructions | |||
) | [pure virtual] |
This function is called to announce the searchable fields a directory supports. It is the result of a call to Search::fetchSearchFields() .
directory | The directory that was queried. | |
fields | Bit-wise ORed SearchFieldEnum values. | |
instructions | Plain-text instructions for the end user. |
This function is called to announce the searchable fields a directory supports. It is the result of a call to Search::fetchSearchFields() .
directory | The directory that was queried. | |
form | A DataForm describing the valid searchable fields. |
virtual void handleSearchResult | ( | const JID & | directory, | |
const SearchResultList & | resultList | |||
) | [pure virtual] |
This function is called to let the SearchHandler know about the results of the search.
directory | The searched directory. | |
resultList | A list of SearchFieldStructs. May be empty. |
This function is called to let the SearchHandler know about the result of the search.
directory | The searched directory. | |
form | A DataForm containing the search results. |
This function is called if a error occured as a result to a search or search field request.
directory | The queried/searched directory. | |
stanza | The full error stanza. |