1 // Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by an apache-2.0 license that can be
3 // found in the LICENSE file.
5 #ifndef CLIENT_PKGINFO_CLIENT_HH_
6 #define CLIENT_PKGINFO_CLIENT_HH_
8 #include "abstract_parcelable.hh"
9 #include "client_socket.hh"
10 #include "request_type.hh"
14 namespace pkgmgr_client {
18 PkgInfoClient(std::shared_ptr<pkgmgr_common::parcel::AbstractParcelable> parcel,
19 uid_t uid, pkgmgr_common::ReqType req_type);
22 std::shared_ptr<pkgmgr_common::parcel::AbstractParcelable> GetResultParcel();
25 bool RequestHandlerDirectAccess();
27 std::shared_ptr<pkgmgr_common::parcel::AbstractParcelable> parcel_;
28 std::shared_ptr<pkgmgr_common::parcel::AbstractParcelable> result_parcel_;
29 std::unique_ptr<pkgmgr_common::socket::ClientSocket> socket_;
31 pkgmgr_common::ReqType req_type_;
35 } // namespace pkgmgr_client
37 #endif // CLIENT_PKGINFO_CLIENT_HH_