|
|
@ -45,3 +45,25 @@ QList<QVariant> DatabaseManager::getProbeIds() |
|
|
|
|
|
|
|
return globalIds; |
|
|
|
} |
|
|
|
|
|
|
|
/*************************************************************************************************/ |
|
|
|
QList<QVariant> DatabaseManager::getProbeNames() |
|
|
|
{ |
|
|
|
QList<QVariant> names; |
|
|
|
|
|
|
|
QSqlQuery query; |
|
|
|
if(query.exec("SELECT name FROM Probe")) |
|
|
|
{ |
|
|
|
while(query.next()) |
|
|
|
{ |
|
|
|
QString name = query.value(0).toString(); |
|
|
|
names.append(QVariant(name)); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
qDebug() << "Error executing query: " << query.lastError().text(); |
|
|
|
} |
|
|
|
|
|
|
|
return names; |
|
|
|
} |
|
|
|