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 SERVICES_INCLUDE_WALLPAPER_DATA_H 17 #define SERVICES_INCLUDE_WALLPAPER_DATA_H 18 #include <string> 19 #include <vector> 20 21 #include "component_name.h" 22 #include "i_wallpaper_manager_callback.h" 23 #include "wallpaper_manager_common_info.h" 24 25 namespace OHOS { 26 namespace WallpaperMgrService { 27 struct WallpaperData { 28 int32_t userId; 29 std::string wallpaperFile; // source image 30 std::string normalLandFile; // source image 31 std::string unfoldedOnePortFile; // source image 32 std::string unfoldedOneLandFile; // source image 33 std::string unfoldedTwoPortFile; // source image 34 std::string unfoldedTwoLandFile; // source image 35 std::string liveWallpaperFile; // source video 36 std::string customPackageUri; 37 std::string cropFile; // eventual destination 38 std::string name; 39 int32_t wallpaperId; 40 bool allowBackup; 41 WallpaperResourceType resourceType; 42 /** 43 * The component name of the currently set live wallpaper. 44 */ 45 ComponentName wallpaperComponent; 46 WallpaperData(int32_t userId, std::string fileName); 47 WallpaperData(); 48 }; 49 } // namespace WallpaperMgrService 50 } // namespace OHOS 51 #endif // SERVICES_INCLUDE_WALLPAPER_DATA_H 52