Commit 3eee00d7 authored by skummer's avatar skummer

ZP-115

- added: ISearchProvider->TerminateSearch() to terminate previous searches (e.g. search folders in ZCP)

git-svn-id: https://z-push.org/svn/z-push/trunk@1321 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 5c984ea7
......@@ -171,6 +171,17 @@ class BackendSearchLDAP implements ISearchProvider {
return array();
}
/**
* Terminates a search for a given PID
*
* @param int $pid
*
* @return boolean
*/
public function TerminateSearch($pid) {
return true;
}
/**
* Disconnects from LDAP
*
......
......@@ -1187,6 +1187,18 @@ class BackendZarafa implements IBackend, ISearchProvider {
return $items;
}
/**
* Terminates a search for a given PID
*
* @param int $pid
*
* @return boolean
*/
public function TerminateSearch($pid) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("ZarafaBackend->TerminateSearch(): terminating search for pid %d", $pid));
return true;
}
/**
* Disconnects from the current search provider
*
......
......@@ -101,6 +101,16 @@ class SearchProvider implements ISearchProvider{
return array();
}
/**
* Terminates a search for a given PID
*
* @param int $pid
*
* @return boolean
*/
public function TerminateSearch($pid) {
return true;
}
/**
* Disconnects from the current search provider
......
......@@ -85,6 +85,16 @@ interface ISearchProvider {
*/
public function GetMailboxSearchResults($cpo);
/**
* Terminates a search for a given PID
*
* @param int $pid
*
* @return boolean
*/
public function TerminateSearch($pid);
/**
* Disconnects from the current search provider
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment