• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16export class BroadcastConstants {
17    static readonly DELETE_FROM_BROWSER: number = 0;
18    static readonly DELETE_FROM_GRID: number = 1;
19    static readonly SELECT = 'select';
20    static readonly GROUP_SELECT = 'groupSelect';
21    static readonly JUMP_PHOTO_BROWSER = 'JumpPhotoPage';
22    static readonly SHOW_DELETE_DIALOG = 'showDeleteDialog';
23    static readonly UPDATE_PROGRESS = 'updateProgress';
24    static readonly CANCEL_DELETE = 'cancelDelete';
25    static readonly JUMP_THIRD_PHOTO_BROWSER = 'jumpThirdPhotoPage';
26    static readonly BACK_PRESS_EVENT = 'back';
27    static readonly RESET_STATE_EVENT = 'resetState';
28    static readonly ON_TAB_CHANGED = 'onTabChanged';
29    static readonly RESET_ZERO = 'resetZero';
30    static readonly SHOW_DETAIL_DIALOG = 'showDetailDialog';
31    static readonly SHOW_MULTI_SELECT_DIALOG = 'showMultiSelectDialog';
32    static readonly UPDATE_DATA_SOURCE = 'updateDataSource';
33    static readonly SHOW_PROGRESS_DIALOG = 'showProgressDialog';
34    static readonly DELETE_PROGRESS_DIALOG = 'deleteProgressDialog';
35    static readonly CANCEL_OPERATE = 'cancelOperate';
36    static readonly MEDIA_OPERATION = 'mediaOperation';
37    static readonly OPERATE_CONTINUE = 'operateContinue';
38    static readonly OPERATE_PAUSE = 'operatePause';
39    static readonly SHOW_RENAME_PHOTO_DIALOG = 'showRenamePhotoDialog';
40    static readonly SHOW_SAVE_PHOTO_DIALOG = 'showSavePhotoDialog';
41    static readonly SHOW_EDIT_EXIT_PHOTO_DIALOG = 'showEditExitPhotoDialog';
42    static readonly SHOW_ADD_NOTES_PHOTO_DIALOG = 'showAddNotesPhotoDialog';
43    static readonly SHOW_NEW_ALBUM_PHOTO_DIALOG = 'showNewAlbumPhotoDialog';
44    static readonly SHOW_COPY_OR_MOVE_DIALOG = 'showCopyOrMoveDialog';
45    static readonly FIND_SAME_FILE_DIALOG = 'findSameFileDialog';
46    static readonly ON_REMOTE_CHANGED = 'on_remote_changed';
47    static readonly EXIT_SAVE_PROGRESS_CLOSE = 'save_progress_close';
48    static readonly SHOW_EDIT_SAVE_PROGRESS_DIALOG = 'show_exit_save_progress_dialog';
49    static readonly DOWNLOAD_CANCEL_OPERATE = 'download_cancel_operate';
50    static readonly ON_DATA_RELOADED = 'on_data_reloaded';
51    static readonly SAVE_FORM_EDITOR_DATA = 'save_form_editor_data';
52    static readonly INIT_DATE_TEXT = 'init_date_text';
53    static readonly THIRD_ROUTE_PAGE = 'third_route_page';
54    static readonly ON_DATA_RELOADED_WITH_EDIT = 'on_data_reloaded_with_edit';
55    static readonly PHOTO_EDIT_SAVE_COMPLETE: string = 'photo_edit_save_complete';
56    static readonly CHANGE_SWIPER_DURATION = 'change_swiper_duration';
57    // USED for AppStorage
58    static readonly LEFT_BLANK: string = 'leftBlank';
59    static readonly RESET_TABBAR_SELECTED_STATUE: string = 'reset_tabbar_selected_statue';
60}