Controller for importing record data.
More...
#include <importcontroller.h>
|
| void | importError (const QString &error) const |
| | Importing records asynchronously has failed. More...
|
| |
|
void | importFinished () const |
| | Importing records asynchronously has finished.
|
| |
|
void | importStarted () const |
| | Importing records asynchronously has started.
|
| |
|
void | importTemplatesChanged () |
| | Available record import templates have changed.
|
| |
| void | progressChanged (const QString title, const QString text, const int currentValue, const int maximumValue) const |
| | Importing records asynchronously has made notable progress. More...
|
| |
Controller for importing record data.
◆ ImportController()
Constructs a new controller for importing record data.
- 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. |
◆ addRecordImportTemplate()
Adds the specified record import template to the project.
- Parameters
-
| importTemplate | Import template to add. |
◆ getRecordTableImportTemplate()
Gets the record import template with the specified name.
- Exceptions
-
| std::out_of_range | if the record import template could not be found. |
- Parameters
-
| name | Name of the record import template to get. |
- Returns
- Record import template with the specified name.
◆ getRecordTableImportTemplates()
| const RecordTableImportTemplateList ImportController::getRecordTableImportTemplates |
( |
| ) |
const |
Gets a list of all record import templates in the project.
- Returns
- List of all record import templates in the project.
◆ importError
| void Tome::ImportController::importError |
( |
const QString & |
error | ) |
const |
|
signal |
Importing records asynchronously has failed.
- Parameters
-
| error | Localized error message. |
◆ importRecords()
Begins importing records asynchronously using the specified template.
- Parameters
-
| importTemplate | Template to use for importing the record data. |
| context | Context to import the data in (e.g. source file name). |
◆ progressChanged
| void Tome::ImportController::progressChanged |
( |
const QString |
title, |
|
|
const QString |
text, |
|
|
const int |
currentValue, |
|
|
const int |
maximumValue |
|
) |
| const |
|
signal |
Importing records asynchronously has made notable progress.
- Parameters
-
| title | Localized title of the progress message. |
| text | Localized text of the progress message. |
| currentValue | Current progress value (e.g. imported record count). |
| maximumValue | Maximum progress value (e.g. maximum record count). |
◆ removeImportTemplate()
| bool ImportController::removeImportTemplate |
( |
const QString & |
name | ) |
|
Removes the record import template with the specified name from the project.
- Parameters
-
| name | Name of the record import template to remove. |
- Returns
- true, if the import template was removed, and false otherwise.
◆ setRecordTableImportTemplates()
| void ImportController::setRecordTableImportTemplates |
( |
RecordTableImportTemplateList & |
importTemplates | ) |
|
Uses the specified list of record import templates as model for this controller.
- Parameters
-
| importTemplates | New list of record import templates to use as model for this controller. |
The documentation for this class was generated from the following files:
- Source/Tome/Features/Import/Controller/importcontroller.h
- Source/Tome/Features/Import/Controller/importcontroller.cpp