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 OHOS_DM_ABILITY_MANAGER_H
17 #define OHOS_DM_ABILITY_MANAGER_H
18 
19 #include <string>
20 #include <vector>
21 #include "want.h"
22 
23 namespace OHOS {
24 namespace DistributedHardware {
25 enum AbilityRole { ABILITY_ROLE_PASSIVE = 0, ABILITY_ROLE_INITIATIVE = 1, ABILITY_ROLE_UNKNOWN = 2 };
26 
27 enum AbilityStatus { ABILITY_STATUS_FAILED = 0, ABILITY_STATUS_SUCCESS = 1, ABILITY_STATUS_START = 2 };
28 
29 enum UiAction {
30     USER_OPERATION_TYPE_ALLOW_AUTH = 0,
31     USER_OPERATION_TYPE_CANCEL_AUTH = 1,
32     USER_OPERATION_TYPE_AUTH_CONFIRM_TIMEOUT = 2,
33     USER_OPERATION_TYPE_CANCEL_PINCODE_DISPLAY = 3,
34     USER_OPERATION_TYPE_CANCEL_PINCODE_INPUT = 4,
35     USER_OPERATION_TYPE_DONE_PINCODE_INPUT = 5
36 };
37 
38 class DmAbilityManager {
39 public:
40     AbilityStatus StartAbility(AAFwk::Want &want);
41 };
42 } // namespace DistributedHardware
43 } // namespace OHOS
44 #endif // OHOS_DM_ABILITY_MANAGER_H
45