1/* 2 * Copyright (c) 2022-2023 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 */ 15import type { BrowserOperationInterface } from '../../../interface/BrowserOperationInterface'; 16import { Log } from '../../../utils/Log'; 17import type { Album, FileAsset } from '../../../access/UserFileManagerAccess'; 18 19const TAG: string = 'common_AlbumOperationImpl'; 20 21export class AlbumOperationImpl implements BrowserOperationInterface { 22 setName(album: Album, name: string): void { 23 album.albumName = name; 24 } 25 26 async change(album: Album): Promise<void> { 27 await album.commitModify(); 28 } 29 30 favor(uri: string, isFavor: boolean): void { 31 } 32 33 delete(uri: string): void { 34 } 35 36 deleteTrash(assets: Array<FileAsset>): void { 37 38 } 39 40 recoverFromTrash(assets: Array<FileAsset>): void { 41 42 } 43 44 copy(source: unknown, target: unknown): void { 45 } 46 47 trash(uri: string, isTrash: boolean): void { 48 } 49 50 remove(uris: Array<string>, albumUri: string): void { 51 } 52 53 create(param: unknown): void { 54 } 55}