Add package paremeter to application filter
[platform/core/appfw/pkgmgr-info.git] / src / server / filter_checker / app_filter_checker / category_app_filter_checker.hh
1 /*
2  * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 #ifndef CATEGORY_APP_FILTER_CHECKER_HH_
18 #define CATEGORY_APP_FILTER_CHECKER_HH_
19
20 #include "app_filter_checker_base.hh"
21
22 #include "pkgmgrinfo_basic.h"
23 #include "pkgmgrinfo_private.h"
24
25 namespace pkgmgr_server {
26 namespace database {
27
28 class CategoryAppFilterChecker: public IAppFilterChecker {
29  public:
30   CategoryAppFilterChecker() = default;
31   ~CategoryAppFilterChecker() = default;
32   bool CheckFilter(pkgmgrinfo_node_x* node,
33       application_x* app_info, package_x* pkg_info) override;
34 };
35
36 }  // namespace database
37 }  // namespace pkgmgr_server
38
39 #endif  // CATEGORY_APP_FILTER_CHECKER_HH_