ORE Studio 0.0.4
Loading...
Searching...
No Matches
Signals | Public Member Functions | List of all members
OreImportController Class Referencefinal

Controller that owns and launches the OreImportWizard. More...

#include <OreImportController.hpp>

Inherits QObject.

Collaboration diagram for OreImportController:
Collaboration graph

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.
 

Detailed Description

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.

Member Function Documentation

◆ trigger()

void trigger ( QWidget *  parent = nullptr,
std::optional< boost::uuids::uuid >  bookId = std::nullopt,
const std::string &  bookName = "" 
)

Show the ORE import wizard modal dialog.

Parameters
parentWidget to use as the dialog parent (for centering).
bookIdIf set, all imported trades are placed into this book. existing portfolio instead of the root.
bookNameDisplay name for the pre-selected book.

◆ setHttpBaseUrl()

void setHttpBaseUrl ( const std::string &  url)

Set the HTTP base URL for storage uploads.

Called by MainWindow when the HTTP server is discovered.

◆ importCompleted

void importCompleted ( )
signal

Emitted when an import completes successfully.

Subscribers (e.g. PortfolioExplorerMdiWindow) can use this to reload data.