|
ORE Studio 0.0.4
|
Controller that owns and launches the OreImportWizard. More...
#include <OreImportController.hpp>
Inherits QObject.

Signals | |
| void | importCompleted () |
| Emitted when an import completes successfully. | |
| void | statusMessage (const QString &message) |
| Emitted with a human-readable summary after import. | |
Public Member Functions | |
| OreImportController (ClientManager *clientManager, QObject *parent=nullptr) | |
| void | trigger (QWidget *parent=nullptr, std::optional< boost::uuids::uuid > bookId=std::nullopt, const std::string &bookName="") |
| Show the ORE import wizard modal dialog. | |
| void | setHttpBaseUrl (const std::string &url) |
| Set the HTTP base URL for storage uploads. | |
Controller that owns and launches the OreImportWizard.
Created once per session (in MainWindow::createControllers) and wired to:
Call trigger(parent) to display the wizard modally.
| void trigger | ( | QWidget * | parent = nullptr, |
| std::optional< boost::uuids::uuid > | bookId = std::nullopt, |
||
| const std::string & | bookName = "" |
||
| ) |
Show the ORE import wizard modal dialog.
| parent | Widget to use as the dialog parent (for centering). |
| bookId | If set, all imported trades are placed into this book. existing portfolio instead of the root. |
| bookName | Display name for the pre-selected book. |
| void setHttpBaseUrl | ( | const std::string & | url | ) |
Set the HTTP base URL for storage uploads.
Called by MainWindow when the HTTP server is discovered.
|
signal |
Emitted when an import completes successfully.
Subscribers (e.g. PortfolioExplorerMdiWindow) can use this to reload data.