|
Salmon
|
Class searches for files in a SalmonDrive by filename. More...
Public Types | |
| enum | SearchEvent { SearchingFiles , SearchingFinished } |
| Event status types. More... | |
Public Member Functions | |
| void | Stop () |
| Stop all jobs. | |
| delegate void | OnResultFoundListener (IVirtualFile searchResult) |
| Fired when search result found. | |
| bool | IsRunning () |
| True if a search is running. | |
| bool | IsStopped () |
| True if last search was stopped by user. | |
| IVirtualFile[] | Search (IVirtualFile dir, string terms, bool any, OnResultFoundListener OnResultFound, Action< SearchEvent > onSearchEvent) |
| Search files in directory and its subdirectories recursively for matching terms. | |
Class searches for files in a SalmonDrive by filename.
| bool Mku.Utils.FileSearcher.IsRunning | ( | ) |
True if a search is running.
| bool Mku.Utils.FileSearcher.IsStopped | ( | ) |
True if last search was stopped by user.
| delegate void Mku.Utils.FileSearcher.OnResultFoundListener | ( | IVirtualFile | searchResult | ) |
Fired when search result found.
| searchResult | The search result. |
| IVirtualFile[] Mku.Utils.FileSearcher.Search | ( | IVirtualFile | dir, |
| string | terms, | ||
| bool | any, | ||
| OnResultFoundListener | OnResultFound, | ||
| Action< SearchEvent > | onSearchEvent ) |
Search files in directory and its subdirectories recursively for matching terms.
| dir | The directory to start the search. |
| terms | The terms to search for. |
| any | True if you want to match any term otherwise match all terms. |
| OnResultFound | Callback interface to receive notifications when results found. |
| onSearchEvent | Callback interface to receive status events. |