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 INNERKITSIMPL_WALLPAPER_MANAGER_COMMON_INFO_H 17 #define INNERKITSIMPL_WALLPAPER_MANAGER_COMMON_INFO_H 18 19 #include <string> 20 21 enum WallpaperType { 22 /** 23 * Indicates the home screen wallpaper. 24 */ 25 WALLPAPER_SYSTEM, 26 /** 27 * Indicates the lock screen wallpaper. 28 */ 29 WALLPAPER_LOCKSCREEN 30 }; 31 32 enum WallpaperResourceType { 33 // default wallpaper resource. 34 DEFAULT, 35 36 // picture wallpaper resource. 37 PICTURE, 38 39 // video wallpaper resource. 40 VIDEO, 41 42 // package wallpaper resource. 43 PACKAGE 44 }; 45 46 enum FoldState { 47 NORMAL, 48 UNFOLD_1, 49 UNFOLD_2 50 }; 51 52 enum RotateState { 53 PORT, 54 LAND 55 }; 56 57 struct WallpaperInfo { 58 FoldState foldState; 59 RotateState rotateState; 60 std::string source; 61 }; 62 #endif