21 #ifndef MURPHYSOURCE_H
22 #define MURPHYSOURCE_H
24 #include <murphy/common.h>
25 #include <murphy/common/process.h>
27 #include <abstractsource.h>
42 const string uuid() {
return "murphy"; }
46 void subscribeToPropertyChanges(VehicleProperty::Property
property);
47 void unsubscribeToPropertyChanges(VehicleProperty::Property
property);
48 PropertyList supported();
50 int supportedOperations();
56 bool hasProperty(
string propertyName);
58 void setState(mrp_process_state_t state);
59 mrp_process_state_t getState();
61 void setConnected(
bool connected);
63 int connectToMurphy();
65 PropertyInfo getPropertyInfo(
const VehicleProperty::Property &
property);
68 void checkSubscriptions();
69 void setConfiguration(map<string, string> config);
70 void readyToConnect(mrp_mainloop_t *ml);
72 PropertyList m_supportedProperties;
79 map<string, AbstractPropertyType *> murphyProperties;
84 mrp_transport_t *m_tport;
86 mrp_process_state_t m_state;
90 #endif // MURPHYSOURCE_H