• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 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_AAFWK_STACK_SETTING_H
17 #define OHOS_AAFWK_STACK_SETTING_H
18 
19 #include "ability_window_configuration.h"
20 #include "parcel.h"
21 
22 #include <map>
23 
24 namespace OHOS {
25 namespace AAFwk {
26 enum STACK_ID {
27     LAUNCHER_MISSION_STACK_ID = 0,
28     DEFAULT_MISSION_STACK_ID,
29     SPLIT_SCREEN_MISSION_STACK_ID,
30     FLOATING_MISSION_STACK_ID
31 };
32 /**
33  * @struct StackSetting
34  * StackSetting contains default setting for mission stack.
35  */
36 struct StackSetting final : public Parcelable {
37 
38     int32_t userId = 0;  // stack 's user id ,default value is 0
39     // multi window mode key , default in an undefined
40     STACK_ID stackId = DEFAULT_MISSION_STACK_ID;
41     int32_t maxHoldMission = -1;  // default unlimited.
42     bool isSyncVisual = false;    // default don'r support synchronous visualization when multiwindow
43 
44     bool ReadFromParcel(Parcel &parcel);
45     virtual bool Marshalling(Parcel &parcel) const override;
46     static StackSetting *Unmarshalling(Parcel &parcel);
47 };
48 }  // namespace AAFwk
49 }  // namespace OHOS
50 #endif  // OHOS_AAFWK_STACK_SETTING_H