1ce968135Sopenharmony_ci/* 2ce968135Sopenharmony_ci * Copyright (C) 2022 Huawei Device Co., Ltd. 3ce968135Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4ce968135Sopenharmony_ci * you may not use this file except in compliance with the License. 5ce968135Sopenharmony_ci * You may obtain a copy of the License at 6ce968135Sopenharmony_ci * 7ce968135Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8ce968135Sopenharmony_ci * 9ce968135Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10ce968135Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11ce968135Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12ce968135Sopenharmony_ci * See the License for the specific language governing permissions and 13ce968135Sopenharmony_ci * limitations under the License. 14ce968135Sopenharmony_ci */ 15ce968135Sopenharmony_ci 16ce968135Sopenharmony_ci#ifndef SERVICES_INCLUDE_WALLPAPER_DATA_H 17ce968135Sopenharmony_ci#define SERVICES_INCLUDE_WALLPAPER_DATA_H 18ce968135Sopenharmony_ci#include <string> 19ce968135Sopenharmony_ci#include <vector> 20ce968135Sopenharmony_ci 21ce968135Sopenharmony_ci#include "component_name.h" 22ce968135Sopenharmony_ci#include "i_wallpaper_manager_callback.h" 23ce968135Sopenharmony_ci#include "wallpaper_manager_common_info.h" 24ce968135Sopenharmony_ci 25ce968135Sopenharmony_cinamespace OHOS { 26ce968135Sopenharmony_cinamespace WallpaperMgrService { 27ce968135Sopenharmony_cistruct WallpaperData { 28ce968135Sopenharmony_ci int32_t userId; 29ce968135Sopenharmony_ci std::string wallpaperFile; // source image 30ce968135Sopenharmony_ci std::string liveWallpaperFile; // source video 31ce968135Sopenharmony_ci std::string customPackageUri; 32ce968135Sopenharmony_ci std::string cropFile; // eventual destination 33ce968135Sopenharmony_ci std::string name; 34ce968135Sopenharmony_ci int32_t wallpaperId; 35ce968135Sopenharmony_ci bool allowBackup; 36ce968135Sopenharmony_ci WallpaperResourceType resourceType; 37ce968135Sopenharmony_ci /** 38ce968135Sopenharmony_ci * The component name of the currently set live wallpaper. 39ce968135Sopenharmony_ci */ 40ce968135Sopenharmony_ci ComponentName wallpaperComponent; 41ce968135Sopenharmony_ci WallpaperData(int32_t userId, std::string fileName); 42ce968135Sopenharmony_ci WallpaperData(); 43ce968135Sopenharmony_ci}; 44ce968135Sopenharmony_ci} // namespace WallpaperMgrService 45ce968135Sopenharmony_ci} // namespace OHOS 46ce968135Sopenharmony_ci#endif // SERVICES_INCLUDE_WALLPAPER_DATA_H 47