Reorganize the directory structure of source files 56/66556/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Tue, 19 Apr 2016 11:02:53 +0000 (20:02 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Tue, 19 Apr 2016 11:02:53 +0000 (20:02 +0900)
Source directories are roughly separated by their dependencies.
Later, the build script will be updated to produce one shared object per one directory, and a dynamic loading routine will be applied.

Change-Id: Iceaae6740cebc15a89ce0631f13b1254640b12c4
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
174 files changed:
CMakeLists.txt
packaging/context-provider.spec
src/CMakeLists.txt [deleted file]
src/activity/Activity.h [moved from src/device/activity/Activity.h with 98% similarity]
src/activity/ActivityBase.cpp [moved from src/device/activity/ActivityBase.cpp with 100% similarity]
src/activity/ActivityBase.h [moved from src/device/activity/ActivityBase.h with 97% similarity]
src/activity/ActivityTypes.h [moved from src/device/activity/ActivityTypes.h with 100% similarity]
src/app-stats/ActiveWindowMonitor.cpp [moved from src/statistics/app/ActiveWindowMonitor.cpp with 100% similarity]
src/app-stats/ActiveWindowMonitor.h [moved from src/statistics/app/ActiveWindowMonitor.h with 100% similarity]
src/app-stats/AppStatisticsTypes.h [moved from src/statistics/app/AppStatisticsTypes.h with 100% similarity]
src/app-stats/AppStatsLogger.cpp [moved from src/statistics/app/AppStatsLogger.cpp with 100% similarity]
src/app-stats/AppStatsLogger.h [moved from src/statistics/app/AppStatsLogger.h with 100% similarity]
src/app-stats/AppStatsProvider.cpp [moved from src/statistics/app/AppStatsProvider.cpp with 100% similarity]
src/app-stats/AppStatsProvider.h [moved from src/statistics/app/AppStatsProvider.h with 100% similarity]
src/app-stats/DbHandle.cpp [moved from src/statistics/app/DbHandle.cpp with 100% similarity]
src/app-stats/DbHandle.h [moved from src/statistics/app/DbHandle.h with 100% similarity]
src/app-stats/DbInit.cpp [moved from src/statistics/app/DbInit.cpp with 100% similarity]
src/app-stats/DbInit.h [moved from src/statistics/app/DbInit.h with 100% similarity]
src/app-stats/InstallMonitor.cpp [moved from src/statistics/app/InstallMonitor.cpp with 100% similarity]
src/app-stats/InstallMonitor.h [moved from src/statistics/app/InstallMonitor.h with 100% similarity]
src/app-stats/app_inactive_detector/AppInactiveDetector.cpp [moved from src/statistics/app/app_inactive_detector/AppInactiveDetector.cpp with 100% similarity]
src/app-stats/app_inactive_detector/AppInactiveDetector.h [moved from src/statistics/app/app_inactive_detector/AppInactiveDetector.h with 100% similarity]
src/app-stats/app_inactive_detector/AppInactiveDetectorTypes.h [moved from src/statistics/app/app_inactive_detector/AppInactiveDetectorTypes.h with 100% similarity]
src/app-stats/app_inactive_detector/InactiveDetector.cpp [moved from src/statistics/app/app_inactive_detector/InactiveDetector.cpp with 100% similarity]
src/app-stats/app_inactive_detector/InactiveDetector.h [moved from src/statistics/app/app_inactive_detector/InactiveDetector.h with 100% similarity]
src/app-stats/app_inactive_detector/InactiveDetectorClassificator.cpp [moved from src/statistics/app/app_inactive_detector/InactiveDetectorClassificator.cpp with 100% similarity]
src/app-stats/app_inactive_detector/InactiveDetectorClassificator.h [moved from src/statistics/app/app_inactive_detector/InactiveDetectorClassificator.h with 100% similarity]
src/app-stats/app_inactive_detector/InactiveDetectorClassificatorKmeans.cpp [moved from src/statistics/app/app_inactive_detector/InactiveDetectorClassificatorKmeans.cpp with 100% similarity]
src/app-stats/app_inactive_detector/InactiveDetectorClassificatorKmeans.h [moved from src/statistics/app/app_inactive_detector/InactiveDetectorClassificatorKmeans.h with 100% similarity]
src/app-stats/app_inactive_detector/InactiveDetectorClassificatorKmeansTypes.h [moved from src/statistics/app/app_inactive_detector/InactiveDetectorClassificatorKmeansTypes.h with 100% similarity]
src/app-stats/app_inactive_detector/InactiveDetectorStorage.cpp [moved from src/statistics/app/app_inactive_detector/InactiveDetectorStorage.cpp with 100% similarity]
src/app-stats/app_inactive_detector/InactiveDetectorStorage.h [moved from src/statistics/app/app_inactive_detector/InactiveDetectorStorage.h with 100% similarity]
src/app-stats/app_inactive_detector/InactiveDetectorStorageQueries.h [moved from src/statistics/app/app_inactive_detector/InactiveDetectorStorageQueries.h with 100% similarity]
src/app-stats/app_inactive_detector/InactiveDetectorWeight.cpp [moved from src/statistics/app/app_inactive_detector/InactiveDetectorWeight.cpp with 100% similarity]
src/app-stats/app_inactive_detector/InactiveDetectorWeight.h [moved from src/statistics/app/app_inactive_detector/InactiveDetectorWeight.h with 100% similarity]
src/call/Call.cpp [moved from src/device/social/Call.cpp with 99% similarity]
src/call/Call.h [moved from src/device/social/Call.h with 95% similarity]
src/contacts/Contacts.cpp [moved from src/device/social/Contacts.cpp with 99% similarity]
src/contacts/Contacts.h [moved from src/device/social/Contacts.h with 94% similarity]
src/device/CMakeLists.txt [deleted file]
src/email/Email.cpp [moved from src/device/social/Email.cpp with 98% similarity]
src/email/Email.h [moved from src/device/social/Email.h with 93% similarity]
src/geofence/GeofenceMonitorHandle.cpp [moved from src/place/geofence/GeofenceMonitorHandle.cpp with 100% similarity]
src/geofence/GeofenceMonitorHandle.h [moved from src/place/geofence/GeofenceMonitorHandle.h with 100% similarity]
src/geofence/PlaceGeofenceProvider.cpp [moved from src/place/geofence/PlaceGeofenceProvider.cpp with 100% similarity]
src/geofence/PlaceGeofenceProvider.h [moved from src/place/geofence/PlaceGeofenceProvider.h with 100% similarity]
src/geofence/PlaceGeofenceTypes.h [moved from src/place/geofence/PlaceGeofenceTypes.h with 100% similarity]
src/headphone/Headphone.cpp [moved from src/device/system/Headphone.cpp with 99% similarity]
src/headphone/Headphone.h [moved from src/device/system/Headphone.h with 90% similarity]
src/media-stats/DbHandle.cpp [moved from src/statistics/media/DbHandle.cpp with 100% similarity]
src/media-stats/DbHandle.h [moved from src/statistics/media/DbHandle.h with 100% similarity]
src/media-stats/MediaContentMonitor.cpp [moved from src/statistics/media/MediaContentMonitor.cpp with 100% similarity]
src/media-stats/MediaContentMonitor.h [moved from src/statistics/media/MediaContentMonitor.h with 100% similarity]
src/media-stats/MediaStatisticsTypes.h [moved from src/statistics/media/MediaStatisticsTypes.h with 100% similarity]
src/media-stats/MediaStatsLogger.cpp [moved from src/statistics/media/MediaStatsLogger.cpp with 100% similarity]
src/media-stats/MediaStatsLogger.h [moved from src/statistics/media/MediaStatsLogger.h with 100% similarity]
src/media-stats/MediaStatsProvider.cpp [moved from src/statistics/media/MediaStatsProvider.cpp with 100% similarity]
src/media-stats/MediaStatsProvider.h [moved from src/statistics/media/MediaStatsProvider.h with 100% similarity]
src/message/Message.cpp [moved from src/device/social/Message.cpp with 99% similarity]
src/message/Message.h [moved from src/device/social/Message.h with 94% similarity]
src/my-place/place_recognition.cpp [moved from src/place/recognition/place_recognition.cpp with 100% similarity]
src/my-place/place_recognition.h [moved from src/place/recognition/place_recognition.h with 100% similarity]
src/my-place/place_recognition_types.h [moved from src/place/recognition/place_recognition_types.h with 100% similarity]
src/my-place/user_places/debug_utils.cpp [moved from src/place/recognition/user_places/debug_utils.cpp with 100% similarity]
src/my-place/user_places/debug_utils.h [moved from src/place/recognition/user_places/debug_utils.h with 100% similarity]
src/my-place/user_places/gmap.cpp [moved from src/place/recognition/user_places/gmap.cpp with 100% similarity]
src/my-place/user_places/gmap.h [moved from src/place/recognition/user_places/gmap.h with 100% similarity]
src/my-place/user_places/graph.cpp [moved from src/place/recognition/user_places/graph.cpp with 100% similarity]
src/my-place/user_places/graph.h [moved from src/place/recognition/user_places/graph.h with 100% similarity]
src/my-place/user_places/location_listener_iface.h [moved from src/place/recognition/user_places/location_listener_iface.h with 100% similarity]
src/my-place/user_places/location_logger.cpp [moved from src/place/recognition/user_places/location_logger.cpp with 100% similarity]
src/my-place/user_places/location_logger.h [moved from src/place/recognition/user_places/location_logger.h with 100% similarity]
src/my-place/user_places/mahal.cpp [moved from src/place/recognition/user_places/mahal.cpp with 100% similarity]
src/my-place/user_places/mahal.h [moved from src/place/recognition/user_places/mahal.h with 100% similarity]
src/my-place/user_places/median.cpp [moved from src/place/recognition/user_places/median.cpp with 100% similarity]
src/my-place/user_places/median.h [moved from src/place/recognition/user_places/median.h with 100% similarity]
src/my-place/user_places/piecewise_lin.cpp [moved from src/place/recognition/user_places/piecewise_lin.cpp with 100% similarity]
src/my-place/user_places/piecewise_lin.h [moved from src/place/recognition/user_places/piecewise_lin.h with 100% similarity]
src/my-place/user_places/place_categer.cpp [moved from src/place/recognition/user_places/place_categer.cpp with 100% similarity]
src/my-place/user_places/place_categer.h [moved from src/place/recognition/user_places/place_categer.h with 100% similarity]
src/my-place/user_places/places_detector.cpp [moved from src/place/recognition/user_places/places_detector.cpp with 100% similarity]
src/my-place/user_places/places_detector.h [moved from src/place/recognition/user_places/places_detector.h with 100% similarity]
src/my-place/user_places/prob_features_model.h [moved from src/place/recognition/user_places/prob_features_model.h with 100% similarity]
src/my-place/user_places/similarity.h [moved from src/place/recognition/user_places/similarity.h with 100% similarity]
src/my-place/user_places/user_places.cpp [moved from src/place/recognition/user_places/user_places.cpp with 100% similarity]
src/my-place/user_places/user_places.h [moved from src/place/recognition/user_places/user_places.h with 100% similarity]
src/my-place/user_places/user_places_params.h [moved from src/place/recognition/user_places/user_places_params.h with 100% similarity]
src/my-place/user_places/user_places_types.cpp [moved from src/place/recognition/user_places/user_places_types.cpp with 100% similarity]
src/my-place/user_places/user_places_types.h [moved from src/place/recognition/user_places/user_places_types.h with 100% similarity]
src/my-place/user_places/visit_categer.cpp [moved from src/place/recognition/user_places/visit_categer.cpp with 100% similarity]
src/my-place/user_places/visit_categer.h [moved from src/place/recognition/user_places/visit_categer.h with 100% similarity]
src/my-place/user_places/visit_detector.cpp [moved from src/place/recognition/user_places/visit_detector.cpp with 100% similarity]
src/my-place/user_places/visit_detector.h [moved from src/place/recognition/user_places/visit_detector.h with 100% similarity]
src/my-place/user_places/visit_listener_iface.h [moved from src/place/recognition/user_places/visit_listener_iface.h with 100% similarity]
src/my-place/user_places/wifi_listener_iface.h [moved from src/place/recognition/user_places/wifi_listener_iface.h with 100% similarity]
src/my-place/user_places/wifi_logger.cpp [moved from src/place/recognition/user_places/wifi_logger.cpp with 100% similarity]
src/my-place/user_places/wifi_logger.h [moved from src/place/recognition/user_places/wifi_logger.h with 100% similarity]
src/place/CMakeLists.txt [deleted file]
src/prediction/assoc_rule.cpp [moved from src/statistics/prediction/assoc_rule.cpp with 100% similarity]
src/prediction/assoc_rule.h [moved from src/statistics/prediction/assoc_rule.h with 100% similarity]
src/prediction/assoc_rule_miner.cpp [moved from src/statistics/prediction/assoc_rule_miner.cpp with 100% similarity]
src/prediction/assoc_rule_miner.h [moved from src/statistics/prediction/assoc_rule_miner.h with 100% similarity]
src/prediction/assoc_rule_of_ids.h [moved from src/statistics/prediction/assoc_rule_of_ids.h with 100% similarity]
src/prediction/assoc_rule_producer.cpp [moved from src/statistics/prediction/assoc_rule_producer.cpp with 100% similarity]
src/prediction/assoc_rule_producer.h [moved from src/statistics/prediction/assoc_rule_producer.h with 100% similarity]
src/prediction/basket.cpp [moved from src/statistics/prediction/basket.cpp with 100% similarity]
src/prediction/basket.h [moved from src/statistics/prediction/basket.h with 100% similarity]
src/prediction/basket_compressor.cpp [moved from src/statistics/prediction/basket_compressor.cpp with 100% similarity]
src/prediction/basket_compressor.h [moved from src/statistics/prediction/basket_compressor.h with 100% similarity]
src/prediction/basket_filter.cpp [moved from src/statistics/prediction/basket_filter.cpp with 100% similarity]
src/prediction/basket_filter.h [moved from src/statistics/prediction/basket_filter.h with 100% similarity]
src/prediction/basket_producer.cpp [moved from src/statistics/prediction/basket_producer.cpp with 100% similarity]
src/prediction/basket_producer.h [moved from src/statistics/prediction/basket_producer.h with 100% similarity]
src/prediction/baskets_agregator.cpp [moved from src/statistics/prediction/baskets_agregator.cpp with 100% similarity]
src/prediction/baskets_agregator.h [moved from src/statistics/prediction/baskets_agregator.h with 100% similarity]
src/prediction/event.cpp [moved from src/statistics/prediction/event.cpp with 100% similarity]
src/prediction/event.h [moved from src/statistics/prediction/event.h with 100% similarity]
src/prediction/event_set.h [moved from src/statistics/prediction/event_set.h with 100% similarity]
src/prediction/i_item_id_filter.h [moved from src/statistics/prediction/i_item_id_filter.h with 100% similarity]
src/prediction/interval.cpp [moved from src/statistics/prediction/interval.cpp with 100% similarity]
src/prediction/interval.h [moved from src/statistics/prediction/interval.h with 100% similarity]
src/prediction/item.cpp [moved from src/statistics/prediction/item.cpp with 100% similarity]
src/prediction/item.h [moved from src/statistics/prediction/item.h with 100% similarity]
src/prediction/item_catalogue.cpp [moved from src/statistics/prediction/item_catalogue.cpp with 100% similarity]
src/prediction/item_catalogue.h [moved from src/statistics/prediction/item_catalogue.h with 100% similarity]
src/prediction/item_id_set.h [moved from src/statistics/prediction/item_id_set.h with 100% similarity]
src/prediction/item_set.cpp [moved from src/statistics/prediction/item_set.cpp with 100% similarity]
src/prediction/item_set.h [moved from src/statistics/prediction/item_set.h with 100% similarity]
src/prediction/item_string_converter.cpp [moved from src/statistics/prediction/item_string_converter.cpp with 100% similarity]
src/prediction/item_string_converter.h [moved from src/statistics/prediction/item_string_converter.h with 100% similarity]
src/prediction/single_category_item_id_filter.cpp [moved from src/statistics/prediction/single_category_item_id_filter.cpp with 100% similarity]
src/prediction/single_category_item_id_filter.h [moved from src/statistics/prediction/single_category_item_id_filter.h with 100% similarity]
src/prediction/weight_apriori.cpp [moved from src/statistics/prediction/weight_apriori.cpp with 100% similarity]
src/prediction/weight_apriori.h [moved from src/statistics/prediction/weight_apriori.h with 100% similarity]
src/shared/CommonTypes.h [moved from src/statistics/shared/CommonTypes.h with 100% similarity]
src/shared/DbHandleBase.cpp [moved from src/statistics/shared/DbHandleBase.cpp with 100% similarity]
src/shared/DbHandleBase.h [moved from src/statistics/shared/DbHandleBase.h with 100% similarity]
src/shared/DeviceContextProvider.cpp [moved from src/device/DeviceContextProvider.cpp with 58% similarity]
src/shared/DeviceProviderBase.cpp [moved from src/device/DeviceProviderBase.cpp with 100% similarity]
src/shared/DeviceProviderBase.h [moved from src/device/DeviceProviderBase.h with 100% similarity]
src/shared/PlaceContextProvider.cpp [moved from src/place/PlaceContextProvider.cpp with 85% similarity]
src/shared/SocialTypes.h [moved from src/device/social/SocialTypes.h with 100% similarity]
src/shared/StatisticsContextProvider.cpp [moved from src/statistics/StatisticsContextProvider.cpp with 85% similarity]
src/shared/SystemInfo.cpp [moved from src/statistics/shared/SystemInfo.cpp with 100% similarity]
src/shared/SystemInfo.h [moved from src/statistics/shared/SystemInfo.h with 100% similarity]
src/shared/SystemTypes.h [moved from src/device/system/SystemTypes.h with 100% similarity]
src/social-stats/DbHandle.cpp [moved from src/statistics/social/DbHandle.cpp with 100% similarity]
src/social-stats/DbHandle.h [moved from src/statistics/social/DbHandle.h with 100% similarity]
src/social-stats/LogAggregator.cpp [moved from src/statistics/social/LogAggregator.cpp with 100% similarity]
src/social-stats/LogAggregator.h [moved from src/statistics/social/LogAggregator.h with 100% similarity]
src/social-stats/SocialStatisticsTypes.h [moved from src/statistics/social/SocialStatisticsTypes.h with 100% similarity]
src/social-stats/SocialStatsLogger.cpp [moved from src/statistics/social/SocialStatsLogger.cpp with 100% similarity]
src/social-stats/SocialStatsLogger.h [moved from src/statistics/social/SocialStatsLogger.h with 100% similarity]
src/social-stats/SocialStatsProvider.cpp [moved from src/statistics/social/SocialStatsProvider.cpp with 100% similarity]
src/social-stats/SocialStatsProvider.h [moved from src/statistics/social/SocialStatsProvider.h with 100% similarity]
src/statistics/CMakeLists.txt [deleted file]
src/system/Battery.cpp [moved from src/device/system/Battery.cpp with 99% similarity]
src/system/Battery.h [moved from src/device/system/Battery.h with 94% similarity]
src/system/Charger.cpp [moved from src/device/system/runtime_info/Charger.cpp with 98% similarity]
src/system/Charger.h [moved from src/device/system/runtime_info/Charger.h with 100% similarity]
src/system/Gps.cpp [moved from src/device/system/runtime_info/Gps.cpp with 98% similarity]
src/system/Gps.h [moved from src/device/system/runtime_info/Gps.h with 100% similarity]
src/system/Psmode.cpp [moved from src/device/system/Psmode.cpp with 98% similarity]
src/system/Psmode.h [moved from src/device/system/Psmode.h with 93% similarity]
src/system/RuntimeInfoBase.cpp [moved from src/device/system/runtime_info/RuntimeInfoBase.cpp with 100% similarity]
src/system/RuntimeInfoBase.h [moved from src/device/system/runtime_info/RuntimeInfoBase.h with 94% similarity]
src/system/Usb.cpp [moved from src/device/system/runtime_info/Usb.cpp with 98% similarity]
src/system/Usb.h [moved from src/device/system/runtime_info/Usb.h with 100% similarity]
src/time/Alarm.cpp [moved from src/device/system/Alarm.cpp with 99% similarity]
src/time/Alarm.h [moved from src/device/system/Alarm.h with 98% similarity]
src/time/Time.cpp [moved from src/device/system/Time.cpp with 98% similarity]
src/time/Time.h [moved from src/device/system/Time.h with 92% similarity]
src/wifi/Wifi.cpp [moved from src/device/system/Wifi.cpp with 99% similarity]
src/wifi/Wifi.h [moved from src/device/system/Wifi.h with 95% similarity]

index 913174a..2865cfa 100644 (file)
@@ -11,9 +11,6 @@ INCLUDE_DIRECTORIES(
 ADD_DEFINITIONS(-O2 -Wall -fPIC -fdata-sections -ffunction-sections -fvisibility=hidden)
 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fPIC -Wl,--as-needed -Wl,--gc-section -Wl,--print-gc-section")
 
-# Base Dependency
-SET(dependencies libcontext-server)
-
 # Profiles
 IF("${PROFILE}" STREQUAL "mobile")
        ADD_DEFINITIONS("-D_MOBILE_")
@@ -23,23 +20,70 @@ IF("${PROFILE}" STREQUAL "wearable")
        ADD_DEFINITIONS("-D_WEARABLE_")
 ENDIF("${PROFILE}" STREQUAL "wearable")
 
-IF("${PROFILE}" STREQUAL "tv")
-       ADD_DEFINITIONS("-D_TV_")
-ENDIF("${PROFILE}" STREQUAL "tv")
 
-# Include Sub-modules
-ADD_SUBDIRECTORY(src)
-MESSAGE("Compile definitions: ${compile_defs}")
+# Dependency & Source
+SET(DEPS
+       libcontext-server
+       vconf
+       capi-system-info
+       capi-system-device
+       capi-system-runtime-info
+       capi-appfw-package-manager
+       capi-appfw-application
+       capi-appfw-app-manager
+       pkgmgr
+       pkgmgr-info
+       capi-media-sound-manager
+       capi-network-bluetooth
+       capi-network-wifi
+       motion
+)
+
+FILE(GLOB SRCS
+       src/shared/*.cpp
+       src/time/*.cpp
+       src/activity/*.cpp
+       src/app-stats/*.cpp
+       src/headphone/*.cpp
+       src/system/*.cpp
+       src/wifi/*.cpp
+)
+
+IF("${PROFILE}" STREQUAL "mobile")
+SET(DEPS ${DEPS}
+       msg-service
+       contacts-service2
+       tapi
+       capi-telephony
+       capi-messaging-email
+       capi-content-media-content
+       capi-location-manager
+       capi-geofence-manager
+)
+
+FILE(GLOB SRCS ${SRCS}
+       src/call/*.cpp
+       src/contacts/*.cpp
+       src/email/*.cpp
+       src/geofence/*.cpp
+       src/media-stats/*.cpp
+       src/message/*.cpp
+       src/my-place/*.cpp
+       src/my-place/user_places/*.cpp
+       src/social-stats/*.cpp
+)
+ENDIF("${PROFILE}" STREQUAL "mobile")
+
 
 # Build
 INCLUDE(FindPkgConfig)
-PKG_CHECK_MODULES(DEPS REQUIRED ${dependencies})
+PKG_CHECK_MODULES(DEPS REQUIRED ${DEPS})
 
 FOREACH(flag ${DEPS_CFLAGS})
        SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
 ENDFOREACH(flag)
 
-ADD_LIBRARY(${target} STATIC ${sources})
+ADD_LIBRARY(${target} STATIC ${SRCS})
 TARGET_LINK_LIBRARIES(${target} ${DEPS_LDFLAGS})
 SET_TARGET_PROPERTIES(${target} PROPERTIES COMPILE_FLAGS ${EXTRA_CFLAGS})
 SET_TARGET_PROPERTIES(${target} PROPERTIES COMPILE_DEFINITIONS "${compile_defs}")
@@ -47,7 +91,7 @@ SET_TARGET_PROPERTIES(${target} PROPERTIES SOVERSION ${MAJORVER})
 SET_TARGET_PROPERTIES(${target} PROPERTIES VERSION ${FULLVER})
 
 # Package Config
-FOREACH(item IN LISTS dependencies)
+FOREACH(item IN LISTS DEPS)
        SET(deps_str "${deps_str} ${item}")
 ENDFOREACH(item)
 
@@ -74,4 +118,4 @@ INSTALL(
        FILES_MATCHING PATTERN "*.h"
 )
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
-INSTALL(TARGETS ${target} DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT RuntimeLibraries)
+INSTALL(TARGETS ${target} DESTINATION ${CMAKE_INSTALL_LIBDIR})
index 7068f1e..598eb65 100644 (file)
@@ -9,6 +9,10 @@ Source0:    %{name}-%{version}.tar.gz
 %define BUILD_PROFILE %{?profile}%{!?profile:%{?tizen_profile_name}}
 %define keepstatic 1
 
+%if "%{?BUILD_PROFILE}" == "tv"
+ExcludeArch: %{arm} aarch64 %ix86 x86_64
+%endif
+
 BuildRequires: cmake
 
 BuildRequires: pkgconfig(libcontext-server)
@@ -22,36 +26,21 @@ BuildRequires: pkgconfig(capi-appfw-app-manager)
 BuildRequires: pkgconfig(pkgmgr)
 BuildRequires: pkgconfig(pkgmgr-info)
 BuildRequires: pkgconfig(capi-media-sound-manager)
-
-%if "%{?BUILD_PROFILE}" == "mobile"
 BuildRequires: pkgconfig(capi-network-bluetooth)
 BuildRequires: pkgconfig(capi-network-wifi)
-BuildRequires: pkgconfig(capi-telephony)
-BuildRequires: pkgconfig(tapi)
-BuildRequires: pkgconfig(msg-service)
-BuildRequires: pkgconfig(capi-messaging-email)
 BuildRequires: pkgconfig(motion)
+
+%if "%{?BUILD_PROFILE}" == "mobile"
+BuildRequires: pkgconfig(msg-service)
 BuildRequires: pkgconfig(contacts-service2)
+BuildRequires: pkgconfig(tapi)
+BuildRequires: pkgconfig(capi-telephony)
+BuildRequires: pkgconfig(capi-messaging-email)
 BuildRequires: pkgconfig(capi-content-media-content)
 BuildRequires: pkgconfig(capi-location-manager)
 BuildRequires: pkgconfig(capi-geofence-manager)
 %endif
 
-%if "%{?BUILD_PROFILE}" == "wearable"
-BuildRequires: pkgconfig(capi-network-bluetooth)
-BuildRequires: pkgconfig(capi-network-wifi)
-BuildRequires: pkgconfig(capi-telephony)
-BuildRequires: pkgconfig(tapi)
-BuildRequires: pkgconfig(msg-service)
-BuildRequires: pkgconfig(motion)
-%endif
-
-%if "%{?BUILD_PROFILE}" == "tv"
-BuildRequires: pkgconfig(capi-network-bluetooth)
-BuildRequires: pkgconfig(capi-network-wifi)
-BuildRequires: pkgconfig(capi-content-media-content)
-%endif
-
 %description
 Context Provider
 
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
deleted file mode 100644 (file)
index 5926ed8..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-
-FUNCTION(add_provider prvd_name)
-       ADD_SUBDIRECTORY(${prvd_name})
-       GET_DIRECTORY_PROPERTY(srcs_subdir DIRECTORY ${prvd_name} DEFINITION prvd_srcs)
-       GET_DIRECTORY_PROPERTY(deps_subdir DIRECTORY ${prvd_name} DEFINITION prvd_deps)
-       GET_DIRECTORY_PROPERTY(cdef_subdir DIRECTORY ${prvd_name} DEFINITION prvd_cdef)
-       SET(srcs_collected ${srcs_collected} ${srcs_subdir} PARENT_SCOPE)
-       SET(deps_collected ${deps_collected} ${deps_subdir} PARENT_SCOPE)
-       SET(cdef_collected ${cdef_collected} ${cdef_subdir} PARENT_SCOPE)
-ENDFUNCTION(add_provider)
-
-
-add_provider(device)
-add_provider(statistics)
-add_provider(place)
-#add_provider(custom)
-
-
-LIST(REMOVE_DUPLICATES deps_collected)
-
-SET(sources ${sources} ${srcs_collected} PARENT_SCOPE)
-SET(dependencies ${dependencies} ${deps_collected} PARENT_SCOPE)
-SET(compile_defs ${compile_defs} ${cdef_collected} PARENT_SCOPE)
similarity index 98%
rename from src/device/activity/Activity.h
rename to src/activity/Activity.h
index f50b283..ab5be2e 100644 (file)
@@ -18,6 +18,7 @@
 #define _DEVICE_ACTIVITY_STATUS_H_
 
 #include "ActivityBase.h"
+#include "ActivityTypes.h"
 
 #define GENERATE_ACTIVITY_PROVIDER(actPrvd, actSubj, actType) \
        class actPrvd : public UserActivityBase { \
similarity index 97%
rename from src/device/activity/ActivityBase.h
rename to src/activity/ActivityBase.h
index ef68d58..56b709f 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <string>
 #include <activity_recognition.h>
-#include "../DeviceProviderBase.h"
+#include "../shared/DeviceProviderBase.h"
 
 namespace ctx {
 
similarity index 99%
rename from src/device/social/Call.cpp
rename to src/call/Call.cpp
index 460c281..a19a2b9 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#include "SocialTypes.h"
 #include "Call.h"
 
 #define TELEPHONY_NOTI_ID_CNT 8
similarity index 95%
rename from src/device/social/Call.h
rename to src/call/Call.h
index 02a4eaa..a53276f 100644 (file)
@@ -18,7 +18,8 @@
 #define _CONTEXT_SOCIAL_STATUS_CALL_H_
 
 #include <telephony.h>
-#include "../DeviceProviderBase.h"
+#include "../shared/SocialTypes.h"
+#include "../shared/DeviceProviderBase.h"
 
 namespace ctx {
 
similarity index 99%
rename from src/device/social/Contacts.cpp
rename to src/contacts/Contacts.cpp
index 55ff19a..42789a3 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#include "SocialTypes.h"
 #include "Contacts.h"
 
 #define MY_PROFILE_VIEW _contacts_my_profile._uri
similarity index 94%
rename from src/device/social/Contacts.h
rename to src/contacts/Contacts.h
index c5ced5a..28b68ce 100644 (file)
@@ -18,7 +18,8 @@
 #define _CONTEXT_SOCIAL_STATUS_CONTACTS_H_
 
 #include <contacts.h>
-#include "../DeviceProviderBase.h"
+#include "../shared/SocialTypes.h"
+#include "../shared/DeviceProviderBase.h"
 
 namespace ctx {
 
diff --git a/src/device/CMakeLists.txt b/src/device/CMakeLists.txt
deleted file mode 100644 (file)
index 16f436f..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-# prvd_cdef, prvd_deps, and prvd_srcs need to be set properly
-
-# Common Profile
-FILE(GLOB prvd_srcs ./*.cpp system/Alarm.cpp system/Time.cpp)
-SET(prvd_deps vconf capi-system-info capi-system-device capi-system-runtime-info)
-
-# Mobile Profile
-IF("${PROFILE}" STREQUAL "mobile")
-       SET(prvd_deps ${prvd_deps} capi-network-bluetooth capi-network-wifi contacts-service2)
-       SET(prvd_deps ${prvd_deps} capi-telephony tapi msg-service capi-messaging-email motion)
-       FILE(GLOB_RECURSE prvd_srcs ${prvd_srcs} activity/*.cpp)
-       FILE(GLOB_RECURSE prvd_srcs ${prvd_srcs} system/*.cpp)
-       FILE(GLOB_RECURSE prvd_srcs ${prvd_srcs} social/*.cpp)
-ENDIF("${PROFILE}" STREQUAL "mobile")
-
-# Wearable Profile
-IF("${PROFILE}" STREQUAL "wearable")
-       SET(prvd_deps ${prvd_deps} capi-network-bluetooth capi-network-wifi)
-       SET(prvd_deps ${prvd_deps} capi-telephony tapi msg-service motion)
-       FILE(GLOB_RECURSE prvd_srcs ${prvd_srcs} activity/*.cpp)
-       FILE(GLOB_RECURSE prvd_srcs ${prvd_srcs} system/*.cpp)
-       FILE(GLOB prvd_srcs ${prvd_srcs} social/Call.cpp social/Message.cpp)
-ENDIF("${PROFILE}" STREQUAL "wearable")
-
-# TV Profile
-IF("${PROFILE}" STREQUAL "tv")
-       SET(prvd_deps ${prvd_deps} capi-network-bluetooth capi-network-wifi)
-       FILE(GLOB prvd_srcs ${prvd_srcs} system/Headphone.cpp system/Wifi.cpp)
-ENDIF("${PROFILE}" STREQUAL "tv")
similarity index 98%
rename from src/device/social/Email.cpp
rename to src/email/Email.cpp
index e67729e..fbf5c8d 100644 (file)
@@ -15,7 +15,6 @@
  */
 
 #include <email-api-etc.h>
-#include "SocialTypes.h"
 #include "Email.h"
 
 using namespace ctx;
similarity index 93%
rename from src/device/social/Email.h
rename to src/email/Email.h
index cf44ae7..b78eb33 100644 (file)
@@ -18,7 +18,8 @@
 #define _CONTEXT_SOCIAL_STATUS_EMAIL_H_
 
 #include <DBusSignalWatcher.h>
-#include "../DeviceProviderBase.h"
+#include "../shared/SocialTypes.h"
+#include "../shared/DeviceProviderBase.h"
 
 namespace ctx {
 
similarity index 99%
rename from src/device/system/Headphone.cpp
rename to src/headphone/Headphone.cpp
index 0093af9..3ee6dfa 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#include "SystemTypes.h"
 #include "Headphone.h"
 
 #define HANDLING_DELAY 2000
similarity index 90%
rename from src/device/system/Headphone.h
rename to src/headphone/Headphone.h
index 00edcfd..2fdd780 100644 (file)
  * limitations under the License.
  */
 
-#ifndef _DEVICE_SYSTEM_STATUS_HEADPHONE_H_
-#define _DEVICE_STATUS_HEADPNOHE_H_
+#ifndef _CONTEXT_HEADPHONE_H_
+#define _CONTEXT_HEADPNOHE_H_
 
 #include <glib.h>
 #include <runtime_info.h>
 #include <bluetooth.h>
-#include "../DeviceProviderBase.h"
+#include "../shared/SystemTypes.h"
+#include "../shared/DeviceProviderBase.h"
 
 namespace ctx {
 
@@ -60,4 +61,4 @@ namespace ctx {
        };
 }
 
-#endif // _DEVICE_SYSTEM_STATUS_HEADPHONE_H_
+#endif // _CONTEXT_HEADPHONE_H_
similarity index 99%
rename from src/device/social/Message.cpp
rename to src/message/Message.cpp
index f55b3e6..9316806 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#include "SocialTypes.h"
 #include "Message.h"
 
 #define MAX_ADDR_SIZE 20
similarity index 94%
rename from src/device/social/Message.h
rename to src/message/Message.h
index 78d006b..79e489a 100644 (file)
@@ -19,7 +19,8 @@
 
 #include <msg.h>
 #include <msg_transport.h>
-#include "../DeviceProviderBase.h"
+#include "../shared/SocialTypes.h"
+#include "../shared/DeviceProviderBase.h"
 
 namespace ctx {
 
diff --git a/src/place/CMakeLists.txt b/src/place/CMakeLists.txt
deleted file mode 100644 (file)
index 1db79f7..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-# prvd_cdef, prvd_deps, and prvd_srcs need to be set properly
-
-# Build flag for the place auto detection engine.
-# Set this to "yes" to enable the engine.
-SET(enable_recog_engine "no")
-
-# Common Profile
-FILE(GLOB prvd_srcs *.cpp)
-
-# Mobile Profile
-IF("${PROFILE}" STREQUAL "mobile")
-       FILE(GLOB_RECURSE prvd_srcs ${prvd_srcs} geofence/*.cpp)
-       SET(prvd_deps ${prvd_deps} capi-geofence-manager)
-       IF("${enable_recog_engine}" STREQUAL "yes")
-               FILE(GLOB_RECURSE prvd_srcs ${prvd_srcs} recognition/*.cpp)
-               SET(prvd_deps ${prvd_deps} capi-location-manager)
-               SET(prvd_deps ${prvd_deps} capi-network-wifi)
-       ELSE("${enable_recog_engine}" STREQUAL "yes")
-               SET(prvd_cdef ${prvd_cdef} _DISABLE_RECOG_ENGINE_)
-       ENDIF("${enable_recog_engine}" STREQUAL "yes")
-ENDIF("${PROFILE}" STREQUAL "mobile")
similarity index 58%
rename from src/device/DeviceContextProvider.cpp
rename to src/shared/DeviceContextProvider.cpp
index 332efdc..5ff533d 100644 (file)
  * limitations under the License.
  */
 
-#include <Types.h>
-#include <ContextProvider.h>
+#include <new>
 #include <DeviceContextProvider.h>
 
-#include "system/SystemTypes.h"
-#include "social/SocialTypes.h"
-#include "activity/ActivityTypes.h"
-
-#include "system/Alarm.h"
-#include "system/Time.h"
+#include "../time/Alarm.h"
+#include "../time/Time.h"
+#include "../activity/Activity.h"
+#include "../headphone/Headphone.h"
+#include "../system/Battery.h"
+#include "../system/Charger.h"
+#include "../system/Gps.h"
+#include "../system/Psmode.h"
+#include "../system/Usb.h"
+#include "../wifi/Wifi.h"
 
 #ifdef _MOBILE_
-#include "system/runtime_info/Charger.h"
-#include "system/runtime_info/Gps.h"
-#include "system/runtime_info/Usb.h"
-#include "system/Wifi.h"
-#include "system/Headphone.h"
-#include "system/Battery.h"
-#include "system/Psmode.h"
-#include "social/Call.h"
-#include "social/Email.h"
-#include "social/Message.h"
-#include "social/Contacts.h"
-#include "activity/Activity.h"
-#endif
-
-#ifdef _WEARABLE_
-#include "system/runtime_info/Charger.h"
-#include "system/runtime_info/Gps.h"
-#include "system/runtime_info/Usb.h"
-#include "system/Wifi.h"
-#include "system/Headphone.h"
-#include "system/Battery.h"
-#include "system/Psmode.h"
-#include "social/Call.h"
-#include "social/Message.h"
-#include "activity/Activity.h"
+#include "../call/Call.h"
+#include "../contacts/Contacts.h"
+#include "../email/Email.h"
+#include "../message/Message.h"
 #endif
 
 #define PRIV_NETWORK   "network.get"
@@ -78,7 +60,6 @@ SO_EXPORT bool ctx::initDeviceContextProvider()
        registerProvider<DeviceStatusAlarm>(DEVICE_ST_SUBJ_ALARM, NULL);
        registerProvider<DeviceStatusTime>(DEVICE_ST_SUBJ_TIME, NULL);
 
-#ifdef _MOBILE_
        registerProvider<DeviceStatusWifi>(DEVICE_ST_SUBJ_WIFI, PRIV_NETWORK);
        registerProvider<DeviceStatusHeadphone>(DEVICE_ST_SUBJ_HEADPHONE, NULL);
 
@@ -88,16 +69,17 @@ SO_EXPORT bool ctx::initDeviceContextProvider()
        registerProvider<DeviceStatusBattery>(DEVICE_ST_SUBJ_BATTERY, NULL);
        registerProvider<DeviceStatusPsmode>(DEVICE_ST_SUBJ_PSMODE, NULL);
 
-       registerProvider<SocialStatusCall>(SOCIAL_ST_SUBJ_CALL, PRIV_TELEPHONY);
-       registerProvider<SocialStatusEmail>(SOCIAL_ST_SUBJ_EMAIL, NULL);
-       registerProvider<SocialStatusMessage>(SOCIAL_ST_SUBJ_MESSAGE, PRIV_MESSAGE);
-       registerProvider<SocialStatusContacts>(SOCIAL_ST_SUBJ_CONTACTS, PRIV_CONTACT);
-
        registerProvider<UserActivityStationary>(USER_ACT_SUBJ_STATIONARY, NULL);
        registerProvider<UserActivityWalking>(USER_ACT_SUBJ_WALKING, NULL);
        registerProvider<UserActivityRunning>(USER_ACT_SUBJ_RUNNING, NULL);
        registerProvider<UserActivityInVehicle>(USER_ACT_SUBJ_IN_VEHICLE, NULL);
 
+#ifdef _MOBILE_
+       registerProvider<SocialStatusCall>(SOCIAL_ST_SUBJ_CALL, PRIV_TELEPHONY);
+       registerProvider<SocialStatusEmail>(SOCIAL_ST_SUBJ_EMAIL, NULL);
+       registerProvider<SocialStatusMessage>(SOCIAL_ST_SUBJ_MESSAGE, PRIV_MESSAGE);
+       registerProvider<SocialStatusContacts>(SOCIAL_ST_SUBJ_CONTACTS, PRIV_CONTACT);
+
        /* Create context providers, which need to be initiated before being subscribed */
        /*
        if (DeviceStatusWifi::isSupported())
@@ -105,24 +87,5 @@ SO_EXPORT bool ctx::initDeviceContextProvider()
        */
 #endif
 
-#ifdef _WEARABLE_
-       registerProvider<DeviceStatusWifi>(DEVICE_ST_SUBJ_WIFI, PRIV_NETWORK);
-       registerProvider<DeviceStatusHeadphone>(DEVICE_ST_SUBJ_HEADPHONE, NULL);
-
-       registerProvider<DeviceStatusCharger>(DEVICE_ST_SUBJ_CHARGER, NULL);
-       registerProvider<DeviceStatusGps>(DEVICE_ST_SUBJ_GPS, NULL);
-       registerProvider<DeviceStatusUsb>(DEVICE_ST_SUBJ_USB, NULL);
-       registerProvider<DeviceStatusBattery>(DEVICE_ST_SUBJ_BATTERY, NULL);
-       registerProvider<DeviceStatusPsmode>(DEVICE_ST_SUBJ_PSMODE, NULL);
-
-       registerProvider<SocialStatusCall>(SOCIAL_ST_SUBJ_CALL, PRIV_TELEPHONY);
-       registerProvider<SocialStatusMessage>(SOCIAL_ST_SUBJ_MESSAGE, PRIV_MESSAGE);
-
-       registerProvider<UserActivityStationary>(USER_ACT_SUBJ_STATIONARY, NULL);
-       registerProvider<UserActivityWalking>(USER_ACT_SUBJ_WALKING, NULL);
-       registerProvider<UserActivityRunning>(USER_ACT_SUBJ_RUNNING, NULL);
-       registerProvider<UserActivityInVehicle>(USER_ACT_SUBJ_IN_VEHICLE, NULL);
-#endif
-
        return true;
 }
similarity index 85%
rename from src/place/PlaceContextProvider.cpp
rename to src/shared/PlaceContextProvider.cpp
index 349000a..eba5ff0 100644 (file)
  * limitations under the License.
  */
 
+#include <new>
 #include <Types.h>
 #include <PlaceContextProvider.h>
 
 #ifdef _MOBILE_
-#include "geofence/PlaceGeofenceProvider.h"
-#ifndef _DISABLE_RECOG_ENGINE_
-#include "recognition/place_recognition.h"
-#endif /* _DISABLE_RECOG_ENGINE_ */
+#include "../geofence/PlaceGeofenceProvider.h"
+#include "../my-place/place_recognition.h"
 #endif /* _MOBILE_ */
 
 template<typename Provider>
@@ -44,9 +43,9 @@ SO_EXPORT bool ctx::initPlaceContextProvider()
 #ifdef _MOBILE_
        registerProvider<PlaceGeofenceProvider>(PLACE_SUBJ_GEOFENCE, PLACE_PRIV_GEOFENCE);
 
-#ifndef _DISABLE_RECOG_ENGINE_
+       /*
        registerProvider<PlaceRecognitionProvider>(PLACE_SUBJ_RECOGNITION, PLACE_PRIV_RECOGNITION);
-#endif /* _DISABLE_RECOG_ENGINE_ */
+       */
 
 #endif /* _MOBILE_ */
        return true;
similarity index 85%
rename from src/statistics/StatisticsContextProvider.cpp
rename to src/shared/StatisticsContextProvider.cpp
index 0dba666..cfaf008 100644 (file)
  * limitations under the License.
  */
 
-#include <Types.h>
-#include <ContextProvider.h>
+#include <new>
 #include <StatisticsContextProvider.h>
 
-#include "app/AppStatsProvider.h"
-#include "app/AppStatsLogger.h"
-
-#ifndef _DISABLE_PREDICTION_ENGINE_
-// include prediction engine header files here
-#endif
+#include "../app-stats/AppStatsProvider.h"
+#include "../app-stats/AppStatsLogger.h"
 
 #ifdef _MOBILE_
-#include "media/MediaStatsProvider.h"
-#include "media/MediaStatsLogger.h"
-#include "social/SocialStatsProvider.h"
-#include "social/SocialStatsLogger.h"
+#include "../media-stats/MediaStatsProvider.h"
+#include "../media-stats/MediaStatsLogger.h"
+#include "../social-stats/SocialStatsProvider.h"
+#include "../social-stats/SocialStatsLogger.h"
 #endif
 
 template<typename Provider>
@@ -56,10 +51,6 @@ SO_EXPORT bool ctx::initStatisticsContextProvider()
        registerProvider<AppSettingProvider>(APP_SUBJ_COMMON_SETTING, APP_HISTORY_PRIV);
        registerProvider<AppFreqProvider>(APP_SUBJ_FREQUENCY, APP_HISTORY_PRIV);
 
-#ifndef _DISABLE_PREDICTION_ENGINE_
-// initialize the prediction engine here
-#endif
-
 #ifdef _MOBILE_
        registerProvider<MediaStatsLogger>(MEDIA_SUBJ_LOGGER, MEDIA_HISTORY_PRIV);
        registerProvider<MusicPeakTimeProvider>(MEDIA_SUBJ_PEAK_TIME_FOR_MUSIC, MEDIA_HISTORY_PRIV);
diff --git a/src/statistics/CMakeLists.txt b/src/statistics/CMakeLists.txt
deleted file mode 100644 (file)
index 6b35770..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-# prvd_cdef, prvd_deps, and prvd_srcs need to be set properly
-
-# Build flag for the prediction engine.
-# Set this to "yes" to enable the engine.
-SET(enable_prediction_engine "no")
-
-# Common Profile
-FILE(GLOB prvd_srcs ./*.cpp)
-FILE(GLOB prvd_srcs ${prvd_srcs} shared/*.cpp)
-FILE(GLOB prvd_srcs ${prvd_srcs} app/*.cpp)
-IF("${enable_prediction_engine}" STREQUAL "yes")
-       FILE(GLOB prvd_srcs ${prvd_srcs} prediction/*.cpp)
-ELSE("${enable_prediction_engine}" STREQUAL "yes")
-       SET(prvd_cdef ${prvd_cdef} _DISABLE_PREDICTION_ENGINE_)
-ENDIF("${enable_prediction_engine}" STREQUAL "yes")
-
-SET(prvd_deps capi-system-runtime-info pkgmgr pkgmgr-info capi-appfw-package-manager)
-SET(prvd_deps ${prvd_deps} capi-appfw-application capi-appfw-app-manager)
-SET(prvd_deps ${prvd_deps} capi-media-sound-manager)
-
-# Mobile Profile
-IF("${PROFILE}" STREQUAL "mobile")
-       FILE(GLOB prvd_srcs ${prvd_srcs} media/*.cpp)
-       FILE(GLOB prvd_srcs ${prvd_srcs} social/*.cpp)
-       SET(prvd_deps ${prvd_deps} contacts-service2 capi-content-media-content)
-ENDIF("${PROFILE}" STREQUAL "mobile")
-
-# Wearable Profile
-#IF("${PROFILE}" STREQUAL "wearable")
-#ENDIF("${PROFILE}" STREQUAL "wearable")
similarity index 99%
rename from src/device/system/Battery.cpp
rename to src/system/Battery.cpp
index 94c3d58..69b1ecd 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#include "SystemTypes.h"
 #include "Battery.h"
 
 using namespace ctx;
similarity index 94%
rename from src/device/system/Battery.h
rename to src/system/Battery.h
index d016798..34482b4 100644 (file)
@@ -19,7 +19,8 @@
 
 #include <device/callback.h>
 #include <device/battery.h>
-#include "../DeviceProviderBase.h"
+#include "../shared/SystemTypes.h"
+#include "../shared/DeviceProviderBase.h"
 
 namespace ctx {
 
similarity index 98%
rename from src/device/system/runtime_info/Charger.cpp
rename to src/system/Charger.cpp
index 8cdf40a..5703747 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#include "../SystemTypes.h"
 #include "Charger.h"
 
 using namespace ctx;
similarity index 98%
rename from src/device/system/runtime_info/Gps.cpp
rename to src/system/Gps.cpp
index d2bc301..9b6d083 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#include "../SystemTypes.h"
 #include "Gps.h"
 
 using namespace ctx;
similarity index 98%
rename from src/device/system/Psmode.cpp
rename to src/system/Psmode.cpp
index c52b176..c7d61d7 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#include "SystemTypes.h"
 #include "Psmode.h"
 
 using namespace ctx;
similarity index 93%
rename from src/device/system/Psmode.h
rename to src/system/Psmode.h
index d324ac3..0cbe3cb 100644 (file)
@@ -18,7 +18,8 @@
 #define _DEVICE_SYSTEM_STATUS_POWER_SAVING_MODE_H_
 
 #include <vconf.h>
-#include "../DeviceProviderBase.h"
+#include "../shared/SystemTypes.h"
+#include "../shared/DeviceProviderBase.h"
 
 namespace ctx {
 
similarity index 94%
rename from src/device/system/runtime_info/RuntimeInfoBase.h
rename to src/system/RuntimeInfoBase.h
index a2e4a88..7d8f6ee 100644 (file)
@@ -18,7 +18,8 @@
 #define _DEVICE_SYSTEM_STATUS_RUNTIME_INFO_BASE_H_
 
 #include <runtime_info.h>
-#include "../../DeviceProviderBase.h"
+#include "../shared/SystemTypes.h"
+#include "../shared/DeviceProviderBase.h"
 
 namespace ctx {
 
similarity index 98%
rename from src/device/system/runtime_info/Usb.cpp
rename to src/system/Usb.cpp
index e0aa6af..c94edf7 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#include "../SystemTypes.h"
 #include "Usb.h"
 
 using namespace ctx;
similarity index 99%
rename from src/device/system/Alarm.cpp
rename to src/time/Alarm.cpp
index edc7bad..26bac0b 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#include "SystemTypes.h"
 #include "Alarm.h"
 
 using namespace ctx;
similarity index 98%
rename from src/device/system/Alarm.h
rename to src/time/Alarm.h
index 5535e5c..797e62f 100644 (file)
@@ -21,6 +21,7 @@
 #include <set>
 #include <TimerManager.h>
 #include <ContextProvider.h>
+#include "../shared/SystemTypes.h"
 
 namespace ctx {
 
similarity index 98%
rename from src/device/system/Time.cpp
rename to src/time/Time.cpp
index 6fa0c81..73f3f37 100644 (file)
@@ -15,7 +15,6 @@
  */
 
 #include <TimerManager.h>
-#include "SystemTypes.h"
 #include "Time.h"
 
 using namespace ctx;
similarity index 92%
rename from src/device/system/Time.h
rename to src/time/Time.h
index e5e1112..48e2202 100644 (file)
@@ -17,7 +17,8 @@
 #ifndef _DEVICE_SYSTEM_STATUS_TIME_H_
 #define _DEVICE_SYSTEM_STATUS_TIME_H_
 
-#include "../DeviceProviderBase.h"
+#include "../shared/DeviceProviderBase.h"
+#include "../shared/SystemTypes.h"
 
 namespace ctx {
 
similarity index 99%
rename from src/device/system/Wifi.cpp
rename to src/wifi/Wifi.cpp
index 5f6cca7..8de9fa4 100644 (file)
@@ -15,7 +15,6 @@
  */
 
 #include <SharedVars.h>
-#include "SystemTypes.h"
 #include "Wifi.h"
 
 using namespace ctx;
similarity index 95%
rename from src/device/system/Wifi.h
rename to src/wifi/Wifi.h
index 82cebb2..2c5cee6 100644 (file)
@@ -19,7 +19,8 @@
 
 #include <string>
 #include <wifi.h>
-#include "../DeviceProviderBase.h"
+#include "../shared/DeviceProviderBase.h"
+#include "../shared/SystemTypes.h"
 
 namespace ctx {