Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Slots | Private Attributes | List of all members
CWakeOnLanModel Class Reference
Inheritance diagram for CWakeOnLanModel:

Public Member Functions

 CWakeOnLanModel (QObject *parent=nullptr)
 
int AddItem (QSharedPointer< CParameterWakeOnLan > para)
 
int Load (QSettings &set, CParameterClient *pClient)
 
int Save (QSettings &set)
 
QSharedPointer< CParameterWakeOnLanGetData (const QModelIndex &index)
 
virtual int rowCount (const QModelIndex &parent) const override
 
virtual int columnCount (const QModelIndex &parent) const override
 
virtual QVariant data (const QModelIndex &index, int role) const override
 
virtual bool setData (const QModelIndex &index, const QVariant &value, int role) override
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
virtual Qt::ItemFlags flags (const QModelIndex &index) const override
 
virtual bool removeRows (int row, int count, const QModelIndex &parent) override
 
virtual void sort (int column, Qt::SortOrder order) override
 

Public Attributes

std::vector< QSharedPointer< CParameterWakeOnLan > > m_Data
 
QMap< int, Qt::SortOrder > m_Sort
 

Private Slots

void slotHostStateChanged ()
 

Private Attributes

int m_Colume
 

Detailed Description

Definition at line 10 of file WakeOnLanModel.h.

Constructor & Destructor Documentation

◆ ~CWakeOnLanModel()

CWakeOnLanModel::~CWakeOnLanModel ( )
virtual

Definition at line 14 of file WakeOnLanModel.cpp.

Member Function Documentation

◆ AddItem()

int CWakeOnLanModel::AddItem ( QSharedPointer< CParameterWakeOnLan para)

Definition at line 191 of file WakeOnLanModel.cpp.

◆ columnCount()

int CWakeOnLanModel::columnCount ( const QModelIndex &  parent) const
overridevirtual

Definition at line 24 of file WakeOnLanModel.cpp.

◆ data()

QVariant CWakeOnLanModel::data ( const QModelIndex &  index,
int  role 
) const
overridevirtual

Definition at line 68 of file WakeOnLanModel.cpp.

◆ flags()

Qt::ItemFlags CWakeOnLanModel::flags ( const QModelIndex &  index) const
overridevirtual

Definition at line 53 of file WakeOnLanModel.cpp.

◆ GetData()

QSharedPointer< CParameterWakeOnLan > CWakeOnLanModel::GetData ( const QModelIndex &  index)

Definition at line 321 of file WakeOnLanModel.cpp.

◆ headerData()

QVariant CWakeOnLanModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
overridevirtual

Definition at line 29 of file WakeOnLanModel.cpp.

◆ Load()

int CWakeOnLanModel::Load ( QSettings &  set,
CParameterClient pClient 
)

Definition at line 267 of file WakeOnLanModel.cpp.

◆ removeRows()

bool CWakeOnLanModel::removeRows ( int  row,
int  count,
const QModelIndex &  parent 
)
overridevirtual

Definition at line 212 of file WakeOnLanModel.cpp.

◆ rowCount()

int CWakeOnLanModel::rowCount ( const QModelIndex &  parent) const
overridevirtual

Definition at line 19 of file WakeOnLanModel.cpp.

◆ Save()

int CWakeOnLanModel::Save ( QSettings &  set)

Definition at line 290 of file WakeOnLanModel.cpp.

◆ setData()

bool CWakeOnLanModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
overridevirtual

Definition at line 139 of file WakeOnLanModel.cpp.

◆ slotHostStateChanged

void CWakeOnLanModel::slotHostStateChanged ( )
privateslot

Definition at line 306 of file WakeOnLanModel.cpp.

◆ sort()

void CWakeOnLanModel::sort ( int  column,
Qt::SortOrder  order 
)
overridevirtual

Definition at line 252 of file WakeOnLanModel.cpp.

Member Data Documentation

◆ m_Colume

int CWakeOnLanModel::m_Colume
private

Definition at line 41 of file WakeOnLanModel.h.

◆ m_Data

std::vector<QSharedPointer<CParameterWakeOnLan> > CWakeOnLanModel::m_Data

Definition at line 34 of file WakeOnLanModel.h.

◆ m_Sort

QMap<int, Qt::SortOrder> CWakeOnLanModel::m_Sort

Definition at line 35 of file WakeOnLanModel.h.


The documentation for this class was generated from the following files: