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

807 lines
40 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
private var IID___x_ABI_CWindows_CStorage_CFileProperties_CIBasicProperties: WindowsFoundation.IID {
.init(Data1: 0xD05D55DB, Data2: 0x785E, Data3: 0x4A66, Data4: ( 0xBE,0x02,0x9B,0xEE,0xC5,0x8A,0xEA,0x81 ))// D05D55DB-785E-4A66-BE02-9BEEC58AEA81
}
private var IID___x_ABI_CWindows_CStorage_CFileProperties_CIDocumentProperties: WindowsFoundation.IID {
.init(Data1: 0x7EAB19BC, Data2: 0x1821, Data3: 0x4923, Data4: ( 0xB4,0xA9,0x0A,0xEA,0x40,0x4D,0x00,0x70 ))// 7EAB19BC-1821-4923-B4A9-0AEA404D0070
}
private var IID___x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties: WindowsFoundation.IID {
.init(Data1: 0x523C9424, Data2: 0xFCFF, Data3: 0x4275, Data4: ( 0xAF,0xEE,0xEC,0xDB,0x9A,0xB4,0x79,0x73 ))// 523C9424-FCFF-4275-AFEE-ECDB9AB47973
}
private var IID___x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties: WindowsFoundation.IID {
.init(Data1: 0xBC8AAB62, Data2: 0x66EC, Data3: 0x419A, Data4: ( 0xBC,0x5D,0xCA,0x65,0xA4,0xCB,0x46,0xDA ))// BC8AAB62-66EC-419A-BC5D-CA65A4CB46DA
}
private var IID___x_ABI_CWindows_CStorage_CFileProperties_CIStorageItemContentProperties: WindowsFoundation.IID {
.init(Data1: 0x05294BAD, Data2: 0xBC38, Data3: 0x48BF, Data4: ( 0x85,0xD7,0x77,0x0E,0x0E,0x2A,0xE0,0xBA ))// 05294BAD-BC38-48BF-85D7-770E0E2AE0BA
}
private var IID___x_ABI_CWindows_CStorage_CFileProperties_CIStorageItemExtraProperties: WindowsFoundation.IID {
.init(Data1: 0xC54361B2, Data2: 0x54CD, Data3: 0x432B, Data4: ( 0xBD,0xBC,0x4B,0x19,0xC4,0xB4,0x70,0xD7 ))// C54361B2-54CD-432B-BDBC-4B19C4B470D7
}
private var IID___x_ABI_CWindows_CStorage_CFileProperties_CIThumbnailProperties: WindowsFoundation.IID {
.init(Data1: 0x693DD42F, Data2: 0xDBE7, Data3: 0x49B5, Data4: ( 0xB3,0xB3,0x28,0x93,0xAC,0x5D,0x34,0x23 ))// 693DD42F-DBE7-49B5-B3B3-2893AC5D3423
}
private var IID___x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties: WindowsFoundation.IID {
.init(Data1: 0x719AE507, Data2: 0x68DE, Data3: 0x4DB8, Data4: ( 0x97,0xDE,0x49,0x99,0x8C,0x05,0x9F,0x2F ))// 719AE507-68DE-4DB8-97DE-49998C059F2F
}
public enum __ABI_Windows_Storage_FileProperties {
public class IBasicProperties: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CStorage_CFileProperties_CIBasicProperties }
internal func get_SizeImpl() throws -> UInt64 {
var value: UINT64 = 0
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIBasicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Size(pThis, &value))
}
return value
}
internal func get_DateModifiedImpl() throws -> WindowsFoundation.DateTime {
var value: __x_ABI_CWindows_CFoundation_CDateTime = .init()
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIBasicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DateModified(pThis, &value))
}
return .from(abi: value)
}
internal func get_ItemDateImpl() throws -> WindowsFoundation.DateTime {
var value: __x_ABI_CWindows_CFoundation_CDateTime = .init()
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIBasicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ItemDate(pThis, &value))
}
return .from(abi: value)
}
}
public class IDocumentProperties: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CStorage_CFileProperties_CIDocumentProperties }
internal func get_AuthorImpl() throws -> WindowsFoundation.AnyIVector<String>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIDocumentProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Author(pThis, &valueAbi))
}
}
return UWP.__x_ABI_C__FIVector_1_HSTRINGWrapper.unwrapFrom(abi: value)
}
internal func get_TitleImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIDocumentProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Title(pThis, &value))
}
return .init(from: value)
}
internal func put_TitleImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIDocumentProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Title(pThis, _value.get()))
}
}
internal func get_KeywordsImpl() throws -> WindowsFoundation.AnyIVector<String>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIDocumentProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Keywords(pThis, &valueAbi))
}
}
return UWP.__x_ABI_C__FIVector_1_HSTRINGWrapper.unwrapFrom(abi: value)
}
internal func get_CommentImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIDocumentProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Comment(pThis, &value))
}
return .init(from: value)
}
internal func put_CommentImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIDocumentProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Comment(pThis, _value.get()))
}
}
}
public class IImageProperties: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties }
internal func get_RatingImpl() throws -> UInt32 {
var value: UINT32 = 0
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Rating(pThis, &value))
}
return value
}
internal func put_RatingImpl(_ value: UInt32) throws {
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Rating(pThis, value))
}
}
internal func get_KeywordsImpl() throws -> WindowsFoundation.AnyIVector<String>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Keywords(pThis, &valueAbi))
}
}
return UWP.__x_ABI_C__FIVector_1_HSTRINGWrapper.unwrapFrom(abi: value)
}
internal func get_DateTakenImpl() throws -> WindowsFoundation.DateTime {
var value: __x_ABI_CWindows_CFoundation_CDateTime = .init()
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_DateTaken(pThis, &value))
}
return .from(abi: value)
}
internal func put_DateTakenImpl(_ value: WindowsFoundation.DateTime) throws {
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_DateTaken(pThis, .from(swift: value)))
}
}
internal func get_WidthImpl() throws -> UInt32 {
var value: UINT32 = 0
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Width(pThis, &value))
}
return value
}
internal func get_HeightImpl() throws -> UInt32 {
var value: UINT32 = 0
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Height(pThis, &value))
}
return value
}
internal func get_TitleImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Title(pThis, &value))
}
return .init(from: value)
}
internal func put_TitleImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Title(pThis, _value.get()))
}
}
internal func get_LatitudeImpl() throws -> Double? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Latitude(pThis, &valueAbi))
}
}
return UWP.__x_ABI_C__FIReference_1_doubleWrapper.unwrapFrom(abi: value)
}
internal func get_LongitudeImpl() throws -> Double? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Longitude(pThis, &valueAbi))
}
}
return UWP.__x_ABI_C__FIReference_1_doubleWrapper.unwrapFrom(abi: value)
}
internal func get_CameraManufacturerImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_CameraManufacturer(pThis, &value))
}
return .init(from: value)
}
internal func put_CameraManufacturerImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_CameraManufacturer(pThis, _value.get()))
}
}
internal func get_CameraModelImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_CameraModel(pThis, &value))
}
return .init(from: value)
}
internal func put_CameraModelImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_CameraModel(pThis, _value.get()))
}
}
internal func get_OrientationImpl() throws -> UWP.PhotoOrientation {
var value: __x_ABI_CWindows_CStorage_CFileProperties_CPhotoOrientation = .init(0)
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Orientation(pThis, &value))
}
return value
}
internal func get_PeopleNamesImpl() throws -> WindowsFoundation.AnyIVectorView<String>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIImageProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_PeopleNames(pThis, &valueAbi))
}
}
return UWP.__x_ABI_C__FIVectorView_1_HSTRINGWrapper.unwrapFrom(abi: value)
}
}
public class IMusicProperties: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties }
internal func get_AlbumImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Album(pThis, &value))
}
return .init(from: value)
}
internal func put_AlbumImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Album(pThis, _value.get()))
}
}
internal func get_ArtistImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Artist(pThis, &value))
}
return .init(from: value)
}
internal func put_ArtistImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Artist(pThis, _value.get()))
}
}
internal func get_GenreImpl() throws -> WindowsFoundation.AnyIVector<String>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Genre(pThis, &valueAbi))
}
}
return UWP.__x_ABI_C__FIVector_1_HSTRINGWrapper.unwrapFrom(abi: value)
}
internal func get_TrackNumberImpl() throws -> UInt32 {
var value: UINT32 = 0
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_TrackNumber(pThis, &value))
}
return value
}
internal func put_TrackNumberImpl(_ value: UInt32) throws {
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_TrackNumber(pThis, value))
}
}
internal func get_TitleImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Title(pThis, &value))
}
return .init(from: value)
}
internal func put_TitleImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Title(pThis, _value.get()))
}
}
internal func get_RatingImpl() throws -> UInt32 {
var value: UINT32 = 0
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Rating(pThis, &value))
}
return value
}
internal func put_RatingImpl(_ value: UInt32) throws {
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Rating(pThis, value))
}
}
internal func get_DurationImpl() throws -> WindowsFoundation.TimeSpan {
var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init()
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Duration(pThis, &value))
}
return .from(abi: value)
}
internal func get_BitrateImpl() throws -> UInt32 {
var value: UINT32 = 0
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Bitrate(pThis, &value))
}
return value
}
internal func get_AlbumArtistImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_AlbumArtist(pThis, &value))
}
return .init(from: value)
}
internal func put_AlbumArtistImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_AlbumArtist(pThis, _value.get()))
}
}
internal func get_ComposersImpl() throws -> WindowsFoundation.AnyIVector<String>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Composers(pThis, &valueAbi))
}
}
return UWP.__x_ABI_C__FIVector_1_HSTRINGWrapper.unwrapFrom(abi: value)
}
internal func get_ConductorsImpl() throws -> WindowsFoundation.AnyIVector<String>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Conductors(pThis, &valueAbi))
}
}
return UWP.__x_ABI_C__FIVector_1_HSTRINGWrapper.unwrapFrom(abi: value)
}
internal func get_SubtitleImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Subtitle(pThis, &value))
}
return .init(from: value)
}
internal func put_SubtitleImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Subtitle(pThis, _value.get()))
}
}
internal func get_ProducersImpl() throws -> WindowsFoundation.AnyIVector<String>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Producers(pThis, &valueAbi))
}
}
return UWP.__x_ABI_C__FIVector_1_HSTRINGWrapper.unwrapFrom(abi: value)
}
internal func get_PublisherImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Publisher(pThis, &value))
}
return .init(from: value)
}
internal func put_PublisherImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Publisher(pThis, _value.get()))
}
}
internal func get_WritersImpl() throws -> WindowsFoundation.AnyIVector<String>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Writers(pThis, &valueAbi))
}
}
return UWP.__x_ABI_C__FIVector_1_HSTRINGWrapper.unwrapFrom(abi: value)
}
internal func get_YearImpl() throws -> UInt32 {
var value: UINT32 = 0
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Year(pThis, &value))
}
return value
}
internal func put_YearImpl(_ value: UInt32) throws {
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIMusicProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Year(pThis, value))
}
}
}
public class IStorageItemContentProperties: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CStorage_CFileProperties_CIStorageItemContentProperties }
internal func GetMusicPropertiesAsyncImpl() throws -> WindowsFoundation.AnyIAsyncOperation<UWP.MusicProperties?>? {
let (operation) = try ComPtrs.initialize { operationAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIStorageItemContentProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetMusicPropertiesAsync(pThis, &operationAbi))
}
}
return UWP.__x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CFileProperties__CMusicPropertiesWrapper.unwrapFrom(abi: operation)
}
internal func GetVideoPropertiesAsyncImpl() throws -> WindowsFoundation.AnyIAsyncOperation<UWP.VideoProperties?>? {
let (operation) = try ComPtrs.initialize { operationAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIStorageItemContentProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetVideoPropertiesAsync(pThis, &operationAbi))
}
}
return UWP.__x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CFileProperties__CVideoPropertiesWrapper.unwrapFrom(abi: operation)
}
internal func GetImagePropertiesAsyncImpl() throws -> WindowsFoundation.AnyIAsyncOperation<UWP.ImageProperties?>? {
let (operation) = try ComPtrs.initialize { operationAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIStorageItemContentProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetImagePropertiesAsync(pThis, &operationAbi))
}
}
return UWP.__x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CFileProperties__CImagePropertiesWrapper.unwrapFrom(abi: operation)
}
internal func GetDocumentPropertiesAsyncImpl() throws -> WindowsFoundation.AnyIAsyncOperation<UWP.DocumentProperties?>? {
let (operation) = try ComPtrs.initialize { operationAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIStorageItemContentProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.GetDocumentPropertiesAsync(pThis, &operationAbi))
}
}
return UWP.__x_ABI_C__FIAsyncOperation_1___x_ABI_CWindows__CStorage__CFileProperties__CDocumentPropertiesWrapper.unwrapFrom(abi: operation)
}
}
public class IStorageItemExtraProperties: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CStorage_CFileProperties_CIStorageItemExtraProperties }
open func RetrievePropertiesAsyncImpl(_ propertiesToRetrieve: WindowsFoundation.AnyIIterable<String>?) throws -> WindowsFoundation.AnyIAsyncOperation<WindowsFoundation.AnyIMap<String, Any?>?>? {
let (operation) = try ComPtrs.initialize { operationAbi in
let propertiesToRetrieveWrapper = UWP.__x_ABI_C__FIIterable_1_HSTRINGWrapper(propertiesToRetrieve)
let _propertiesToRetrieve = try! propertiesToRetrieveWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIStorageItemExtraProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.RetrievePropertiesAsync(pThis, _propertiesToRetrieve, &operationAbi))
}
}
return UWP.__x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIMap_2_HSTRING_IInspectableWrapper.unwrapFrom(abi: operation)
}
open func SavePropertiesAsyncImpl(_ propertiesToSave: WindowsFoundation.AnyIIterable<WindowsFoundation.AnyIKeyValuePair<String, Any?>?>?) throws -> WindowsFoundation.AnyIAsyncAction? {
let (operation) = try ComPtrs.initialize { operationAbi in
let propertiesToSaveWrapper = UWP.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_IInspectableWrapper(propertiesToSave)
let _propertiesToSave = try! propertiesToSaveWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIStorageItemExtraProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SavePropertiesAsync(pThis, _propertiesToSave, &operationAbi))
}
}
return __ABI_Windows_Foundation.IAsyncActionWrapper.unwrapFrom(abi: operation)
}
open func SavePropertiesAsyncOverloadDefaultImpl() throws -> WindowsFoundation.AnyIAsyncAction? {
let (operation) = try ComPtrs.initialize { operationAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIStorageItemExtraProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.SavePropertiesAsyncOverloadDefault(pThis, &operationAbi))
}
}
return __ABI_Windows_Foundation.IAsyncActionWrapper.unwrapFrom(abi: operation)
}
}
internal static var IStorageItemExtraPropertiesVTable: __x_ABI_CWindows_CStorage_CFileProperties_CIStorageItemExtraPropertiesVtbl = .init(
QueryInterface: { IStorageItemExtraPropertiesWrapper.queryInterface($0, $1, $2) },
AddRef: { IStorageItemExtraPropertiesWrapper.addRef($0) },
Release: { IStorageItemExtraPropertiesWrapper.release($0) },
GetIids: {
let size = MemoryLayout<WindowsFoundation.IID>.size
let iids = CoTaskMemAlloc(UInt64(size) * 3).assumingMemoryBound(to: WindowsFoundation.IID.self)
iids[0] = IUnknown.IID
iids[1] = IInspectable.IID
iids[2] = __ABI_Windows_Storage_FileProperties.IStorageItemExtraPropertiesWrapper.IID
$1!.pointee = 3
$2!.pointee = iids
return S_OK
},
GetRuntimeClassName: {
_ = $0
let hstring = try! HString("Windows.Storage.FileProperties.IStorageItemExtraProperties").detach()
$1!.pointee = hstring
return S_OK
},
GetTrustLevel: {
_ = $0
$1!.pointee = TrustLevel(rawValue: 0)
return S_OK
},
RetrievePropertiesAsync: {
do {
guard let __unwrapped__instance = IStorageItemExtraPropertiesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let propertiesToRetrieve: WindowsFoundation.AnyIIterable<String>? = UWP.__x_ABI_C__FIIterable_1_HSTRINGWrapper.unwrapFrom(abi: ComPtr($1))
let operation = try __unwrapped__instance.retrievePropertiesAsync(propertiesToRetrieve)
let operationWrapper = UWP.__x_ABI_C__FIAsyncOperation_1___x_ABI_C__FIMap_2_HSTRING_IInspectableWrapper(operation)
operationWrapper?.copyTo($2)
return S_OK
} catch { return failWith(err: E_FAIL) }
},
SavePropertiesAsync: {
do {
guard let __unwrapped__instance = IStorageItemExtraPropertiesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let propertiesToSave: WindowsFoundation.AnyIIterable<WindowsFoundation.AnyIKeyValuePair<String, Any?>?>? = UWP.__x_ABI_C__FIIterable_1___x_ABI_C__FIKeyValuePair_2_HSTRING_IInspectableWrapper.unwrapFrom(abi: ComPtr($1))
let operation = try __unwrapped__instance.savePropertiesAsync(propertiesToSave)
let operationWrapper = __ABI_Windows_Foundation.IAsyncActionWrapper(operation)
operationWrapper?.copyTo($2)
return S_OK
} catch { return failWith(err: E_FAIL) }
},
SavePropertiesAsyncOverloadDefault: {
do {
guard let __unwrapped__instance = IStorageItemExtraPropertiesWrapper.tryUnwrapFrom(raw: $0) else { return E_INVALIDARG }
let operation = try __unwrapped__instance.savePropertiesAsync()
let operationWrapper = __ABI_Windows_Foundation.IAsyncActionWrapper(operation)
operationWrapper?.copyTo($1)
return S_OK
} catch { return failWith(err: E_FAIL) }
}
)
public typealias IStorageItemExtraPropertiesWrapper = InterfaceWrapperBase<__IMPL_Windows_Storage_FileProperties.IStorageItemExtraPropertiesBridge>
public class IThumbnailProperties: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CStorage_CFileProperties_CIThumbnailProperties }
internal func get_OriginalWidthImpl() throws -> UInt32 {
var value: UINT32 = 0
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIThumbnailProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_OriginalWidth(pThis, &value))
}
return value
}
internal func get_OriginalHeightImpl() throws -> UInt32 {
var value: UINT32 = 0
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIThumbnailProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_OriginalHeight(pThis, &value))
}
return value
}
internal func get_ReturnedSmallerCachedSizeImpl() throws -> Bool {
var value: boolean = 0
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIThumbnailProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_ReturnedSmallerCachedSize(pThis, &value))
}
return .init(from: value)
}
internal func get_TypeImpl() throws -> UWP.ThumbnailType {
var value: __x_ABI_CWindows_CStorage_CFileProperties_CThumbnailType = .init(0)
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIThumbnailProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Type(pThis, &value))
}
return value
}
}
public class IVideoProperties: WindowsFoundation.IInspectable {
override public class var IID: WindowsFoundation.IID { IID___x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties }
internal func get_RatingImpl() throws -> UInt32 {
var value: UINT32 = 0
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Rating(pThis, &value))
}
return value
}
internal func put_RatingImpl(_ value: UInt32) throws {
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Rating(pThis, value))
}
}
internal func get_KeywordsImpl() throws -> WindowsFoundation.AnyIVector<String>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Keywords(pThis, &valueAbi))
}
}
return UWP.__x_ABI_C__FIVector_1_HSTRINGWrapper.unwrapFrom(abi: value)
}
internal func get_WidthImpl() throws -> UInt32 {
var value: UINT32 = 0
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Width(pThis, &value))
}
return value
}
internal func get_HeightImpl() throws -> UInt32 {
var value: UINT32 = 0
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Height(pThis, &value))
}
return value
}
internal func get_DurationImpl() throws -> WindowsFoundation.TimeSpan {
var value: __x_ABI_CWindows_CFoundation_CTimeSpan = .init()
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Duration(pThis, &value))
}
return .from(abi: value)
}
internal func get_LatitudeImpl() throws -> Double? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Latitude(pThis, &valueAbi))
}
}
return UWP.__x_ABI_C__FIReference_1_doubleWrapper.unwrapFrom(abi: value)
}
internal func get_LongitudeImpl() throws -> Double? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Longitude(pThis, &valueAbi))
}
}
return UWP.__x_ABI_C__FIReference_1_doubleWrapper.unwrapFrom(abi: value)
}
internal func get_TitleImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Title(pThis, &value))
}
return .init(from: value)
}
internal func put_TitleImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Title(pThis, _value.get()))
}
}
internal func get_SubtitleImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Subtitle(pThis, &value))
}
return .init(from: value)
}
internal func put_SubtitleImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Subtitle(pThis, _value.get()))
}
}
internal func get_ProducersImpl() throws -> WindowsFoundation.AnyIVector<String>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Producers(pThis, &valueAbi))
}
}
return UWP.__x_ABI_C__FIVector_1_HSTRINGWrapper.unwrapFrom(abi: value)
}
internal func get_PublisherImpl() throws -> String {
var value: HSTRING?
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Publisher(pThis, &value))
}
return .init(from: value)
}
internal func put_PublisherImpl(_ value: String) throws {
let _value = try! HString(value)
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Publisher(pThis, _value.get()))
}
}
internal func get_WritersImpl() throws -> WindowsFoundation.AnyIVector<String>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Writers(pThis, &valueAbi))
}
}
return UWP.__x_ABI_C__FIVector_1_HSTRINGWrapper.unwrapFrom(abi: value)
}
internal func get_YearImpl() throws -> UInt32 {
var value: UINT32 = 0
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Year(pThis, &value))
}
return value
}
internal func put_YearImpl(_ value: UInt32) throws {
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.put_Year(pThis, value))
}
}
internal func get_BitrateImpl() throws -> UInt32 {
var value: UINT32 = 0
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Bitrate(pThis, &value))
}
return value
}
internal func get_DirectorsImpl() throws -> WindowsFoundation.AnyIVector<String>? {
let (value) = try ComPtrs.initialize { valueAbi in
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Directors(pThis, &valueAbi))
}
}
return UWP.__x_ABI_C__FIVector_1_HSTRINGWrapper.unwrapFrom(abi: value)
}
internal func get_OrientationImpl() throws -> UWP.VideoOrientation {
var value: __x_ABI_CWindows_CStorage_CFileProperties_CVideoOrientation = .init(0)
_ = try perform(as: __x_ABI_CWindows_CStorage_CFileProperties_CIVideoProperties.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.get_Orientation(pThis, &value))
}
return value
}
}
}