X-Git-Url: http://pilppa.org/gitweb/?p=lib1wire.git;a=blobdiff_plain;f=src%2FDevice.hh;fp=src%2FDeviceTypeGeneric.hh;h=f5ee509671d92219c34a283eb8220c1893c86cf4;hp=ba944a8c792a78aa236cf682936a6dd8edad9a6b;hb=da203ad44792ca37320768f4cbe68587c4806910;hpb=6caee6cb22c1334701afe7aa30bcf9668ca3a5c5 diff --git a/src/DeviceTypeGeneric.hh b/src/Device.hh similarity index 63% rename from src/DeviceTypeGeneric.hh rename to src/Device.hh index ba944a8..f5ee509 100644 --- a/src/DeviceTypeGeneric.hh +++ b/src/Device.hh @@ -10,13 +10,19 @@ #include +#include "DataReader.hh" + namespace plp { - class DeviceTypeGeneric { + enum EnumDeviceLifeCycleStatus {LIFECYCLE_STATUS__UNAVAILABLE, LIFECYCLE_STATUS__AVAILABLE}; + + class Device { public: virtual std::string get_id() = 0; virtual std::string get_name() = 0; virtual void set_name(std::string name_param) = 0; virtual std::string get_device_type() = 0; + virtual plp::DataReader *get_device_data() = 0; + virtual EnumDeviceLifeCycleStatus get_lifecycle_state() = 0; virtual void printout() = 0; }; }