Diffstat (limited to 'noncore/net/opietooth/lib/devicehandler.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/devicehandler.h | 41 |
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 @@ | |||
1 | |||
2 | #ifndef OPIE_TOOTH_DEVICE_HANDLER_H | ||
3 | #define OPIE_TOOTH_DEVICE_HANDLER_H | ||
4 | |||
5 | #include <qvaluelist.h> | ||
6 | |||
7 | #include <remotedevice.h> | ||
8 | |||
9 | namespace OpieTooth { | ||
10 | /** | ||
11 | * DeviceHandler is responsible for loading | ||
12 | * and saving devices from a config File | ||
13 | */ | ||
14 | class DeviceHandler { | ||
15 | public: | ||
16 | /** | ||
17 | * c'tor | ||
18 | */ | ||
19 | DeviceHandler(); | ||
20 | |||
21 | /** | ||
22 | * d'tor | ||
23 | */ | ||
24 | ~DeviceHandler(); | ||
25 | |||
26 | /** | ||
27 | * loads from $HOME/Settings/bluetooth/ * | ||
28 | */ | ||
29 | RemoteDevice::ValueList load(); | ||
30 | |||
31 | /** | ||
32 | * Saves to $HOME/Settings/bluetooth | ||
33 | */ | ||
34 | void save( const RemoteDevice::ValueList & ); | ||
35 | |||
36 | }; | ||
37 | |||
38 | |||
39 | }; | ||
40 | |||
41 | #endif | ||