]> pilppa.org Git - lib1wire.git/blobdiff - src/Device.hh
Api cleanups for device querying
[lib1wire.git] / src / Device.hh
diff --git a/src/Device.hh b/src/Device.hh
new file mode 100644 (file)
index 0000000..f5ee509
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * GenericDevice.hh
+ *
+ *  Created on: Feb 28, 2011
+ *      Author: lamikr
+ */
+
+#ifndef DEVICETYPEGENERIC_HH_
+#define DEVICETYPEGENERIC_HH_
+
+#include <string>
+
+#include "DataReader.hh"
+
+namespace plp {
+       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;
+       };
+}
+
+#endif /* DEVICETYPEGENERIC_HH_ */