Fix Metadata Plugin Parser
[platform/core/appfw/aul-1.git] / parser / metadata / allowed-appid / allowed_info.hh
1 /*
2  * Copyright (c) 2020 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 ALLOWED_APPID_ALLOWED_INFO_HH_
18 #define ALLOWED_APPID_ALLOWED_INFO_HH_
19
20 #include <memory>
21 #include <string>
22
23 namespace plugin {
24
25 class AllowedInfo {
26  public:
27   AllowedInfo(std::string appid, std::string allowed_appid)
28     : appid_(std::move(appid)), allowed_appid_(std::move(allowed_appid)) {
29   }
30
31   virtual ~AllowedInfo() = default;
32
33   const std::string& GetAppId() const {
34     return appid_;
35   }
36
37   const std::string& GetAllowedAppId() const {
38     return allowed_appid_;
39   }
40
41  private:
42   std::string appid_;
43   std::string allowed_appid_;
44 };
45
46 }  // namespace plugin
47
48 #endif  // ALLOWED_APPID_ALLOWED_INFO_HH_