Remove the cache when language change event occurs
[platform/core/appfw/pkgmgr-info.git] / src / server / request_handler / abstract_request_handler.cc
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.
4
5 #include "abstract_request_handler.hh"
6
7 #include <string>
8
9 #include "pkgmgrinfo_debug.h"
10
11 namespace pkgmgr_server {
12 namespace request_handler {
13
14 void AbstractRequestHandler::SetPID(pid_t pid) {
15   pid_ = pid;
16 }
17
18 pid_t AbstractRequestHandler::GetPID() {
19   return pid_;
20 }
21
22 void AbstractRequestHandler::PreExec() {
23 }
24
25 void AbstractRequestHandler::PostExec() {
26 }
27
28 void AbstractRequestHandler::SetUID(uid_t uid) {
29   uid_ = uid;
30 }
31
32 uid_t AbstractRequestHandler::GetUID() {
33   return uid_;
34 }
35
36 tizen_base::Parcel AbstractRequestHandler::ExtractResult() {
37   tizen_base::Parcel parcel;
38   parcel.WriteParcelable(*result_);
39   result_.reset();
40   return parcel;
41 }
42
43 }  // namespace request_handler
44 }  // namespace pkgmgr_server