Name: wrt-plugins-ivi
Summary: JavaScript plugins for WebRuntime for IVI
-Version: 0.5.0
+Version: 0.6.0
Release: 1
Group: Development/Libraries
License: Apache License, Version 2.0
Source0: %{name}-%{version}.tar.gz
-BuildRequires: pkgconfig(capi-web-favorites)
-BuildRequires: pkgconfig(libpcrecpp)
-BuildRequires: pkgconfig(tapi)
-BuildRequires: pkgconfig(network)
+#BuildRequires: pkgconfig(capi-web-favorites)
+#BuildRequires: pkgconfig(libpcrecpp)
+#BuildRequires: pkgconfig(tapi)
+#BuildRequires: pkgconfig(network)
BuildRequires: pkgconfig(ewebkit2)
BuildRequires: pkgconfig(dpl-efl)
BuildRequires: pkgconfig(dpl-event-efl)
-BuildRequires: pkgconfig(wrt-plugins-types)
+#BuildRequires: pkgconfig(wrt-plugins-types)
BuildRequires: pkgconfig(wrt-plugins-commons)
BuildRequires: pkgconfig(wrt-plugins-commons-javascript)
BuildRequires: wrt-plugins-tizen-devel
-BuildRequires: pkgconfig(wrt-plugins-plugin-manager)
-BuildRequires: pkgconfig(security-server)
+#BuildRequires: pkgconfig(wrt-plugins-plugin-manager)
+#BuildRequires: pkgconfig(security-server)
BuildRequires: dleyna
BuildRequires: expat-devel
BuildRequires: cmake
BuildRequires: boost-thread
BuildRequires: boost-system
BuildRequires: boost-filesystem
-BuildRequires: pkgconfig(automotive-message-broker)
-BuildRequires: libuuid-devel
BuildRequires: pkgconfig(json-glib-1.0)
%description
PKG_CHECK_MODULES(amb REQUIRED gio-2.0 wrt-plugins-tizen-common)
-find_library(uuid_LIBRARY uuid DOC "Uuid libraries")
-find_path(uuid_INCLUDE_DIR uuid/uuid.h DOC "Libtool headers")
-
-if(uuid_LIBRARY)
- message(STATUS "uuid found")
-else(uuid_LIBRARY)
- message(FATAL_ERROR "uuid missing. please install uuid-dev")
-endif(uuid_LIBRARY)
-
-
INCLUDE_DIRECTORIES(
${INCLUDE_COMMON}
${amb_INCLUDE_DIRS}
- ${uuid_INCLUDE_DIR}
)
SET(CMAKE_INSTALL_RPATH
TARGET_LINK_LIBRARIES(${TARGET_IMPL_NAME}
${LIBS_COMMON}
${amb_LIBRARIES}
- ${uuid_LIBRARY}
-L/usr/lib/wrt-plugins/tizen-tizen/
)
PKG_CHECK_MODULES(REQUIRED gio-2.0 wrt-plugins-tizen-common json-glib-1.0)
-find_library(uuid_LIBRARY uuid DOC "Uuid libraries")
-find_path(uuid_INCLUDE_DIR uuid/uuid.h DOC "Libtool headers")
-
-if(uuid_LIBRARY)
- message(STATUS "uuid found")
-else(uuid_LIBRARY)
- message(FATAL_ERROR "uuid missing. please install uuid-dev")
-endif(uuid_LIBRARY)
-
-
-
INCLUDE_DIRECTORIES(
${INCLUDE_COMMON}
${amb_INCLUDE_DIRS}
- ${uuid_INCLUDE_DIR}
)
SET(CMAKE_INSTALL_RPATH
TARGET_LINK_LIBRARIES(${TARGET_IMPL_NAME}
${LIBS_COMMON}
- ${uuid_LIBRARY}
-L/usr/lib/wrt-plugins/tizen-tizen/
)
include(FindPkgConfig)
-PKG_CHECK_MODULES(amb REQUIRED automotive-message-broker gio-2.0 wrt-plugins-tizen-common json-glib-1.0)
-
-find_library(uuid_LIBRARY uuid DOC "Uuid libraries")
-find_path(uuid_INCLUDE_DIR uuid/uuid.h DOC "Libtool headers")
-
-if(uuid_LIBRARY)
- message(STATUS "uuid found")
-else(uuid_LIBRARY)
- message(FATAL_ERROR "uuid missing. please install uuid-dev")
-endif(uuid_LIBRARY)
-
-
+PKG_CHECK_MODULES(amb REQUIRED gio-2.0 wrt-plugins-tizen-common json-glib-1.0)
INCLUDE_DIRECTORIES(
${INCLUDE_COMMON}
${amb_INCLUDE_DIRS}
- ${uuid_INCLUDE_DIR}
)
SET(CMAKE_INSTALL_RPATH
TARGET_LINK_LIBRARIES(${TARGET_IMPL_NAME}
${LIBS_COMMON}
${amb_LIBRARIES}
- ${uuid_LIBRARY}
-L/usr/lib/wrt-plugins/tizen-tizen/
)
return JSValueMakeUndefined(context);
}
+JSValueRef JSVehicle::getHistory(JSContextRef context,
+ JSObjectRef object,
+ JSObjectRef thisObject,
+ size_t argumentCount,
+ const JSValueRef arguments[],
+ JSValueRef* exception)
+{
+ LoggerD("Entered");
+ VehiclePrivObject* privateObject = static_cast<VehiclePrivObject*>(JSObjectGetPrivate(thisObject));
+ if (NULL == privateObject)
+ {
+ LoggerE("private object is null");
+ //return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, "Type Mismatch");
+ }
+
+ VehiclePtr vehicle(privateObject->getObject());
+
+ ArgumentValidator validator(context, argumentCount, arguments);
+
+ std::string objectName = validator.toString(0);
+
+
+}
+
}
}
size_t argumentCount,
const JSValueRef arguments[],
JSValueRef* exception);
+
+ static JSValueRef getHistory(JSContextRef context,
+ JSObjectRef object,
+ JSObjectRef thisObject,
+ size_t argumentCount,
+ const JSValueRef arguments[],
+ JSValueRef* exception);
/**
* This structure contains properties and callbacks that define a type of object.
GError *error = nullptr;
- GVariant* supportedList = g_dbus_proxy_call_sync(managerProxy, "list", NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error);
+ GVariant* supportedList = g_dbus_proxy_call_sync(managerProxy, "List", NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error);
if(error)
{