2 * Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved
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 COMMON_APP_EVENT_ARGS_HH_
18 #define COMMON_APP_EVENT_ARGS_HH_
24 #include "common/event_type.hh"
25 #include "common/metadata.hh"
31 AppEventArgs(std::string appid, std::string pkgid, EventType event_type)
32 : appid_(std::move(appid)),
33 pkgid_(std::move(pkgid)),
34 event_type_(event_type) {
37 virtual ~AppEventArgs() = default;
39 const std::string& GetAppId() {
43 const std::string& GetPkgId() {
47 EventType GetEventType() const {
51 const std::list<std::unique_ptr<Metadata>>& GetMetadataList() {
55 void AddMetadata(std::unique_ptr<Metadata> metadata) {
56 list_.push_back(std::move(metadata));
62 EventType event_type_;
63 std::list<std::unique_ptr<Metadata>> list_;
68 #endif // COMMON_APP_EVENT_ARGS_HH_