void infoSystem::setDevice(CDevice &d){
device = d;
}
#ifndef INFOSYSTEM_H
#define INFOSYSTEM_H
#include
#include "cdevice.h"
namespace Ui {
class infoSystem;
}
class infoSystem : public QMainWindow
{
Q_OBJECT
public:
explicit infoSystem(QWidget *parent = 0);
~infoSystem();
void setDevice(CDevice &);
private:
Ui::infoSystem *ui;
CDevice *device;
};
#endif // INFOSYSTEM_H
id.setDevice(device)
void setDevice(CDevice*);
void infoSystem::setDevice(CDevice *d){