reverted varianttype
[profile/ivi/automotive-message-broker.git] / plugins / common / bluetooth5.h
1 #ifndef BLUETOOTH_5_H_
2 #define BLUETOOOTH_5_H_
3
4 #include <string>
5 #include <functional>
6 #include <superptr.hpp>
7
8 typedef std::function<void(int)> ConnectedCallback;
9
10 class Bluetooth5
11 {
12 public:
13         Bluetooth5();
14
15         bool setDevice(std::string address);
16         void getDeviceForAddress(std::string address,  ConnectedCallback onnectedCallback);
17
18         void connected_(int fd);
19
20         void connect(ConnectedCallback onconnectedCallback);
21         void disconnect();
22
23
24 private:
25         ConnectedCallback mConnected;
26         amb::super_ptr<GDBusConnection> mConnection;
27         std::string mPath;
28 };
29
30 #endif