namespace pkgmgr_client {
PkgInfoClient::PkgInfoClient(
std::shared_ptr<pkgmgr_common::parcel::AbstractParcelable> parcel, uid_t uid,
- std::shared_ptr<pkgmgr_common::parcel::AbstractParcelable::IFactory> factory)
- : parcel_(parcel), uid_(uid), factory_(factory) {}
+ pkgmgr_common::ReqType req_type)
+ : parcel_(parcel), uid_(uid), req_type_(req_type) {}
bool PkgInfoClient::SendRequest() { return true; }
#include "../common/parcel/abstract_parcelable.hh"
+#include "request_type.hh"
+
#include <string>
namespace pkgmgr_client {
class PkgInfoClient {
public:
PkgInfoClient(std::shared_ptr<pkgmgr_common::parcel::AbstractParcelable> parcel,
- uid_t uid, std::shared_ptr<pkgmgr_common::parcel::AbstractParcelable::IFactory> factory);
+ uid_t uid, pkgmgr_common::ReqType req_type);
bool SendRequest();
std::shared_ptr<pkgmgr_common::parcel::AbstractParcelable> GetResultParcel();
private:
std::shared_ptr<pkgmgr_common::parcel::AbstractParcelable> parcel_;
uid_t uid_;
- std::shared_ptr<pkgmgr_common::parcel::AbstractParcelable::IFactory> factory_;
+ pkgmgr_common::ReqType req_type_;
};
} // namespace pkgmgr_client