]> pilppa.org Git - lib1wire.git/blobdiff - src/Device.hh
Api cleanups for device querying
[lib1wire.git] / src / Device.hh
similarity index 63%
rename from src/DeviceTypeGeneric.hh
rename to src/Device.hh
index ba944a8c792a78aa236cf682936a6dd8edad9a6b..f5ee509671d92219c34a283eb8220c1893c86cf4 100644 (file)
 
 #include <string>
 
+#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;
        };
 }