Added virtual destructors to CANSocketBCM and CANSocketRaw
[profile/ivi/automotive-message-broker.git] / xwalk / vehicle_instance.h
1 // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef VEHICLE_VEHICLE_INSTANCE_H_
6 #define VEHICLE_VEHICLE_INSTANCE_H_
7
8 #include <string>
9
10 #include <picojson.h>
11
12 #include "common/extension.h"
13 #include "vehicle.h"
14
15 class VehicleInstance : public common::Instance {
16  public:
17   VehicleInstance();
18   virtual ~VehicleInstance() {}
19
20  private:
21   // common::Instance implementation.
22   virtual void HandleMessage(const char* msg);
23   virtual void HandleSyncMessage(const char* msg);
24
25   int ZoneToAMBZone(picojson::array);
26
27   void PostError(double callback_id, const std::string& method,
28                                  const std::string& error);
29
30   Vehicle* vehicle_;
31 };
32
33 #endif  // VEHICLE_VEHICLE_INSTANCE_H_