Implement manually adding PCs

This commit is contained in:
Cameron Gutman 2018-07-06 00:34:16 -07:00
commit ecebf75b88
6 changed files with 135 additions and 58 deletions

View file

@ -93,6 +93,13 @@ void ComputerModel::deleteComputer(int computerIndex)
endRemoveRows();
}
bool ComputerModel::wakeComputer(int computerIndex)
{
Q_ASSERT(computerIndex < m_Computers.count());
return m_Computers[computerIndex]->wake();
}
void ComputerModel::pairComputer(int computerIndex, QString pin)
{
Q_ASSERT(computerIndex < m_Computers.count());