1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef FOUNDATION_APPEXECFWK_SERVICES_BUNDLEMGR_INCLUDE_DISTRIBUTED_MANAGER_QUERY_RPC_ID_PARAMS_H
17 #define FOUNDATION_APPEXECFWK_SERVICES_BUNDLEMGR_INCLUDE_DISTRIBUTED_MANAGER_QUERY_RPC_ID_PARAMS_H
18 
19 #include <string>
20 
21 #include "iremote_object.h"
22 #include "want.h"
23 
24 namespace OHOS {
25 namespace AppExecFwk {
26 enum ErrorCode {
27     NO_ERROR = 0,
28     CONNECT_FAILED = -100,
29     SEND_REQUEST_FAILED = -101,
30     WAITING_TIMEOUT = -102,
31     GET_DEVICE_PROFILE_FAILED = -103,
32     DECODE_SYS_CAP_FAILED = -104,
33     COMPARE_PC_ID_FAILED = -105,
34     ERR_BMS_DEVICE_INFO_MANAGER_ENABLE_DISABLED = -106,
35 };
36 
37 struct QueryRpcIdParams : public virtual RefBase {
38     sptr<IRemoteObject> callback;
39     OHOS::AAFwk::Want want;
40     int32_t missionId;
41     uint32_t versionCode;
42 };
43 }
44 }
45 #endif  // FOUNDATION_APPEXECFWK_SERVICES_BUNDLEMGR_INCLUDE_DISTRIBUTED_MANAGER_QUERY_RPC_ID_PARAMS_H