diff options
Diffstat (limited to 'src')
13 files changed, 71 insertions, 49 deletions
diff --git a/src/3rd_party/CMakeLists.txt b/src/3rd_party/CMakeLists.txt index c5b4640a77..b2ed272416 100644 --- a/src/3rd_party/CMakeLists.txt +++ b/src/3rd_party/CMakeLists.txt @@ -172,18 +172,6 @@ if(ENABLE_LOG) add_subdirectory(apache-log4cxx-cmake) endif() -# --- D-Bus -if(HMI_DBUS_API) - - # --- D-Bus - set(DBUS_INCLUDE_DIR ${3RD_PARTY_INSTALL_PREFIX}/include) - set(DBUS_INCLUDE_DIR_ARCH ${3RD_PARTY_INSTALL_PREFIX_ARCH}/include) - set(DBUS_INCLUDE_DIRS ${DBUS_INCLUDE_DIR} ${DBUS_INCLUDE_DIR_ARCH}) - set(DBUS_INCLUDE_DIRS ${DBUS_INCLUDE_DIRS} PARENT_SCOPE) - set(DBUS_LIBS_DIRECTORY ${3RD_PARTY_INSTALL_PREFIX_ARCH}/lib PARENT_SCOPE) - message(${DBUS_INCLUDE_DIR}) -endif() - set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}") set(CMAKE_SOURCE_PREFIX ${CMAKE_SOURCE_PREFIX} "${3RD_PARTY_INSTALL_PREFIX}") find_package (BSON) diff --git a/src/appMain/life_cycle.cc b/src/appMain/life_cycle.cc index 119227ea03..7487052129 100644 --- a/src/appMain/life_cycle.cc +++ b/src/appMain/life_cycle.cc @@ -54,10 +54,12 @@ namespace main_namespace { CREATE_LOGGERPTR_GLOBAL(logger_, "SDLMain") namespace { +#ifdef MESSAGEBROKER_HMIADAPTER void NameMessageBrokerThread(const System::Thread& thread, const std::string& name) { Thread::SetNameForId(thread.GetId(), name); } +#endif // MESSAGEBROKER_HMIADAPTER void StopThread(System::Thread* thread) { if (thread) { diff --git a/src/components/application_manager/CMakeLists.txt b/src/components/application_manager/CMakeLists.txt index 7a49ce6b81..6c3a355cfc 100644 --- a/src/components/application_manager/CMakeLists.txt +++ b/src/components/application_manager/CMakeLists.txt @@ -344,9 +344,6 @@ set (HMI_COMMANDS_SOURCES ${COMMANDS_SOURCE_DIR}/hmi/rc_get_capabilities_response.cc ${COMMANDS_SOURCE_DIR}/hmi/ui_send_haptic_data_request.cc ${COMMANDS_SOURCE_DIR}/hmi/ui_send_haptic_data_response.cc -) - -set (HMI_COMMANDS_SOURCES_JSON ${COMMANDS_SOURCE_DIR}/hmi/vi_get_vehicle_data_request.cc ${COMMANDS_SOURCE_DIR}/hmi/vi_get_vehicle_data_response.cc ${COMMANDS_SOURCE_DIR}/hmi/vi_subscribe_vehicle_data_request.cc @@ -356,6 +353,9 @@ set (HMI_COMMANDS_SOURCES_JSON ${COMMANDS_SOURCE_DIR}/hmi/on_vi_vehicle_data_notification.cc ) +set (HMI_COMMANDS_SOURCES_JSON +) + set (HMI_COMMANDS_SOURCES_DBUS ${COMMANDS_SOURCE_DIR}/hmi/on_vi_gps_data_notification.cc ${COMMANDS_SOURCE_DIR}/hmi/on_vi_speed_notification.cc diff --git a/src/components/dbus/CMakeLists.txt b/src/components/dbus/CMakeLists.txt index 07ca2586d0..eb198b620c 100644 --- a/src/components/dbus/CMakeLists.txt +++ b/src/components/dbus/CMakeLists.txt @@ -52,7 +52,7 @@ collect_sources(SOURCES "${PATHS}") set(LIBRARIES HMI_API Utils - dbus-1 -L${DBUS_LIBS_DIRECTORY} + dbus-1 ) add_custom_command( diff --git a/src/components/dbus/test/CMakeLists.txt b/src/components/dbus/test/CMakeLists.txt index 1b3df2c0e7..914bd2ca84 100644 --- a/src/components/dbus/test/CMakeLists.txt +++ b/src/components/dbus/test/CMakeLists.txt @@ -33,11 +33,12 @@ include(${CMAKE_SOURCE_DIR}/tools/cmake/helpers/sources.cmake) include_directories ( ${GMOCK_INCLUDE_DIRECTORY} ${COMPONENTS_DIR}/dbus/include/ + ${COMPONENTS_DIR}/dbus/test/include/ ) #FIXME: exclude some tests set (EXCLUDE_PATHS - test_dbus_message_controller.cc + dbus_message_controller_test.cc ) collect_sources(SOURCES "${CMAKE_CURRENT_SOURCE_DIR}" ${EXCLUDE_PATHS}) diff --git a/src/components/dbus/test/dbus_message_controller_test.cc b/src/components/dbus/test/dbus_message_controller_test.cc index 5c5d4e69d5..c06e144f9b 100644 --- a/src/components/dbus/test/dbus_message_controller_test.cc +++ b/src/components/dbus/test/dbus_message_controller_test.cc @@ -36,14 +36,14 @@ #include <pthread.h> #include <gtest/gtest.h> #include <gmock/gmock.h> -#include "hmi_message_handler/mock_dbus_message_controller.h" -#include "hmi_message_handler/mock_subscriber.h" +#include "dbus/mock_dbus_message_controller.h" +#include "dbus/mock_subscriber.h" using ::testing::_; namespace test { namespace components { -namespace hmi_message_handler { +namespace dbus { ACTION_P(SignalTest, test) { if (test->thread_id != pthread_self()) { @@ -111,6 +111,6 @@ TEST_F(DBusMessageControllerTest, DISABLED_Send) { controller_->Send(kText); } -} // namespace hmi_message_handler +} // namespace dbus } // namespace components } // namespace test diff --git a/src/components/hmi_message_handler/test/include/hmi_message_handler/mock_dbus_message_controller.h b/src/components/dbus/test/include/dbus/mock_dbus_message_controller.h index 86ebf100bb..2fe4267b35 100644 --- a/src/components/hmi_message_handler/test/include/hmi_message_handler/mock_dbus_message_controller.h +++ b/src/components/dbus/test/include/dbus/mock_dbus_message_controller.h @@ -30,18 +30,18 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SRC_COMPONENTS_HMI_MESSAGE_HANDLER_TEST_INCLUDE_HMI_MESSAGE_HANDLER_MOCK_DBUS_MESSAGE_CONTROLLER_H_ -#define SRC_COMPONENTS_HMI_MESSAGE_HANDLER_TEST_INCLUDE_HMI_MESSAGE_HANDLER_MOCK_DBUS_MESSAGE_CONTROLLER_H_ +#ifndef SRC_COMPONENTS_DBUS_TEST_INCLUDE_DBUS_MOCK_DBUS_MESSAGE_CONTROLLER_H_ +#define SRC_COMPONENTS_DBUS_TEST_INCLUDE_DBUS_MOCK_DBUS_MESSAGE_CONTROLLER_H_ #include <pthread.h> -#include "hmi_message_handler/dbus_message_controller.h" +#include "dbus/dbus_message_controller.h" namespace test { namespace components { -namespace hmi_message_handler_test { +namespace dbus_test { class MockDBusMessageController - : public ::hmi_message_handler::DBusMessageController { + : public ::dbus::DBusMessageController { public: MOCK_METHOD1(Recv, void(std::string&)); @@ -69,8 +69,8 @@ class MockDBusMessageController } }; -} // namespace hmi_message_handler_test +} // namespace dbus_test } // namespace components } // namespace test -#endif // SRC_COMPONENTS_HMI_MESSAGE_HANDLER_TEST_INCLUDE_HMI_MESSAGE_HANDLER_MOCK_DBUS_MESSAGE_CONTROLLER_H_ +#endif // SRC_COMPONENTS_DBUS_TEST_INCLUDE_DBUS_MOCK_DBUS_MESSAGE_CONTROLLER_H_ diff --git a/src/components/hmi_message_handler/test/include/hmi_message_handler/mock_subscriber.h b/src/components/dbus/test/include/dbus/mock_subscriber.h index 9e9074e70c..b2a369e371 100644 --- a/src/components/hmi_message_handler/test/include/hmi_message_handler/mock_subscriber.h +++ b/src/components/dbus/test/include/dbus/mock_subscriber.h @@ -30,8 +30,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SRC_COMPONENTS_HMI_MESSAGE_HANDLER_TEST_INCLUDE_HMI_MESSAGE_HANDLER_MOCK_SUBSCRIBER_H_ -#define SRC_COMPONENTS_HMI_MESSAGE_HANDLER_TEST_INCLUDE_HMI_MESSAGE_HANDLER_MOCK_SUBSCRIBER_H_ +#ifndef SRC_COMPONENTS_DBUS_TEST_INCLUDE_DBUS_MOCK_SUBSCRIBER_H_ +#define SRC_COMPONENTS_DBUS_TEST_INCLUDE_DBUS_MOCK_SUBSCRIBER_H_ #include <string> @@ -39,7 +39,7 @@ struct DBusConnection; namespace test { namespace components { -namespace hmi_message_handler_test { +namespace dbus { class MockSubscriber { public: @@ -55,8 +55,8 @@ class MockSubscriber { DBusConnection* conn_; }; -} // namespace hmi_message_handler_test +} // namespace dbus } // namespace components } // namespace test -#endif // SRC_COMPONENTS_HMI_MESSAGE_HANDLER_TEST_INCLUDE_HMI_MESSAGE_HANDLER_MOCK_SUBSCRIBER_H_ +#endif // SRC_COMPONENTS_DBUS_TEST_INCLUDE_DBUS_MOCK_SUBSCRIBER_H_ diff --git a/src/components/hmi_message_handler/test/mock_subscriber.cc b/src/components/dbus/test/mock_subscriber.cc index 0fc9110a1d..2c5dccaa50 100644 --- a/src/components/hmi_message_handler/test/mock_subscriber.cc +++ b/src/components/dbus/test/mock_subscriber.cc @@ -31,14 +31,14 @@ */ #include "dbus/dbus.h" -#include "hmi_message_handler/mock_subscriber.h" +#include "dbus/mock_subscriber.h" namespace test { namespace components { -namespace hmi_message_handler_test { +namespace dbus { -MockSubscriber::MockSubscriber(const std::string& nameService, - const std::string& path) +MockSubscriber::MockSubscriber(const std::string nameService, + const std::string path) : nameService_(nameService), path_(path), conn_(NULL) {} MockSubscriber::~MockSubscriber() {} @@ -66,6 +66,6 @@ bool MockSubscriber::Start() { void MockSubscriber::Send(const std::string& message) {} -} // namespace hmi_message_handler_test +} // namespace dbus } // namespace components } // namespace test diff --git a/src/components/hmi_message_handler/CMakeLists.txt b/src/components/hmi_message_handler/CMakeLists.txt index c1dfca5e67..b127d8dcc5 100644 --- a/src/components/hmi_message_handler/CMakeLists.txt +++ b/src/components/hmi_message_handler/CMakeLists.txt @@ -54,7 +54,7 @@ set(PATHS ) if (HMIADAPTER STREQUAL "dbus") - set(EXCLUDE_PATHS) + set(EXCLUDE_PATHS messagebroker_adapter.cc) set(DBUS_ADAPTER DBus) else() set(EXCLUDE_PATHS dbus_message_adapter.cc) diff --git a/src/components/hmi_message_handler/test/CMakeLists.txt b/src/components/hmi_message_handler/test/CMakeLists.txt index 0d7ccd9ee1..020c5843a5 100644 --- a/src/components/hmi_message_handler/test/CMakeLists.txt +++ b/src/components/hmi_message_handler/test/CMakeLists.txt @@ -42,10 +42,11 @@ if (HMIADAPTER STREQUAL "messagebroker") message_broker_client message_broker_server ) + set(EXCLUDE_PATHS) +else() + set(EXCLUDE_PATHS hmi_message_handler_impl_test.cc) endif() -set(EXCLUDE_PATHS) - set(LIBRARIES gmock ApplicationManager @@ -55,13 +56,6 @@ set(LIBRARIES ConfigProfile ) -if(NOT HMI_DBUS_API}) - list (APPEND EXCLUDE_PATHS - mock_subscriber.cc - dbus_message_adapter_test.cc - ) -endif() - collect_sources(SOURCES "${CMAKE_CURRENT_SOURCE_DIR}" "${EXCLUDE_PATHS}") create_test(hmi_message_handler_test "${SOURCES}" "${LIBRARIES}") diff --git a/src/components/interfaces/QT_HMI_API.xml b/src/components/interfaces/QT_HMI_API.xml index 08451b5461..0e5d765964 100644 --- a/src/components/interfaces/QT_HMI_API.xml +++ b/src/components/interfaces/QT_HMI_API.xml @@ -525,6 +525,44 @@ <!-- TO DO to be removed --> <element name="turnText"/> </enum> + <enum name="MetadataType"> + <element name="mediaTitle"> + <description>The data in this field contains the title of the currently playing audio track.</description> + </element> + <element name="mediaArtist"> + <description>The data in this field contains the artist or creator of the currently playing audio track.</description> + </element> + <element name="mediaAlbum"> + <description>The data in this field contains the album title of the currently playing audio track.</description> + </element> + <element name="mediaYear"> + <description>The data in this field contains the creation year of the currently playing audio track.</description> + </element> + <element name="mediaGenre"> + <description>The data in this field contains the genre of the currently playing audio track.</description> + </element> + <element name="mediaStation"> + <description>The data in this field contains the name of the current source for the media.</description> + </element> + <element name="rating"> + <description>The data in this field is a rating.</description> + </element> + <element name="currentTemperature"> + <description>The data in this field is the current temperature.</description> + </element> + <element name="maximumTemperature"> + <description>The data in this field is the maximum temperature for the day.</description> + </element> + <element name="minimumTemperature"> + <description>The data in this field is the minimum temperature for the day.</description> + </element> + <element name="weatherTerm"> + <description>The data in this field describes the current weather (ex. cloudy, clear, etc.).</description> + </element> + <element name="humidity"> + <description>The data in this field describes the current humidity value.</description> + </element> + </enum> <enum name="ImageFieldName"> <element name="softButtonImage"> <description>The image field for SoftButton</description> diff --git a/src/components/rpc_base/test/CMakeLists.txt b/src/components/rpc_base/test/CMakeLists.txt index 566f0ddcde..ca4f41fe76 100644 --- a/src/components/rpc_base/test/CMakeLists.txt +++ b/src/components/rpc_base/test/CMakeLists.txt @@ -34,7 +34,6 @@ include_directories( ${COMPONENTS_DIR}/dbus/include ${COMPONENTS_DIR}/dbus/src ${COMPONENTS_DIR}/rpc_base/include - ${CMAKE_SOURCE_DIR}/src/3rd_party/dbus-1.7.8 ${GMOCK_INCLUDE_DIRECTORY} ${JSONCPP_INCLUDE_DIRECTORY} ) |