Controller for finding usages of fields, records and custom types.
More...
#include <findusagescontroller.h>
|
| void | progressChanged (const QString title, const QString text, const int currentValue, const int maximumValue) const |
| | Progress of the current search operation has changed. More...
|
| |
| void | searchResultChanged (const QString &title, const Tome::SearchResultList results) const |
| | A search has been completed. More...
|
| |
Controller for finding usages of fields, records and custom types.
◆ FindUsagesController()
Constructs a new controller for finding usages of fields, records and custom types.
- Parameters
-
| fieldDefinitionsController | Controller for adding, updating and removing field definitions. |
| recordsController | Controller for adding, updating and removing records. |
| typesController | Controller for adding, updating and removing custom types. |
◆ findUsagesOfField()
| const SearchResultList FindUsagesController::findUsagesOfField |
( |
const QString & |
fieldId | ) |
const |
Searches for records who are using the field with the specified id.
- Parameters
-
| fieldId | Id of the field to search for. |
- Returns
- Records who are using the field with the specified id.
◆ findUsagesOfRecord()
| const SearchResultList FindUsagesController::findUsagesOfRecord |
( |
const QVariant & |
recordId | ) |
const |
Searches for records whose field values are referencing the record with the specified id.
- Parameters
-
| recordId | Id of the record to find all references of. |
- Returns
- Records whose field values are referencing the record with the specified id.
◆ findUsagesOfType()
| const SearchResultList FindUsagesController::findUsagesOfType |
( |
const QString & |
typeName | ) |
const |
Searches for records whose fields are of the type with the specified name.
- Parameters
-
| typeName | Name of the type to find all usages of. |
- Returns
- Records whose fields are of the type with the specified name.
◆ progressChanged
| void Tome::FindUsagesController::progressChanged |
( |
const QString |
title, |
|
|
const QString |
text, |
|
|
const int |
currentValue, |
|
|
const int |
maximumValue |
|
) |
| const |
|
signal |
Progress of the current search operation has changed.
- Parameters
-
| title | Title of the current search operation step. |
| text | Details of the current search operation step. |
| currentValue | Current progress value of the current search operation step. |
| maximumValue | Maximum progress value of the current search operation step. |
◆ searchResultChanged
| void Tome::FindUsagesController::searchResultChanged |
( |
const QString & |
title, |
|
|
const Tome::SearchResultList |
results |
|
) |
| const |
|
signal |
A search has been completed.
- Parameters
-
| title | Title of the search operation. |
| results | Results of the search operation. |
The documentation for this class was generated from the following files:
- Source/Tome/Features/Search/Controller/findusagescontroller.h
- Source/Tome/Features/Search/Controller/findusagescontroller.cpp