Mantid
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
MantidQt::API::FakeFindFilesThread Class Reference

FakeFindFilesThread. More...

#include <FindFilesThreadPoolManagerMockObjects.h>

Inheritance diagram for MantidQt::API::FakeFindFilesThread:
MantidQt::API::FindFilesWorker

Public Member Functions

 FakeFindFilesThread (const FindFilesSearchParameters &parameters, const FindFilesSearchResults &results=FindFilesSearchResults(), int milliseconds=100)
 
- Public Member Functions inherited from MantidQt::API::FindFilesWorker
 FindFilesWorker (FindFilesSearchParameters parameters)
 Constructor. More...
 

Protected Member Functions

void run () override
 Override parent class run(). More...
 
virtual void run () override
 Override parent class run(). More...
 

Private Attributes

int m_milliseconds
 
FindFilesSearchResults m_results
 

Additional Inherited Members

- Public Slots inherited from MantidQt::API::FindFilesWorker
void disconnectWorker ()
 
- Signals inherited from MantidQt::API::FindFilesWorker
void finished (const FindFilesSearchResults &)
 Signal emitted after the search is finished, regardless of whether any file was found. More...
 

Detailed Description

FakeFindFilesThread.

This overrides the run method of a FindFilesWorker to implement a dummy method that will just sleep for a given number of milliseconds.

Definition at line 40 of file FindFilesThreadPoolManagerMockObjects.h.

Constructor & Destructor Documentation

◆ FakeFindFilesThread()

MantidQt::API::FakeFindFilesThread::FakeFindFilesThread ( const FindFilesSearchParameters parameters,
const FindFilesSearchResults results = FindFilesSearchResults(),
int  milliseconds = 100 
)
inline

Definition at line 43 of file FindFilesThreadPoolManagerMockObjects.h.

Member Function Documentation

◆ run()

void MantidQt::API::FakeFindFilesThread::run ( )
inlineoverrideprotectedvirtual

Override parent class run().

Called when the thread is ran via start().

Tries to find the files, and populates the error and filenames member variables with the result of the search.

At present, there are two possible use cases:

  1. Files are found directly by the FileFinder. This is the default case.
  2. Files are found using the specified algorithm property. In this case, a class user must have specified the algorithm and property via FileFinderWidget::setAlgorithmProperty().

Reimplemented from MantidQt::API::FindFilesWorker.

Definition at line 48 of file FindFilesThreadPoolManagerMockObjects.h.

Member Data Documentation

◆ m_milliseconds

int MantidQt::API::FakeFindFilesThread::m_milliseconds
private

Definition at line 56 of file FindFilesThreadPoolManagerMockObjects.h.

◆ m_results

FindFilesSearchResults MantidQt::API::FakeFindFilesThread::m_results
private

Definition at line 55 of file FindFilesThreadPoolManagerMockObjects.h.


The documentation for this class was generated from the following file: