summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/devicehandler.h
authorkorovkin <korovkin>2006-11-10 20:53:23 (UTC)
committer korovkin <korovkin>2006-11-10 20:53:23 (UTC)
commitb06913999f349254ba1c6e182950cb71d0b7aa67 (patch) (side-by-side diff)
treeb91b3ad0745e9e471b244ca56456af56ba1e69a9 /noncore/net/opietooth/lib/devicehandler.h
parent961e5561b24452d9cfc2bf7400f6f5952b31431c (diff)
downloadopie-b06913999f349254ba1c6e182950cb71d0b7aa67.zip
opie-b06913999f349254ba1c6e182950cb71d0b7aa67.tar.gz
opie-b06913999f349254ba1c6e182950cb71d0b7aa67.tar.bz2
Files devicehandler.cpp and devicehandler.h moved from manager to
library to be used by obex to load a list of saved receivers.
Diffstat (limited to 'noncore/net/opietooth/lib/devicehandler.h') (more/less context) (show 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