-set(amb_sources abstractpropertytype.cpp abstractroutingengine.cpp listplusplus.cpp abstractsink.cpp vehicleproperty.cpp abstractsource.cpp debugout.cpp timestamp.cpp uuidhelper.cpp mappropertytype.hpp propertyinfo.hpp ambclient.cpp dbusclient.cpp)
-set(amb_headers_install abstractpropertytype.h nullptr.h abstractroutingengine.h listplusplus.h abstractsink.h vehicleproperty.h debugout.h abstractsource.h timestamp.h uuidhelper.h mappropertytype.hpp propertyinfo.hpp ambclient.h dbusclient.h)
+set(amb_sources abstractpropertytype.cpp abstractroutingengine.cpp listplusplus.cpp abstractsink.cpp vehicleproperty.cpp abstractsource.cpp debugout.cpp timestamp.cpp uuidhelper.cpp mappropertytype.hpp propertyinfo.hpp)
+set(amb_headers_install abstractpropertytype.h nullptr.h abstractroutingengine.h listplusplus.h abstractsink.h vehicleproperty.h debugout.h abstractsource.h timestamp.h uuidhelper.h mappropertytype.hpp propertyinfo.hpp)
add_library(amb SHARED ${amb_sources})
+++ /dev/null
-#include "ambclient.h"
-
-#include "dbusclient.h"
-
-#ifdef websocket_plugin
-//#include "websocketclient.h"
-#endif
-
-#ifdef bluetooth_plugin
-//#include "bluetoothclient.h"
-#endif
-
-AbstractAmbClient *AbstractAmbClient::create(AbstractAmbClient::ClientType type)
-{
- if(type == AbstractAmbClient::DBus)
- {
- return new DBusClient();
- }
- else if(type == AbstractAmbClient::Bluetooth)
- {
-#ifdef bluetooth_plugin
-
-#endif
- }
- else if(type == AbstractAmbClient::Websockets)
- {
-#ifdef websocket_plugin
-
-#endif
- }
-
- return nullptr;
-}
+++ /dev/null
-#ifndef AMBCLIENT_H_
-#define AMBCLIENT_H_
-
-#include <functional>
-
-#include "abstractpropertytype.h"
-#include "vehicleproperty.h"
-
-typedef std::function<void (AbstractPropertyType*)> PropertyReplyCbType;
-
-typedef std::function<void (bool)> SetReplyType;
-
-
-
-class AbstractAmbClient {
-public:
-
- enum ClientType {
- DBus,
- Bluetooth,
- Websockets
- };
-
- AbstractAmbClient() {}
-
- virtual PropertyList supported()=0;
-
- virtual void get(VehicleProperty property, PropertyReplyCbType reply) = 0;
-
- virtual void set(AbstractPropertyType* value, SetReplyType reply) = 0;
-
- virtual int subscribe(VehicleProperty property, PropertyReplyCbType callback) = 0;
-
- virtual void unsubscribe(int handle) = 0;
-
- static AbstractAmbClient* create(ClientType type = DBus);
-};
-
-#endif
+++ /dev/null
-#include "dbusclient.h"
-
-
-PropertyList DBusClient::supported()
-{
-}
-
-void DBusClient::get(VehicleProperty property, PropertyReplyCbType reply)
-{
-}
-
-void DBusClient::set(AbstractPropertyType *value, SetReplyType reply)
-{
-}
-
-int DBusClient::subscribe(VehicleProperty property, PropertyReplyCbType callback)
-{
-}
-
-void DBusClient::unsubscribe(int handle)
-{
-}
+++ /dev/null
-#ifndef DBUSCLIENT_H_
-#define DBUSCLIENT_H_
-
-#include "ambclient.h"
-
-class DBusClient : public AbstractAmbClient
-{
-public:
-
-
- // AbstractAmbClient interface
-public:
- PropertyList supported();
- void get(VehicleProperty property, PropertyReplyCbType reply);
- void set(AbstractPropertyType *value, SetReplyType reply);
- int subscribe(VehicleProperty property, PropertyReplyCbType callback);
- void unsubscribe(int handle);
-};
-
-#endif