swift-uwp/Sources/UWP/Generated/Windows.Storage.FileProperties+Impl.swift
2024-02-15 17:14:48 -08:00

49 lines
2.6 KiB
Swift

// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1
// swiftlint:disable all
import Foundation
@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation
import CWinRT
public enum __IMPL_Windows_Storage_FileProperties {
public enum IStorageItemExtraPropertiesBridge : AbiInterfaceBridge {
public typealias CABI = __x_ABI_CWindows_CStorage_CFileProperties_CIStorageItemExtraProperties
public typealias SwiftABI = __ABI_Windows_Storage_FileProperties.IStorageItemExtraProperties
public typealias SwiftProjection = AnyIStorageItemExtraProperties
public static func from(abi: ComPtr<CABI>?) -> SwiftProjection? {
guard let abi = abi else { return nil }
return IStorageItemExtraPropertiesImpl(abi)
}
public static func makeAbi() -> CABI {
let vtblPtr = withUnsafeMutablePointer(to: &__ABI_Windows_Storage_FileProperties.IStorageItemExtraPropertiesVTable) { $0 }
return .init(lpVtbl: vtblPtr)
}
}
fileprivate class IStorageItemExtraPropertiesImpl: IStorageItemExtraProperties, WinRTAbiImpl {
fileprivate typealias Bridge = IStorageItemExtraPropertiesBridge
fileprivate let _default: Bridge.SwiftABI
fileprivate var thisPtr: WindowsFoundation.IInspectable { _default }
fileprivate init(_ fromAbi: ComPtr<Bridge.CABI>) {
_default = Bridge.SwiftABI(fromAbi)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.storage.fileproperties.istorageitemextraproperties.retrievepropertiesasync)
fileprivate func retrievePropertiesAsync(_ propertiesToRetrieve: WindowsFoundation.AnyIIterable<String>!) throws -> WindowsFoundation.AnyIAsyncOperation<WindowsFoundation.AnyIMap<String, Any?>?>! {
try _default.RetrievePropertiesAsyncImpl(propertiesToRetrieve)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.storage.fileproperties.istorageitemextraproperties.savepropertiesasync)
fileprivate func savePropertiesAsync(_ propertiesToSave: WindowsFoundation.AnyIIterable<WindowsFoundation.AnyIKeyValuePair<String, Any?>?>!) throws -> WindowsFoundation.AnyIAsyncAction! {
try _default.SavePropertiesAsyncImpl(propertiesToSave)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.storage.fileproperties.istorageitemextraproperties.savepropertiesasync)
fileprivate func savePropertiesAsync() throws -> WindowsFoundation.AnyIAsyncAction! {
try _default.SavePropertiesAsyncOverloadDefaultImpl()
}
}
}