SEPIA
Software documentation for the APEX SEPIA receivers
device.h
Go to the documentation of this file.
1 /* Copyright 2017 Michael Olberg <michael.olberg@chalmers.se> */
2 #ifndef DEVICE_H
3 #define DEVICE_H
4 
10 #include <QString>
11 
16 class Device
17 {
18  public:
22  enum State { Faulted = -1, Shutdown = 0, Initialize = 1,
23  Disabled = 2, Enabled = 3 };
24 
25  Device(Device::State state);
26 
31  QString statusString() const;
32 
33  protected:
34  Device::State m_state;
35 };
36 
37 #endif
A virtual class representing a device.
Definition: device.h:16
QString statusString() const
statusString
Definition: device.cpp:8
State
The State enum.
Definition: device.h:22