3 Copyright (C) 2012 Intel Corporation
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 #include <abstractsource.h>
29 #include <sys/types.h>
38 class TestPlugin : public AbstractSource
42 TestPlugin(AbstractRoutingEngine* re, map<string, string> config);
46 void getPropertyAsync(AsyncPropertyReply *reply);
47 void getRangePropertyAsync(AsyncRangePropertyReply *reply){}
48 AsyncPropertyReply * setProperty(AsyncSetPropertyRequest request);
49 void subscribeToPropertyChanges(VehicleProperty::Property property);
50 void unsubscribeToPropertyChanges(VehicleProperty::Property property);
51 PropertyList supported();
53 int supportedOperations();
55 void setSupported(PropertyList list);
56 void propertyChanged(VehicleProperty::Property property, AbstractPropertyType* value, string uuid) {}
57 void supportedChanged(PropertyList) {}
58 void setConfiguration(map<string, string> config);
59 //void randomizeProperties();
60 void updateProperty(VehicleProperty::Property property,AbstractPropertyType *value);
63 PropertyList m_supportedProperties;
66 #endif // OBD2SOURCE_H