2 * Copyright (c) 2021 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 APP_REQUEST_H_
18 #define APP_REQUEST_H_
20 #include <bundle_cpp.h>
32 AppRequest(int cmd, uid_t uid);
35 AppRequest& With(tizen_base::Bundle b);
36 AppRequest& With(bundle* b);
37 AppRequest& SetAppId(const std::string& app_id);
38 AppRequest& SetInstId(const std::string& inst_id);
39 AppRequest& SetAppIdAsPid(pid_t pid);
40 AppRequest& SetPid(pid_t pid);
41 int Send(int opt = AUL_SOCK_QUEUE);
42 int SendSimply(int opt = AUL_SOCK_NONE);
43 int SendCmdOnly(int opt = AUL_SOCK_NONE);
46 void ClearInternalKey();
48 void SetUid(uid_t uid);
53 tizen_base::Bundle bundle_;
56 } // namespace internal
59 #endif // APP_REQUEST_H_