2 Copyright (C) 2012 Intel Corporation
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 #ifndef OPENXCPLUGIN_H
20 #define OPENXCPLUGIN_H
22 #include <abstractsource.h>
25 #include "serialport.hpp"
29 class OpenXCPlugin: public AbstractSource
32 OpenXCPlugin(AbstractRoutingEngine* re, map<string, string> config);
35 void getPropertyAsync(AsyncPropertyReply *reply);
36 void getRangePropertyAsync(AsyncRangePropertyReply *reply);
37 AsyncPropertyReply * setProperty(AsyncSetPropertyRequest request);
38 void subscribeToPropertyChanges(VehicleProperty::Property property);
39 void unsubscribeToPropertyChanges(VehicleProperty::Property property);
40 PropertyList supported();
42 int supportedOperations();
44 void propertyChanged(VehicleProperty::Property property, AbstractPropertyType* value, string uuid) {}
45 void supportedChanged(PropertyList) {}
50 PropertyList mRequests;
52 bool translateOpenXCEvent(std::string json);
54 void testParseEngine();
55 std::map<std::string, std::string> openXC2AmbMap;
61 #endif // EXAMPLEPLUGIN_H