27 lines
512 B
C
27 lines
512 B
C
|
#ifndef GLOBALVAR_H
|
||
|
#define GLOBALVAR_H
|
||
|
|
||
|
#include "singletone.h"
|
||
|
#include "qserialproto.h"
|
||
|
#include "serialcontroller.h"
|
||
|
|
||
|
#define PI 3.1415926535898
|
||
|
|
||
|
class globalVarManager
|
||
|
{
|
||
|
public:
|
||
|
globalVarManager();
|
||
|
SerialController *GetSerailController();
|
||
|
void SetSerialController(SerialController *);
|
||
|
QSerialProto &SerialProto(){
|
||
|
return mProto;
|
||
|
};
|
||
|
|
||
|
private:
|
||
|
SerialController *mSerial;
|
||
|
QSerialProto mProto;
|
||
|
};
|
||
|
|
||
|
typedef Singletone<globalVarManager> GlobalVarManager;
|
||
|
#endif // GLOBALVAR_H
|