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

Dialog for previewing and importing currencies from XML files. More...

#include <ImportCurrencyDialog.hpp>

Inherits QDialog.

Collaboration diagram for ImportCurrencyDialog:
Collaboration graph

Signals

void importCompleted (int success_count, int total_count)
 Emitted when import completes successfully.
 
void importCancelled ()
 Emitted when import is cancelled.
 

Public Member Functions

 ImportCurrencyDialog (const std::vector< risk::domain::currency > &currencies, const QString &filename, ClientManager *clientManager, const QString &username, QWidget *parent=nullptr)
 Constructs the import dialog.
 
std::vector< risk::domain::currencygetSelectedCurrencies () const
 Get the currencies selected for import.
 

Detailed Description

Dialog for previewing and importing currencies from XML files.

Provides a table view of all currencies to be imported with:

Constructor & Destructor Documentation

◆ ImportCurrencyDialog()

ImportCurrencyDialog ( const std::vector< risk::domain::currency > &  currencies,
const QString &  filename,
ClientManager clientManager,
const QString &  username,
QWidget *  parent = nullptr 
)
explicit

Constructs the import dialog.

Parameters
currenciesCurrencies parsed from XML file
filenamePath to the XML file being imported
clientManagerClient manager for sending currencies to server
parentParent widget

Member Function Documentation

◆ getSelectedCurrencies()

std::vector< risk::domain::currency > getSelectedCurrencies ( ) const

Get the currencies selected for import.

Returns
Vector of selected currencies

◆ importCompleted

void importCompleted ( int  success_count,
int  total_count 
)
signal

Emitted when import completes successfully.

Parameters
success_countNumber of currencies successfully imported
total_countTotal number of currencies attempted