2 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef _CONTEXT_APP_STATS_PROVIDER_H_
18 #define _CONTEXT_APP_STATS_PROVIDER_H_
20 #include <ContextProvider.h>
21 #include "AppStatisticsTypes.h"
25 class AppStatsProvider : public ContextProvider {
27 int read(Json option, Json *requestResult);
28 void getPrivilege(std::vector<const char*> &privilege);
31 AppStatsProvider(const char *subject);
32 virtual ~AppStatsProvider();
36 class RecentAppProvider : public AppStatsProvider {
39 AppStatsProvider(APP_SUBJ_RECENTLY_USED) {}
43 class FrequentAppProvider : public AppStatsProvider {
45 FrequentAppProvider() :
46 AppStatsProvider(APP_SUBJ_FREQUENTLY_USED) {}
50 class RareAppProvider : public AppStatsProvider {
53 AppStatsProvider(APP_SUBJ_RARELY_USED) {}
57 class AppPeakTimeProvider : public AppStatsProvider {
59 AppPeakTimeProvider() :
60 AppStatsProvider(APP_SUBJ_PEAK_TIME) {}
64 class AppSettingProvider : public AppStatsProvider {
66 AppSettingProvider() :
67 AppStatsProvider(APP_SUBJ_COMMON_SETTING) {}
71 class AppFreqProvider : public AppStatsProvider {
74 AppStatsProvider(APP_SUBJ_FREQUENCY) {}
79 #endif /* _CONTEXT_APP_STATS_PROVIDER_H_ */