1 #ifndef QTMVVM_EXCHANGEDEVICESMODEL_H     2 #define QTMVVM_EXCHANGEDEVICESMODEL_H     4 #include <QtCore/qabstractitemmodel.h>     5 #include <QtCore/qscopedpointer.h>     7 #include <QtDataSync/userexchangemanager.h>     9 #include "QtMvvmDataSyncCore/qtmvvmdatasynccore_global.h"    13 class ExchangeDevicesModelPrivate;
    22         NameRole = Qt::DisplayRole, 
    23         HostRole = Qt::UserRole + 1, 
    40         return infoAt(index(row));
    44     QVariant headerData(
int section, Qt::Orientation orientation, 
int role = Qt::DisplayRole) 
const override;
    48     int columnCount(
const QModelIndex &parent) 
const override;
    66 #endif // QTMVVM_EXCHANGEDEVICESMODEL_H 
The port the device is bound to. The role name is port 
Roles
The model roles this model provides. 
A list model implementation to show all devices available by the QtDataSync::UserExchangeManager. 
Q_INVOKABLE QtDataSync::UserInfo infoAt(int row) const
Returns the user info at the given index. 
The primary namespace of the QtMvvm library.