From 8f6b06c6738188ec55cfad043ee0c9ae5be4592c Mon Sep 17 00:00:00 2001 From: haonan_7 Date: Mon, 14 Feb 2022 18:59:34 +0800 Subject: [PATCH 1/7] add @remoteFileShare.d.ts Signed-off-by: haonan_7 --- api/@ohos.remotefileshare.d.ts | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 api/@ohos.remotefileshare.d.ts diff --git a/api/@ohos.remotefileshare.d.ts b/api/@ohos.remotefileshare.d.ts new file mode 100644 index 0000000000..f39d261134 --- /dev/null +++ b/api/@ohos.remotefileshare.d.ts @@ -0,0 +1,51 @@ +/* +* Copyright (C) 2021 Huawei Device Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import {AsyncCallback, Callback} from "./basic"; + +/** + * Provides remote file share APIs + * + * @since 8 + * @syscap SystemCapability.FileManagement.File.DistributedFile + */ + +declare namespace Remotefileshare { + /** + * Create the remote share path of src share file. + * + * @since 8 + */ + function createSharePath(fd: number, cid: string, callback: AsyncCallback): void; + function createSharePath(fd: number, cid: string): Promise; + + /** + * set the SecurityLabel. + * + * @since 8 + */ + function setSecurityLabel(path:string, dataLevel:string, callback: AsyncCallback): void; + function setSecurityLabel(path:string, dataLevel:string): Promise; + + /** + * get the SecurityLabel. + * + * @since 8 + */ + function getSecurityLabel(path:string, callback: AsyncCallback): void; + function getSecurityLabel(path:string): Promise; +} + +export default Remotefileshare; -- Gitee From a79b4078b4dd82e67acc850129f03c2bbc09b6c1 Mon Sep 17 00:00:00 2001 From: haonan_7 Date: Mon, 14 Feb 2022 19:09:04 +0800 Subject: [PATCH 2/7] del @remoteFileShare.d.ts Signed-off-by: haonan_7 --- api/@ohos.remotefileshare.d.ts | 51 ---------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 api/@ohos.remotefileshare.d.ts diff --git a/api/@ohos.remotefileshare.d.ts b/api/@ohos.remotefileshare.d.ts deleted file mode 100644 index f39d261134..0000000000 --- a/api/@ohos.remotefileshare.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* -* Copyright (C) 2021 Huawei Device Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import {AsyncCallback, Callback} from "./basic"; - -/** - * Provides remote file share APIs - * - * @since 8 - * @syscap SystemCapability.FileManagement.File.DistributedFile - */ - -declare namespace Remotefileshare { - /** - * Create the remote share path of src share file. - * - * @since 8 - */ - function createSharePath(fd: number, cid: string, callback: AsyncCallback): void; - function createSharePath(fd: number, cid: string): Promise; - - /** - * set the SecurityLabel. - * - * @since 8 - */ - function setSecurityLabel(path:string, dataLevel:string, callback: AsyncCallback): void; - function setSecurityLabel(path:string, dataLevel:string): Promise; - - /** - * get the SecurityLabel. - * - * @since 8 - */ - function getSecurityLabel(path:string, callback: AsyncCallback): void; - function getSecurityLabel(path:string): Promise; -} - -export default Remotefileshare; -- Gitee From e7b2b0729fc64751450e3d8c2c3168aaf845a0a0 Mon Sep 17 00:00:00 2001 From: haonan_7 Date: Mon, 14 Feb 2022 19:09:51 +0800 Subject: [PATCH 3/7] add @remoteFileShare.d.ts Signed-off-by: haonan_7 --- api/@ohos.remoteFileShare.d.ts | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 api/@ohos.remoteFileShare.d.ts diff --git a/api/@ohos.remoteFileShare.d.ts b/api/@ohos.remoteFileShare.d.ts new file mode 100644 index 0000000000..f39d261134 --- /dev/null +++ b/api/@ohos.remoteFileShare.d.ts @@ -0,0 +1,51 @@ +/* +* Copyright (C) 2021 Huawei Device Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import {AsyncCallback, Callback} from "./basic"; + +/** + * Provides remote file share APIs + * + * @since 8 + * @syscap SystemCapability.FileManagement.File.DistributedFile + */ + +declare namespace Remotefileshare { + /** + * Create the remote share path of src share file. + * + * @since 8 + */ + function createSharePath(fd: number, cid: string, callback: AsyncCallback): void; + function createSharePath(fd: number, cid: string): Promise; + + /** + * set the SecurityLabel. + * + * @since 8 + */ + function setSecurityLabel(path:string, dataLevel:string, callback: AsyncCallback): void; + function setSecurityLabel(path:string, dataLevel:string): Promise; + + /** + * get the SecurityLabel. + * + * @since 8 + */ + function getSecurityLabel(path:string, callback: AsyncCallback): void; + function getSecurityLabel(path:string): Promise; +} + +export default Remotefileshare; -- Gitee From 6a061e2c5eb55708108179c65dc9d60bf83db053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BB=E5=B9=B3?= Date: Tue, 15 Feb 2022 06:52:37 +0000 Subject: [PATCH 4/7] Update api/@ohos.remoteFileShare.d.ts --- api/@ohos.remoteFileShare.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.remoteFileShare.d.ts b/api/@ohos.remoteFileShare.d.ts index f39d261134..daabb1116d 100644 --- a/api/@ohos.remoteFileShare.d.ts +++ b/api/@ohos.remoteFileShare.d.ts @@ -22,7 +22,7 @@ import {AsyncCallback, Callback} from "./basic"; * @syscap SystemCapability.FileManagement.File.DistributedFile */ -declare namespace Remotefileshare { +declare namespace remoteFileShare { /** * Create the remote share path of src share file. * -- Gitee From 3a04f8d400b6dbc97466f301153773e4522fa703 Mon Sep 17 00:00:00 2001 From: haonan_7 Date: Tue, 15 Feb 2022 14:54:34 +0800 Subject: [PATCH 5/7] fix @remoteFileShare.d.ts Signed-off-by: haonan_7 --- api/@ohos.remoteFileShare.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.remoteFileShare.d.ts b/api/@ohos.remoteFileShare.d.ts index daabb1116d..2563cc1d58 100644 --- a/api/@ohos.remoteFileShare.d.ts +++ b/api/@ohos.remoteFileShare.d.ts @@ -48,4 +48,4 @@ declare namespace remoteFileShare { function getSecurityLabel(path:string): Promise; } -export default Remotefileshare; +export default remoteFileShare; -- Gitee From cfec6a7f6c280939dc0301f9391dd1bd1fca1d90 Mon Sep 17 00:00:00 2001 From: haonan_7 Date: Tue, 15 Feb 2022 15:09:49 +0800 Subject: [PATCH 6/7] del @remoteFileShare.d.ts Signed-off-by: haonan_7 --- api/@ohos.remoteFileShare.d.ts | 51 ---------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 api/@ohos.remoteFileShare.d.ts diff --git a/api/@ohos.remoteFileShare.d.ts b/api/@ohos.remoteFileShare.d.ts deleted file mode 100644 index 2563cc1d58..0000000000 --- a/api/@ohos.remoteFileShare.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* -* Copyright (C) 2021 Huawei Device Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import {AsyncCallback, Callback} from "./basic"; - -/** - * Provides remote file share APIs - * - * @since 8 - * @syscap SystemCapability.FileManagement.File.DistributedFile - */ - -declare namespace remoteFileShare { - /** - * Create the remote share path of src share file. - * - * @since 8 - */ - function createSharePath(fd: number, cid: string, callback: AsyncCallback): void; - function createSharePath(fd: number, cid: string): Promise; - - /** - * set the SecurityLabel. - * - * @since 8 - */ - function setSecurityLabel(path:string, dataLevel:string, callback: AsyncCallback): void; - function setSecurityLabel(path:string, dataLevel:string): Promise; - - /** - * get the SecurityLabel. - * - * @since 8 - */ - function getSecurityLabel(path:string, callback: AsyncCallback): void; - function getSecurityLabel(path:string): Promise; -} - -export default remoteFileShare; -- Gitee From d742ef4ef51c26908c06dfd45146773bbfad3777 Mon Sep 17 00:00:00 2001 From: haonan_7 Date: Tue, 15 Feb 2022 15:11:02 +0800 Subject: [PATCH 7/7] add @remoteFileShare.d.ts Signed-off-by: haonan_7 --- api/@ohos.remoteFileShare.d.ts | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 api/@ohos.remoteFileShare.d.ts diff --git a/api/@ohos.remoteFileShare.d.ts b/api/@ohos.remoteFileShare.d.ts new file mode 100644 index 0000000000..2563cc1d58 --- /dev/null +++ b/api/@ohos.remoteFileShare.d.ts @@ -0,0 +1,51 @@ +/* +* Copyright (C) 2021 Huawei Device Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import {AsyncCallback, Callback} from "./basic"; + +/** + * Provides remote file share APIs + * + * @since 8 + * @syscap SystemCapability.FileManagement.File.DistributedFile + */ + +declare namespace remoteFileShare { + /** + * Create the remote share path of src share file. + * + * @since 8 + */ + function createSharePath(fd: number, cid: string, callback: AsyncCallback): void; + function createSharePath(fd: number, cid: string): Promise; + + /** + * set the SecurityLabel. + * + * @since 8 + */ + function setSecurityLabel(path:string, dataLevel:string, callback: AsyncCallback): void; + function setSecurityLabel(path:string, dataLevel:string): Promise; + + /** + * get the SecurityLabel. + * + * @since 8 + */ + function getSecurityLabel(path:string, callback: AsyncCallback): void; + function getSecurityLabel(path:string): Promise; +} + +export default remoteFileShare; -- Gitee