mcu_hi3321_watch/application/wearable/nativeapp/nativelauncher/include/AppViewIDs.h
2025-05-26 20:15:20 +08:00

76 lines
1.9 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* Copyright (c) 2020-2021 CompanyNameMagicTag.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef APP_VIEW_IDS_H
#define APP_VIEW_IDS_H
#include <cstdint>
/*
* 基础应用的view id与MVP的V一一对应
* 枚举命名要求参考View名字名字尽量简短
*/
typedef enum : uint16_t {
VIEW_INVALID = 0,
VIEW_MAIN = 1,
VIEW_SETTING = 2,
VIEW_APPLIST = 3,
VIEW_SETTING_FIRST = 4,
VIEW_MAIN_SAMPLE = 5,
VIEW_MAIN_ALARM = 6,
VIEW_MAIN_ACTIVITY = 7,
VIEW_ALARM_POP_UP,
VIEW_CALLER_SAMPLE,
VIEW_MAEKPHONE_SAMPLE,
VIEW_BLOODOXY_SAMPLE,
VIEW_BLUETOOTH_EARPHONE,
VIEW_OFFLINEVOICE,
VIEW_WIFI,
VIEW_VOLUME,
VIEW_COMPASS,
VIEW_CONNECT_PHONE,
VIEW_MAIN_TEMP,
VIEW_INDOORWALK,
VIEW_REBOOT,
VIEW_UISAMPLE,
#ifdef SUPPORT_ALIPAY_SEC
VIEW_MAIN_ALIPAY,
#endif
VIEW_SET_DESKTOP,
VIEW_SET_CARD,
VIEW_ADD_CARD,
VIEW_SET_DIAL,
VIEW_SET_DIAL_STYLE,
VIEW_AOD,
VIEW_RESTORE_DEFAULTS,
VIEW_MAX_INTER_ARRY_APP = 0x7FFF, // 在此之前添加内部数组native应用ID.
VIEW_MAX_INTER_APP = 0xFFFD, // 在此之前添加内部静态注册native应用ID,此ID在NativeRegisterType.h里单独管理
VIEW_EXTERN_APP = 0xFFFE, // 三方应用
VIEW_INVALIDE_APP = 0xFFFF,
} AppViewId;
/*
* Slice页面优先级越小优先级越高
*/
typedef enum : uint16_t {
PRIO_0 = 0,
PRIO_1,
PRIO_2,
PRIO_3,
PRIO_4
} AppPriority;
#endif