* limitations under the License.
*/
-#ifndef __CONTEXT_CUSTOM_CONTEXT_PROVIDER_H__
-#define __CONTEXT_CUSTOM_CONTEXT_PROVIDER_H__
+#ifndef _CONTEXT_CUSTOM_CONTEXT_PROVIDER_H_
+#define _CONTEXT_CUSTOM_CONTEXT_PROVIDER_H_
namespace ctx {
- bool init_custom_context_provider();
+
+ bool initCustomContextProvider();
namespace custom_context_provider {
- int addItem(std::string subject, std::string name, ctx::Json tmpl, const char* owner, bool is_init = false);
- int removeItem(std::string subject);
- int publishData(std::string subject, ctx::Json fact);
- ContextProviderBase* create(void* data);
- void destroy(void* data);
- }
-}
+ int addItem(std::string subject, std::string name, ctx::Json tmpl, const char* owner, bool isInit = false);
+ int removeItem(std::string subject);
+ int publishData(std::string subject, ctx::Json fact);
+
+ ContextProviderBase* create(void* data);
+ void destroy(void* data);
+
+ } /* namespace custom_context_provider */
+
+} /* namespace ctx */
-#endif //__CONTEXT_CUSTOM_CONTEXT_PROVIDER_H__
+#endif /* End of _CONTEXT_CUSTOM_CONTEXT_PROVIDER_H_ */
* limitations under the License.
*/
-#ifndef __CONTEXT_PLACE_CONTEXT_PROVIDER_H__
-#define __CONTEXT_PLACE_CONTEXT_PROVIDER_H__
+#ifndef _CONTEXT_DEVICE_CONTEXT_PROVIDER_H_
+#define _CONTEXT_DEVICE_CONTEXT_PROVIDER_H_
namespace ctx {
- bool init_place_context_provider();
-}
-#endif /* __CONTEXT_PLACE_CONTEXT_PROVIDER_H__ */
+ bool initDeviceContextProvider();
+
+} /* namespace ctx */
+
+#endif /* End of _CONTEXT_DEVICE_CONTEXT_PROVIDER_H_ */
* limitations under the License.
*/
-#ifndef __CONTEXT_DEVICE_CONTEXT_PROVIDER_H__
-#define __CONTEXT_DEVICE_CONTEXT_PROVIDER_H__
+#ifndef _CONTEXT_PLACE_CONTEXT_PROVIDER_H_
+#define _CONTEXT_PLACE_CONTEXT_PROVIDER_H_
namespace ctx {
- bool init_device_context_provider();
-}
-#endif //__CONTEXT_DEVICE_CONTEXT_PROVIDER_H__
+ bool initPlaceContextProvider();
+
+} /* namespace ctx */
+
+#endif /* End of _CONTEXT_PLACE_CONTEXT_PROVIDER_H_ */
* limitations under the License.
*/
-#ifndef __CONTEXT_STATISTICS_CONTEXT_PROVIDER_H__
-#define __CONTEXT_STATISTICS_CONTEXT_PROVIDER_H__
+#ifndef _CONTEXT_STATISTICS_CONTEXT_PROVIDER_H_
+#define _CONTEXT_STATISTICS_CONTEXT_PROVIDER_H_
namespace ctx {
- bool init_statistics_context_provider();
-}
-#endif /* __CONTEXT_STATISTICS_CONTEXT_PROVIDER_H__ */
+ bool initStatisticsContextProvider();
+
+} /* namespace ctx */
+
+#endif /* End of _CONTEXT_STATISTICS_CONTEXT_PROVIDER_H_ */
#include <ContextManager.h>
#include <ContextProviderBase.h>
#include <db_mgr.h>
-#include <custom_context_provider.h>
+#include <CustomContextProvider.h>
#include "custom_base.h"
std::map<std::string, ctx::custom_base*> custom_map;
}
}
-EXTAPI bool ctx::init_custom_context_provider()
+EXTAPI bool ctx::initCustomContextProvider()
{
// Create custom template db
std::string q = std::string("CREATE TABLE IF NOT EXISTS context_trigger_custom_template ")
#include <types_internal.h>
#include <ContextManager.h>
#include <ContextProviderBase.h>
-#include <device_context_provider.h>
+#include <DeviceContextProvider.h>
#include "system/system_types.h"
#include "social/social_types.h"
provider::submit_trigger_item();
}
-EXTAPI bool ctx::init_device_context_provider()
+EXTAPI bool ctx::initDeviceContextProvider()
{
registerProvider<device_status_alarm>(DEVICE_ST_SUBJ_ALARM, NULL);
registerProvider<device_status_time>(DEVICE_ST_SUBJ_TIME, NULL);
#include <types_internal.h>
#include <ContextManager.h>
#include <ContextProviderBase.h>
-#include <place_context_provider.h>
+#include <PlaceContextProvider.h>
#ifdef _MOBILE_
#include "geofence/place_geofence.h"
ctx::context_manager::registerProvider(subject, providerInfo);
}
-EXTAPI bool ctx::init_place_context_provider()
+EXTAPI bool ctx::initPlaceContextProvider()
{
#ifdef _MOBILE_
registerProvider<place_geofence_provider>(PLACE_SUBJ_GEOFENCE, PLACE_PRIV_GEOFENCE);
#include <types_internal.h>
#include <ContextManager.h>
#include <ContextProviderBase.h>
-#include <statistics_context_provider.h>
+#include <StatisticsContextProvider.h>
#include "app/app_stats_provider.h"
ctx::context_manager::registerProvider(subject, providerInfo);
}
-EXTAPI bool ctx::init_statistics_context_provider()
+EXTAPI bool ctx::initStatisticsContextProvider()
{
app_statistics_provider::create(NULL);
registerProvider<app_statistics_provider>(APP_SUBJ_RECENTLY_USED, APP_HISTORY_PRIV);