1 #include "SystemInfoPeripheral.h"
2 #include <PlatformException.h>
9 SystemInfoPeripheral::SystemInfoPeripheral() :
10 m_is_video_output_on(fetchIsVideoOutputOn())
15 SystemInfoPeripheral::~SystemInfoPeripheral()
20 bool SystemInfoPeripheral::isVideoOutputOn() const
22 return m_is_video_output_on;
25 bool SystemInfoPeripheral::fetchIsVideoOutputOn()
28 int hdmi_status = 0, wireless_display_status = 0, popsync_status = 0;
31 ret = vconf_get_int(VCONFKEY_MIRACAST_WFD_SOURCE_STATUS, &wireless_display_status);
32 if (ret == VCONF_OK) {
33 if (VCONFKEY_MIRACAST_WFD_SOURCE_ON == wireless_display_status) {
37 LOGE("Failed to get wireless display status");
40 ret = vconf_get_int(VCONFKEY_SYSMAN_HDMI, &hdmi_status);
41 if (ret == VCONF_OK) {
42 if (VCONFKEY_SYSMAN_HDMI_CONNECTED == hdmi_status) {
46 LOGE("Failed to get hdmi status");
49 ret = vconf_get_int(VCONFKEY_POPSYNC_ACTIVATED_KEY, &popsync_status);
50 if (ret == VCONF_OK) {
51 if (1 == popsync_status) {
55 LOGE("Failed to get popsync status");