summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/devicehandler.h
blob: 5cfe04897b0f2ed659bd3978678beb0f17699a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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