Переделано под один мега-проект LMS с общим CMakeLists.txt

This commit is contained in:
krivoshein
2025-01-15 12:34:56 +03:00
parent 3064818931
commit 1c93b1f94d
219 changed files with 68 additions and 51 deletions

View File

@@ -0,0 +1,46 @@
#ifndef COMPUTERSLOCATIONS_H
#define COMPUTERSLOCATIONS_H
#include <QStringList>
#include "instructorsAndTrainees_global.h"
class INSTRUCTORSANDTRAINEES_EXPORT ComputersLocations
{
public:
ComputersLocations();
struct computerInLocation
{
QString computer;
QString location;
};
void clear()
{
listComputerInLocation.clear();
locations.clear();
computers.clear();
}
void addComputer(QString computer, QString location);
QStringList getAllLocations()
{
return locations;
}
QStringList getAllComputers()
{
return computers;
}
QString getLocationOfComputer(QString computer);
QStringList getAllComputersOfLocation(QString location);
private:
QStringList locations;
QStringList computers;
QList <computerInLocation> listComputerInLocation;
};
#endif // COMPUTERSLOCATIONS_H