12#include <QVariantList>
13#include <QModelIndexList>
18class QStandardItemModel;
23 class BaseSettingsManager;
37 QStandardItemModel *
const Model_;
38 BaseSettingsManager *
const BSM_;
68 QAbstractItemModel*
GetModel ()
const;
80 void SaveSettings ()
const;
81 void AppendRow (
const QPair<QString, QString>&);
93 void addRequested (
const QString& property,
const QVariantList& list);
104 void removeRequested (
const QString& property,
const QModelIndexList& list);
void addressesChanged()
Notifies about the changes in the selected interfaces list.
AddrList_t GetAddresses() const
Returns the list of addresses of interfaces selected by the user.
void addRequested(const QString &property, const QVariantList &list)
Invoked by XML settings dialog to add new user-selected items.
static void RegisterTypes()
Registers the types used for storage in Qt metasystem.
AddressesModelManager(BaseSettingsManager *bsm, int defaultPort, QObject *parent=nullptr)
Constructs the model manager.
QAbstractItemModel * GetModel() const
Returns the managed model.
void removeRequested(const QString &property, const QModelIndexList &list)
Invoked by XML settings dialog to remove some user-selected items.
QList< QPair< QString, QString > > AddrList_t