delete __launchMon;
}
+void AppStatsLogger::getPrivilege(std::vector<const char*> &privilege)
+{
+ privilege.push_back(PRIV_APP_HISTORY);
+}
+
int AppStatsLogger::subscribe(Json option, Json* requestResult)
{
return ERR_NONE;
int subscribe(Json option, Json *requestResult);
int unsubscribe(Json option);
+ void getPrivilege(std::vector<const char*> &privilege);
+
private:
AppDbInitializer *__initializer;
AppInstallMonitor *__installMon;
{
}
+void AppStatsProvider::getPrivilege(std::vector<const char*> &privilege)
+{
+ privilege.push_back(PRIV_APP_HISTORY);
+}
+
int AppStatsProvider::read(Json option, Json *requestResult)
{
AppDbHandle *handle = new(std::nothrow) AppDbHandle(this);
class AppStatsProvider : public ContextProvider {
public:
int read(Json option, Json *requestResult);
+ void getPrivilege(std::vector<const char*> &privilege);
protected:
AppStatsProvider(const char *subject);
{
}
+void CallStateProvider::getPrivilege(std::vector<const char*> &privilege)
+{
+ privilege.push_back(PRIV_TELEPHONY);
+}
+
bool CallStateProvider::isSupported()
{
return util::getSystemInfoBool("tizen.org/feature/network.telephony");
int read();
bool isSupported();
+ void getPrivilege(std::vector<const char*> &privilege);
private:
telephony_handle_list_s __handleList;
{
}
+void ContactsChangeProvider::getPrivilege(std::vector<const char*> &privilege)
+{
+ privilege.push_back(PRIV_CONTACT);
+}
+
bool ContactsChangeProvider::isSupported()
{
return true;
int unsubscribe();
bool isSupported();
+ void getPrivilege(std::vector<const char*> &privilege);
private:
time_t __latestMyProfile;
__handleMap.clear();
}
+void PlaceGeofenceProvider::getPrivilege(std::vector<const char*> &privilege)
+{
+ privilege.push_back(PRIV_LOCATION);
+}
+
bool PlaceGeofenceProvider::isSupported()
{
bool supported = false;
int unsubscribe(Json option);
bool isSupported();
+ void getPrivilege(std::vector<const char*> &privilege);
private:
std::map<int, GeofenceMonitorHandle*> __handleMap;
{
}
+void MediaStatsLogger::getPrivilege(std::vector<const char*> &privilege)
+{
+ privilege.push_back(PRIV_MEDIA_HISTORY);
+}
+
int MediaStatsLogger::subscribe(Json option, Json* requestResult)
{
return ERR_NONE;
int subscribe(Json option, Json *requestResult);
int unsubscribe(Json option);
+ void getPrivilege(std::vector<const char*> &privilege);
private:
MediaContentMonitor __contentMon;
{
}
+void MediaStatsProvider::getPrivilege(std::vector<const char*> &privilege)
+{
+ privilege.push_back(PRIV_MEDIA_HISTORY);
+}
+
bool MediaStatsProvider::isSupported()
{
/* TODO */
public:
int read(Json option, Json* requestResult);
bool isSupported();
+ void getPrivilege(std::vector<const char*> &privilege);
protected:
MediaStatsProvider(const char *subject);
{
}
+void MessageEventProvider::getPrivilege(std::vector<const char*> &privilege)
+{
+ privilege.push_back(PRIV_MESSAGE);
+}
+
bool MessageEventProvider::isSupported()
{
return util::getSystemInfoBool("tizen.org/feature/network.telephony");
int subscribe();
int unsubscribe();
bool isSupported();
+ void getPrivilege(std::vector<const char*> &privilege);
private:
msg_handle_t __messageHandle;
#include "place_recognition.h"
#include "user_places/user_places.h"
+void ctx::PlaceRecognitionProvider::getPrivilege(std::vector<const char*> &privilege)
+{
+ privilege.push_back(PRIV_LOCATION);
+ privilege.push_back(PRIV_NETWORK);
+}
+
int ctx::PlaceRecognitionProvider::subscribe(ctx::Json option, ctx::Json* requestResult)
{
return ERR_NOT_SUPPORTED;
int write(ctx::Json data, ctx::Json *requestResult);
bool isSupported();
+ void getPrivilege(std::vector<const char*> &privilege);
private:
UserPlaces __engine;
{
}
+void SocialStatsLogger::getPrivilege(std::vector<const char*> &privilege)
+{
+ privilege.push_back(PRIV_CALL_HISTORY);
+}
+
int SocialStatsLogger::subscribe(Json option, Json* requestResult)
{
return ERR_NONE;
int subscribe(Json option, Json* requestResult);
int unsubscribe(Json option);
+ void getPrivilege(std::vector<const char*> &privilege);
private:
ContactLogAggregator __aggregator;
{
}
+void SocialStatsProvider::getPrivilege(std::vector<const char*> &privilege)
+{
+ privilege.push_back(PRIV_CALL_HISTORY);
+}
+
bool SocialStatsProvider::isSupported()
{
/* TODO */
public:
int read(Json option, Json* requestResult);
bool isSupported();
+ void getPrivilege(std::vector<const char*> &privilege);
protected:
SocialStatsProvider(const char *subject);
__optionSet.clear();
}
+void AlarmProvider::getPrivilege(std::vector<const char*> &privilege)
+{
+ privilege.push_back(PRIV_ALARM);
+}
+
bool AlarmProvider::isSupported()
{
return true;
int unsubscribe(Json option);
bool isSupported();
+ void getPrivilege(std::vector<const char*> &privilege);
protected:
bool onTimerExpired(int timerId);
__stopMonitor();
}
+void WifiStateProvider::getPrivilege(std::vector<const char*> &privilege)
+{
+ privilege.push_back(PRIV_NETWORK);
+}
+
bool WifiStateProvider::isSupported()
{
return util::getSystemInfoBool("tizen.org/feature/network.wifi");
int read();
bool isSupported();
+ void getPrivilege(std::vector<const char*> &privilege);
private:
enum InternalState {