2 * Copyright (c) 2023 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 #include "pkgmgr_event_args.hh"
21 PkgmgrEventArgs::PkgmgrEventArgs(uid_t target_uid, int req_id,
22 std::string pkg_type, std::string pkgid, std::string event_status,
23 std::string event_name)
24 : target_uid_(target_uid),
26 pkg_type_(std::move(pkg_type)),
27 pkgid_(std::move(pkgid)),
28 event_status_(std::move(event_status)),
29 event_name_(std::move(event_name)) {
30 tag_ = std::to_string(target_uid) + "-" + pkgid_;
33 uid_t PkgmgrEventArgs::GetTargetUid() const {
37 int PkgmgrEventArgs::GetReqId() const {
41 const std::string& PkgmgrEventArgs::GetPkgType() const {
45 const std::string& PkgmgrEventArgs::GetPkgId() const {
49 const std::string& PkgmgrEventArgs::GetEventStatus() const {
53 const std::string& PkgmgrEventArgs::GetEventName() const {
57 const std::string& PkgmgrEventArgs::GetTag() const {