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
25namespace OHOS {
26namespace WallpaperMgrService {
27struct WallpaperData {
28    int32_t userId;
29    std::string wallpaperFile;     // source image
30    std::string liveWallpaperFile; // source video
31    std::string customPackageUri;
32    std::string cropFile; // eventual destination
33    std::string name;
34    int32_t wallpaperId;
35    bool allowBackup;
36    WallpaperResourceType resourceType;
37    /**
38     * The component name of the currently set live wallpaper.
39     */
40    ComponentName wallpaperComponent;
41    WallpaperData(int32_t userId, std::string fileName);
42    WallpaperData();
43};
44} // namespace WallpaperMgrService
45} // namespace OHOS
46#endif // SERVICES_INCLUDE_WALLPAPER_DATA_H
47