1 #ifndef QTMVVM_ACCOUNTMODEL_H 2 #define QTMVVM_ACCOUNTMODEL_H 4 #include <QtCore/qabstractitemmodel.h> 5 #include <QtCore/qscopedpointer.h> 7 #include <QtDataSync/accountmanager.h> 8 #include <QtDataSync/syncmanager.h> 10 #include "QtMvvmDataSyncCore/qtmvvmdatasynccore_global.h" 14 class AccountModelPrivate;
23 NameRole = Qt::DisplayRole,
24 FingerPrintRole = Qt::UserRole + 1
37 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
48 Q_INVOKABLE
bool removeDevice(
const QModelIndex &index);
51 return removeDevice(index(row));
68 #endif // QTMVVM_ACCOUNTMODEL_H
A list model implementation for QtDataSync::DeviceInfo via a QtDataSync::AccountManager.
Q_INVOKABLE bool removeDevice(int row)
Removes the device with the given index from the account.
Roles
The model roles this model provides.
The primary namespace of the QtMvvm library.