/*
i-net software provides programming examples for illustration only, without warranty
either expressed or implied, including, but not limited to, the implied warranties
of merchantability and/or fitness for a particular purpose. This programming example
assumes that you are familiar with the programming language being demonstrated and
the tools used to create and debug procedures. i-net software support professionals
can help explain the functionality of a particular procedure, but they will not modify
these examples to provide added functionality or construct procedures to meet your
specific needs.
© i-net software 1998-2013
*/
using Inet.Viewer.Data;
namespace Inet.Viewer
{
///
/// Interface for receiving the results of a search.
///
public interface ISearchResultReceiver
{
///
/// This method is called during the search itself: a search result is defined by its pre-context, its actual result
/// string (which might be different from the search term, for example if the term was a regular expression), its
/// post-context, and its individual search chunks.
/// Pre-Context of the result
/// Result itself
/// Post-context of the result
/// Individual SearchChunk objects of this result (containing the position of the various
/// SearchChunks of this result)
void AddSearchResult(string pre, string result, string post, SearchChunk[] chunks);
///
/// This method is called at the end of a search as the last call: This is meant to update the
/// list of search results as well as verify the search has been finished not.
/// Page the search was discontinued, if any. -1
if the search is finished.
/// the latest timestamp of the report this search was performed on.
void EndSearch(int page, long timestamp);
///
/// This method is called if the search has been manually canceled by the user.
///
void CancelSearch();
}
}