summaryrefslogtreecommitdiff
path: root/xwalk/vehicle_instance.h
diff options
context:
space:
mode:
Diffstat (limited to 'xwalk/vehicle_instance.h')
-rw-r--r--xwalk/vehicle_instance.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/xwalk/vehicle_instance.h b/xwalk/vehicle_instance.h
new file mode 100644
index 00000000..48093b63
--- /dev/null
+++ b/xwalk/vehicle_instance.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2014 Intel Corporation. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef VEHICLE_VEHICLE_INSTANCE_H_
+#define VEHICLE_VEHICLE_INSTANCE_H_
+
+#include <string>
+
+#include <picojson.h>
+
+#include "common/extension.h"
+#include "vehicle.h"
+
+class VehicleInstance : public common::Instance {
+ public:
+ VehicleInstance();
+ virtual ~VehicleInstance() {}
+
+ private:
+ // common::Instance implementation.
+ virtual void HandleMessage(const char* msg);
+ virtual void HandleSyncMessage(const char* msg);
+
+ int ZoneToAMBZone(picojson::array);
+
+ void PostError(double callback_id, const std::string& method,
+ const std::string& error);
+
+ Vehicle* vehicle_;
+};
+
+#endif // VEHICLE_VEHICLE_INSTANCE_H_