mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Переделано под один мега-проект LMS с общим CMakeLists.txt
This commit is contained in:
46
InstructorsAndTrainees/trainees/computersLocations.h
Normal file
46
InstructorsAndTrainees/trainees/computersLocations.h
Normal 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
|
||||
Reference in New Issue
Block a user