17 int AddItem(QSharedPointer<CParameterWakeOnLan> para);
19 int Save(QSettings &set);
21 QSharedPointer<CParameterWakeOnLan> GetData(
const QModelIndex &index);
25 virtual int rowCount(
const QModelIndex &parent)
const override;
26 virtual int columnCount(
const QModelIndex &parent)
const override;
27 virtual QVariant data(
const QModelIndex &index,
int role)
const override;
28 virtual bool setData(
const QModelIndex &index,
const QVariant &value,
int role)
override;
29 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
30 virtual Qt::ItemFlags flags(
const QModelIndex &index)
const override;
31 virtual bool removeRows(
int row,
int count,
const QModelIndex &parent)
override;
32 virtual void sort(
int column, Qt::SortOrder order)
override;
34 std::vector<QSharedPointer<CParameterWakeOnLan> > m_Data;
35 QMap<int, Qt::SortOrder> m_Sort;
38 void slotHostStateChanged();