summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/devicehandler.h
Side-by-side diff
Diffstat (limited to 'noncore/net/opietooth/lib/devicehandler.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/devicehandler.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/noncore/net/opietooth/lib/devicehandler.h b/noncore/net/opietooth/lib/devicehandler.h
new file mode 100644
index 0000000..5cfe048
--- a/dev/null
+++ b/noncore/net/opietooth/lib/devicehandler.h
@@ -0,0 +1,41 @@
+
+#ifndef OPIE_TOOTH_DEVICE_HANDLER_H
+#define OPIE_TOOTH_DEVICE_HANDLER_H
+
+#include <qvaluelist.h>
+
+#include <remotedevice.h>
+
+namespace OpieTooth {
+ /**
+ * DeviceHandler is responsible for loading
+ * and saving devices from a config File
+ */
+ class DeviceHandler {
+ public:
+ /**
+ * c'tor
+ */
+ DeviceHandler();
+
+ /**
+ * d'tor
+ */
+ ~DeviceHandler();
+
+ /**
+ * loads from $HOME/Settings/bluetooth/ *
+ */
+ RemoteDevice::ValueList load();
+
+ /**
+ * Saves to $HOME/Settings/bluetooth
+ */
+ void save( const RemoteDevice::ValueList & );
+
+ };
+
+
+};
+
+#endif