This commit is contained in:
2025-12-05 12:20:47 +03:00
parent 57673d0ee4
commit 05fce073f1
450 changed files with 58 additions and 58 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